321AI Model MarketplaceLive marketplace →

gemini-embedding-2-preview API

gemini-embedding-2-preview — multi-supplier realtime bidding · OpenAI + Anthropic protocol parity · get a key

What does the gemini-embedding-2-preview API cost and how do I call it? gemini-embedding-2-preview is input $0.2097 and output <$0.0001 per 1M tokens at the market floor across 5 competing suppliers (data date 2026-11-20; machine-readable: https://321ai.cc/api/public/model-prices). Set base_url to https://321ai.cc/v1 for the OpenAI protocol or ANTHROPIC_BASE_URL to https://321ai.cc for Claude Code. Failures are never billed; platform fee is 0.

gemini-embedding-2-preview price table

ItemMarket floor price (USD / 1M tokens)
Input$0.2097
Output<$0.0001
Cache read<$0.0001

Floor across suppliers; per-supplier quotes on the marketplace. Machine-readable: https://321ai.cc/models/gemini-embedding-2-preview.md · all models: /en/models/.

Quickstart

from openai import OpenAI

client = OpenAI(api_key="YOUR_KEY", base_url="https://321ai.cc/v1")

resp = client.chat.completions.create(
    model="gemini-embedding-2-preview",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

Anthropic protocol (Claude Code): export ANTHROPIC_BASE_URL=https://321ai.cc + ANTHROPIC_AUTH_TOKEN=YOUR_KEY. Guide: Anthropic Messages API via 321AI.

FAQ

How is gemini-embedding-2-preview billed on 321AI?

gemini-embedding-2-preview is billed per token: input around $0.2097 / 1M tokens, output around <$0.0001 / 1M tokens, cache reads around <$0.0001 / 1M tokens. This page shows the market floor; per-supplier quotes are on the marketplace page.

Is the gemini-embedding-2-preview API OpenAI-compatible here?

Yes — fully OpenAI API compatible. Set base_url to https://321ai.cc/v1 with your platform API key; existing OpenAI SDKs and common clients work without code changes.

What about gemini-embedding-2-preview pricing and reliability?

5 suppliers currently quote gemini-embedding-2-preview on 321AI with transparent price comparison; merchants publish their own upstream self-check records on the marketplace page.

Is there a free trial?

Yes. New accounts get free trial credit — call gemini-embedding-2-preview from the console before you top up. Sign up: https://321ai.cc/ui/new/#/register

All model pricesFeatured · 321AI communityFeatured · Open-source toolsFeatured · Advertise with usFeatured