> ## Documentation Index
> Fetch the complete documentation index at: https://docs.venice.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> The Venice API is OpenAI-compatible: use any OpenAI SDK with the base URL `https://api.venice.ai/api/v1` and a Venice API key, or pay per request from a USDC wallet through x402 with no account.
> Read model IDs from `GET /models` or `GET /models/traits` at runtime instead of hardcoding them from memory or from these pages. Models are added and retired often.
> Every model's price is in https://docs.venice.ai/pricing.md. Quote video and audio jobs with `POST /video/quote` or `POST /audio/quote` before you queue them.
> Search these docs from an MCP client at https://docs.venice.ai/mcp. The full agent guide is https://docs.venice.ai/agents.md.

# Gemini Embedding 2 Preview API

> Gemini Embedding 2 Preview embeddings API on Venice: 3,072 dimensions, 2K input tokens, $0.25 per 1M tokens. Anonymized access without your identity.



## Gemini Embedding 2 Preview API

Gemini Embedding 2 Preview is an embedding model by Google, available on the Venice API as `gemini-embedding-2-preview`. The provider of this model may retain prompt data (though it is anonymized by Venice). For sensitive content, use a private model.

Gemini Embedding 2 Preview is a preview of Google's Gemini-based embedding model, returning 3,072-dimensional vectors for inputs of up to 2,048 tokens. It's built for semantic search, retrieval and classification.

### Gemini Embedding 2 Preview API pricing

| Model ID | Variant | Privacy | Price |
| - | - | - | - |
| `gemini-embedding-2-preview` | Standard | Anonymized | \$0.25 / 1M tok |

### Gemini Embedding 2 Preview specifications

| Spec | Value |
| - | - |
| Provider | Google |
| Released | Apr 17, 2026 |
| Privacy | Anonymized |
| Status | Stable |
| Dimensions | 3,072 |
| Max input | 2K tokens |

### How to use the Gemini Embedding 2 Preview API

Send requests to `POST https://api.venice.ai/api/v1/embeddings` with `"model": "gemini-embedding-2-preview"` and your API key.

```bash theme={"system"}
curl https://api.venice.ai/api/v1/embeddings \
  -H "Authorization: Bearer $VENICE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-embedding-2-preview",
    "input": "Private AI for everyone."
  }'
```

### Related models

* [Text Embedding 3 Large API](https://docs.venice.ai/models/text-embedding-3-large.md): \$0.1625 / 1M tok
* [BGE-M3 API](https://docs.venice.ai/models/bge-m3.md): \$0.15 / 1M tok
* [Text Embedding 3 Small API](https://docs.venice.ai/models/text-embedding-3-small.md): \$0.025 / 1M tok
* [BGE-EN-ICL API](https://docs.venice.ai/models/bge-en-icl.md): \$0.0125 / 1M tok


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.