Google: gemini-embedding-2
gemini-embedding-2- Context
- 8K
- Released
- Sep 30, 2026
- Modalities
- Embedding
Getting started
Create API key
Create a key in Console, then use it with every model on the platform.
Send your first request
Copy the example for your language and run it against the endpoint.
EmbeddingTokenLab endpointPOST/v1/embeddingscurl -X POST "https://api.tokenlab.sh/v1/embeddings" \ -H "Authorization: Bearer sk-xxx" \ -H "Content-Type: application/json" \ -d '{ "dimensions": 768, "encoding_format": "float", "input": "Semantic search", "model": "gemini-embedding-2" }'
Pricing
Official price is the model maker's public baseline. TokenLab price is what you pay for this model on TokenLab.
Pricing
Per 1M tokens- TokenLab price
- —
- Official price
- Input$0.20Per 1M tokensOutput$0.00Per 1M tokens
| Official pricePer 1M tokens | TokenLab pricePer 1M tokens | Discount | |
|---|---|---|---|
| Input | $0.20 | — | - |
| Output | $0.00 | — | - |
Usage & activity
Success rate is the share of requests that completed. Latency is how long a full response takes; P95 means 95% of requests finished within that time.
Usage & availability
Last 24 hoursNo data yet
Data is based on aggregate user requests, excluding status checks.
Open in Console
Open gemini-embedding-2 in Console with a prompt ready to edit or send.
Help me try gemini-embedding-2 with embedding at /v1/embeddings. Show the result and cost.
Use cases
Semantic search
Build vector representations for search, recommendations, clustering, and RAG.
Side-by-side test
Compare response quality, latency, and price side by side.
Prompt examples
Embed five product FAQ snippets and explain the response shape.
Send the smallest possible request and show me the result and cost.
Compare this model with a cheaper one in the same category — when is each worth it?
This model has conditional pricing. Monthly token totals alone cannot produce a reliable estimate; use the detailed pricing for the request specification, cache, and applicable time window.
FAQ
How much does gemini-embedding-2 cost?
On TokenLab, gemini-embedding-2 costs — Per 1M tokens. The pricing table above shows the full breakdown.
How do I test gemini-embedding-2?
Open gemini-embedding-2 in Create. A sample for /v1/embeddings will be ready to try.
Which endpoint should gemini-embedding-2 use?
Use https://api.tokenlab.sh/v1/embeddings for gemini-embedding-2. The request example below shows the matching code shape.
Can I test gemini-embedding-2 before integrating it?
Yes. Open Console starts a ready draft for gemini-embedding-2 and keeps your prompt after sign-in, so you don’t lose context.
Which operations does gemini-embedding-2 support?
gemini-embedding-2 supports Embedding. Select an operation above to see its endpoint and request example.