Sulat.com / Writing on AISaturday, November 14, 2026
Artificial Intelligence/14 November 2026

Cloudflare adds Google’s EmbeddingGemma 2 to Workers AI, at US$0.0017 per million tokens

Cloudflare's changelog lists Google DeepMind's multimodal embedding model at US$0.0017 per million input tokens. It takes text, images, video and audio, with an 8,192-token limit per input.

3D Cloudflare logo ringed by image, video, audio and text tiles linked to a shared cloud of glowing dots

At a glance

  • Cloudflare says Google DeepMind's EmbeddingGemma 2 is now on Workers AI as @cf/google/embeddinggemma-2, priced at US$0.0017 per million input tokens, or 154 neurons.
  • The model maps text, code, images, video and audio into one 768-dimension space, so a single text query can search a mixed collection, according to Cloudflare and Google.
  • Everything in one input shares an 8,192-token window; Cloudflare counts an image at about 260 tokens, a second of video at about 140 and a second of audio at about 25.
  • Vectors can be cut to 512, 256 or 128 dimensions to save storage; Google says quality is close to lossless down to 256 and that 128 should be tested first.
  • Media has to be sent as base64 data URIs because Cloudflare doesn't accept remote URLs, and queries and documents must use the same vector size.

Cloudflare has added Google DeepMind’s EmbeddingGemma 2 to Workers AI, its service for running AI models on Cloudflare’s network, Cloudflare says in a changelog post dated 12 November. It costs US$0.0017 per million input tokens and puts text, images, video and audio into one shared 768-number vector space.

An embedding is a list of numbers that stands for what a piece of content means, so software can find similar items by comparing lists instead of matching words. Search and retrieval systems use embeddings to answer a query with the closest documents, products or clips. Google released EmbeddingGemma 2 on 6 October 2026 under the Apache 2.0 licence, and Cloudflare’s copy runs as @cf/google/embeddinggemma-2.

What it embeds

Cloudflare says one text query can search a mixed collection of products, documents and media. Its example embeds a product listing as a single vector built from a text description and a photo, then scores it against the query “waterproof shoes for trail running”. The model page also shows video and audio inputs, alone or combined with text.

Text, images, video and audio all feed EmbeddingGemma 2, which outputs 768 numbers so one text query finds the closest match
One text query can find the closest match whether it’s a document, a photo, a clip or a recording.

Cloudflare also lists support for more than 100 languages and code. The first EmbeddingGemma handled text only. Google’s model card puts the new model at 78.68 on MTEB (Code), a code-retrieval benchmark, against 68.76 for the first version.

Text queries and documents take short instruction prefixes. In Cloudflare’s example, a query starts with task: search result | query: and a document starts with title: ... | text:. Cloudflare says prefixes like these tune the vectors for search, classification, clustering or similarity.

const response = await env.AI.run("@cf/google/embeddinggemma-2", {
  input: [
    "task: search result | query: waterproof shoes for trail running",
    "title: Trail Runner X | text: Waterproof running shoes with a breathable mesh upper.",
  ],
});
// response.data[i].embedding is a 768-dimensional vector
Model ID@cf/google/embeddinggemma-2
InputsText (including code), images, video, audio, or a mix
Vector sizes768 (default), 512, 256, 128
Context window8,192 tokens, shared by everything in one input
LanguagesMore than 100
Data retentionZero
PriceUS$0.0017 per million input tokens
What Cloudflare lists for EmbeddingGemma 2 on Workers AI. Source: Cloudflare’s changelog and model page.

Limits and vector sizes

Everything in one input shares an 8,192-token window, which Google says is four times the first model’s. Cloudflare counts an image as about 260 tokens, video as about 140 tokens per sampled frame at one frame a second, and audio as about 25 tokens a second. Google says that window fits up to 5.5 minutes of audio or 29 images.

8,192-token budget shared per input: an image costs about 260 tokens, a second of video about 140, a second of audio about 25
Everything in one input draws from the same 8,192 tokens, and video costs the most per second.

Media has to be sent as base64 data URIs, because Cloudflare doesn’t accept remote URLs. Cloudflare recommends mono 16 kHz audio. Plain text goes in an input array, while mixed content goes in messages, where each conversation produces one embedding.

The dimensions setting returns 128, 256 or 512 numbers instead of the default 768. Cloudflare says that cuts storage at a small cost to quality, and that queries and documents must use the same size. Google’s model card says quality is close to lossless down to 256, and that 128 degrades multimodal quality substantially and should be validated against your own workload.

Bars for 768, 512, 256 and 128 dimension vectors, with a note to use the same size for queries and documents
Shorter vectors cost less to store; whichever size you pick, queries and documents must match.

What it costs

Cloudflare’s pricing page lists EmbeddingGemma 2 at US$0.0017 per million input tokens, or 154 neurons, the unit Workers AI bills in at US$0.011 per 1,000. Workers Free and Workers Paid both include 10,000 neurons a day at no charge, which works out to about 65 million input tokens a day at that rate.

On the same list, the next cheapest embedding models are bge-m3 and Qwen3 Embedding 0.6B at US$0.012 per million tokens, about seven times as much. bge-large-en-v1.5 is US$0.204.

Bar chart of Workers AI embedding prices per million tokens: EmbeddingGemma 2 at US$0.0017, bge-large at US$0.204
At US$0.0017 per million input tokens, EmbeddingGemma 2 is the cheapest embedding model on Cloudflare’s price list.

What the pages don’t show

Neither Cloudflare’s changelog nor its model page includes benchmark results, so the quality figures here are Google’s, measured on its full-precision checkpoint. Google publishes the weights on Hugging Face, and its model card is the place to check how the model scores on each type of media.


Discover more from Sulat AI & Tech News

Subscribe to get the latest posts sent to your email.