AI Rate Card

Gemini Embedding 2 · impossibl

Gemini Embedding 2 is Google's embedding model for representing content as vectors that capture meaning. Its text embeddings support semantic search, document retrieval, classification, and clustering across languages.

Base modelAll models on this baseAll models of the providerto the provider

Input, $/1M $0.20

Output, $/1M —

Context 8 192

Accepts text

Last checked 04.11.2026 12:00:14 UTC

Source provider's page

Price alerts

Sign in to follow the price

API

OpenAI-compatible API: the official OpenAI SDKs work with this base URL. Replace YOUR_API_KEY with your key from the provider.

API base URL
https://api.impossibl.com/v1
Endpoint
https://api.impossibl.com/v1/embeddings
Model id
google/gemini-embedding-2
curl
curl https://api.impossibl.com/v1/embeddings \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "google/gemini-embedding-2", "input": ["first text", "second text"]}'
Python
import requests

r = requests.post(
    "https://api.impossibl.com/v1/embeddings",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={
      "model": "google/gemini-embedding-2",
      "input": [
        "first text",
        "second text"
      ]
    },
)
print(r.json())
JavaScript
const r = await fetch("https://api.impossibl.com/v1/embeddings", {
  method: "POST",
  headers: {Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json"},
  body: JSON.stringify({
    "model": "google/gemini-embedding-2",
    "input": [
      "first text",
      "second text"
    ]
  }),
});
console.log(await r.json());
Request (JSON)
{
  "model": "google/gemini-embedding-2",
  "input": [
    "first text",
    "second text"
  ]
}
Response (JSON)
{
  "object": "list",
  "model": "google/gemini-embedding-2",
  "data": [
    {
      "object": "embedding",
      "index": 0,
      "embedding": [
        0.0123,
        -0.0456,
        "..."
      ]
    }
  ],
  "usage": {
    "prompt_tokens": 6,
    "total_tokens": 6
  }
}

The address is taken from the provider's model list; check it against the provider's documentation.

Provider's API documentation

Source: AI Rate Card, https://airatecard.com/en/c/offer%3Aimpossibl%7Cgoogle/gemini-embedding-2, prices checked 2026-11-04; seller's page: https://impossibl.com/models/google/gemini-embedding-2

Technical details

ID: offer:impossibl|google/gemini-embedding-2