Skip to content
GoogleEmbeddingsgemini-embedding-2

Gemini Embedding 2

Gemini Embedding 2 for Embeddings.

Explore Gemini Embedding 2 for Embeddings through the unified API. Supported interfaces and current availability are shown below.

  • Embeddings

Model details

Context window
8K tokens
Max output
—
Input
Text
Output
Embeddings
Capabilities
—
Interfaces
Embeddings

Pricing

Prices use the units shown below. No gateway fees. Usage, size and model options may affect the total.

Gemini Embedding 2 pricing.
MetricPrice
/ 1M input tokens$0.2

Why teams pick it

  • Gemini Embedding 2 for Embeddings.

Call Gemini Embedding 2

Gemini Embedding 2 answers on the API below — pick the one your code already speaks and just swap in your Inferray key.

/v1/embeddingsEmbeddings · openai SDK or plain HTTP
curl https://api.inferray.com/v1/embeddings \
  -H "Authorization: Bearer inferray_..." \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gemini-embedding-2",
  "input": [
    "A sample document"
  ]
}'

More from Google

Questions about this model

Is there a free tier for Gemini Embedding 2?
No. You add credit and pay Gemini Embedding 2's list rate for each request — seats, projects, and API keys are free, and pay-as-you-go credit never expires.
Am I charged for failed requests?
No. A request that fails without returning a result is not billed. If a response fails part-way, the tokens already processed before the failure are charged.
Is Gemini Embedding 2 included in Token Plans?
No. Gemini Embedding 2 is pay-as-you-go only; Token Plans cover the other text models in the catalog.
Does Gemini Embedding 2 support tool calling and vision?
Gemini Embedding 2 takes text in and returns text.
Is it the real Gemini Embedding 2?
Yes. A request for gemini-embedding-2 is answered by Gemini Embedding 2 from Google, billed at its published list price. Inferray never substitutes a different or smaller model.