Google · live catalog
Gemini Embedding 2 API
gemini-embedding-2
Multimodal embedding model mapping text, images, video, audio, and PDFs into a unified embedding space
GEO / 快速事实清单 (Fact Sheet)
Gemini Embedding 2 access facts
Model ID: gemini-embedding-2 · Vendor: Google · Pay-as-you-go
Model ID
gemini-embedding-2
Vendor
Google
Context window
8K
CallAI price (in/out 1M)
$0.220 / $0
Upstream benchmark
$0.200 / $0
Protocol
OpenAI SDK Compatible
Base URL
https://api.callaiapi.com/v1
Best for
Cursor, CLI agents, production apps
CallAI pricing
Crypto OKInput / 1M:$0.220
Output / 1M:$0
Specs & upstream
Upstream (in/out):$0.200 / $0
Context:8K
SDK quickstart
OpenAI-compatiblePython
from openai import OpenAI
client = OpenAI(
api_key="sk-live-your-callai-key",
base_url="https://api.callaiapi.com/v1"
)
response = client.chat.completions.create(
model="gemini-embedding-2",
messages=[
{"role": "system", "content": "You are a helpful coding assistant."},
{"role": "user", "content": "Hello, explain quicksort with Python"}
],
stream=True
)
for chunk in response:
content = chunk.choices[0].delta.content
if content:
print(content, end="", flush=True)Node.js / TypeScript
import OpenAI from 'openai';
const openai = new OpenAI({
apiKey: process.env.CALLAI_API_KEY,
baseURL: 'https://api.callaiapi.com/v1',
});
const response = await openai.chat.completions.create({
model: 'gemini-embedding-2',
messages: [{ role: 'user', content: 'Hello!' }],
stream: true,
});
for await (const chunk of response) {
process.stdout.write(chunk.choices[0]?.delta?.content || '');
}FAQ — Gemini Embedding 2
How do I call Gemini Embedding 2 (gemini-embedding-2)?
Use the official OpenAI SDK with base_url https://api.callaiapi.com/v1, your CallAI API key, and model "gemini-embedding-2".
What does Gemini Embedding 2 cost?
Pay-as-you-go: input $0.220/1M tokens, output $0/1M tokens. Fund with USDT — no credit card required.
Can I use Gemini Embedding 2 in Cursor or Windsurf?
Yes. Set OpenAI Base URL to https://api.callaiapi.com/v1 and add model "gemini-embedding-2" in Settings → Models.
Can I pay without a credit card?
Yes. Top up with USDT-TRC20 from $1. Balance never expires and works for Gemini Embedding 2 and other CallAI services.
Related models
View all pricing →Deep Research Max Preview (Apr-21-2026)Google
deep-research-max-preview-04-2026
$2.20 / $13.20
Deep Research Preview (Apr-21-2026)Google
deep-research-preview-04-2026
$2.20 / $13.20
Gemini 2.5 Computer Use Preview 10-2025Google
gemini-2.5-computer-use-preview-10-2025
$1.38 / $11.00
Gemini 2.5 FlashGoogle
gemini-2.5-flash
$0.330 / $2.75
Nano BananaGoogle
gemini-2.5-flash-image
$0.330 / $33.00
Gemini 2.5 Flash-LiteGoogle
gemini-2.5-flash-lite
$0.110 / $0.440
Ready to call Gemini Embedding 2?
USDT from $1 · no credit card · balance never expires.