LiveLLMAPI
Models / Embeddings / Gemini Embedding 2

Gemini Embedding 2

Save 35% vs list

General-purpose dense text embeddings for search and clustering.

model: gemini-embedding-2
Embeddings /v1/embeddings 8K context 3072 dims
Primary tier pricing Live
Standard list: $0.2
From · per 1M input tokens
$0.13
up to $0.2 failover ceiling
Capacity routes 2 tiers · cheapest-first failover
Endpoint /v1/embeddings
Billing model Exact pay-as-you-go
Discount vs list 35% off

No monthly fee · credits never expire · set spend caps anytime

Monthly cost estimator & formula

Estimate your discounted pay-as-you-go spend for Gemini Embedding 2.

Your monthly cost
—
—
Standard list cost
—
Monthly savings
—
Exact settlement formula
—

Dynamic routing & capacity tiers

LiveLLMAPI routes every request to the lowest-cost healthy capacity tier first and automatically fails over if a tier hits rate limits or downtime. You are always billed strictly at the exact rate of the tier that served your request — returned in x-live-pricing-tier and x-live-rate-* headers.

Routing & price-cap docs →
Priority Capacity tier Applied rate vs. list
#1 Primary capacity primary $0.13 per 1M input tokens -35%
#2 High-availability failover standard $0.2 per 1M input tokens List

Drop-in integration

Endpoint: https://api.livellmapi.com/v1/embeddings

from openai import OpenAI

client = OpenAI(
    base_url="https://api.livellmapi.com/v1",
    api_key="YOUR_LIVELLMAPI_KEY",
)

emb = client.embeddings.create(
    model="gemini-embedding-2",
    input=["Semantic search made simple.", "Discounted pay-as-you-go API."],
)
print(len(emb.data[0].embedding))

Specifications

Model ID gemini-embedding-2
Category Embeddings
API endpoint POST /v1/embeddings
Context window 8,192 tokens (8K)
Vector dimensions 3072
Billing Pay-as-you-go (per 1M input tokens)

Capabilities & parameters

API key Unified key
Metering Micro-USD
Spend caps Supported
Monthly fee $0
Supported request parameters
modelinputencoding_formatroutingstrict_discountmax_price

More embeddings models

Swap with a one-line model ID change using the same LiveLLMAPI key.

View all embeddings →