跳到主要内容

Embeddings model

Gemini Embedding 2 Preview

google/gemini-embedding-2-preview

google/gemini-embedding-2-preview is a text embedding model from Google you can call on the OceanToken API at $0.20 per 1M input tokens, with a 8K-token context window.

At a glance

Model IDgoogle/gemini-embedding-2-preview
TypeEmbeddings
PublisherGoogle
Context window8,192 tokens
Input price$0.20 per 1M tokens
Endpoint/v1/embeddings
API shapeOpenAI-compatible
In the catalog since2026-04-17

Call it

Base URL https://api.oceantoken.ai/v1, your OceanToken key as the bearer token, and the model ID above as model. The OpenAI SDKs work unchanged; see your first request.

curl https://api.oceantoken.ai/v1/embeddings \
-H "Authorization: Bearer $OCEANTOKEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "google/gemini-embedding-2-preview", "input": "The quick brown fox"}'

Compared with similar models

Embeddings models on OceanToken closest to google/gemini-embedding-2-preview in price. Every price is what you pay, in US dollars, with no platform fee on top.

ModelPublisherContextPrice (per 1M tokens)
Gemini Embedding 2 PreviewGoogle8,192$0.20
Codestral Embed 2505
mistralai/codestral-embed-2505
Mistral AI8K$0.15
Text Embedding 3 Large
openai/text-embedding-3-large
OpenAI8K$0.13
Voyage 4 Large
voyageai/voyage-4-large
Voyage AI32K$0.12

More from Google

All Google models on OceanToken

Use it

Create an account All models and prices

Prices and capabilities on this page were read from the live OceanToken catalog on 2026-10-18 (UTC), when the documentation was built. If a price has changed since, the console's Models page shows the current one.