The Vani AI API: one key for Claude, GPT, Gemini, Grok, GLM and more.
Prepaid credit, no subscription. 44 language models from 11 labs, plus 11 image and video models, through OpenAI- and Anthropic-compatible endpoints. Keep your SDK, change the base URL to https://api.vani.ai/v1 and pick a model.
Vani AI API
- Base URL
- https://api.vani.ai/v1
- Endpoints
- /chat/completions · /responses · /messages
- Images and video
- /images/generations · /images/edits · /videos
- Billing
- Prepaid, per request; eligible models 30% below official rates
Quickstart
Set VANI_API_KEY to a vani_ key, then send a request in the format your code already uses. Model ids come from GET https://api.vani.ai/v1/models.
Python · OpenAI SDK · Chat Completions
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.vani.ai/v1",
api_key=os.environ["VANI_API_KEY"], # a vani_ key
)
reply = client.chat.completions.create(
model="anthropic/claude-sonnet-5.5",
messages=[{"role": "user", "content": "Hello"}],
)
print(reply.choices[0].message.content)curl · Chat Completions
curl https://api.vani.ai/v1/chat/completions \
-H "Authorization: Bearer $VANI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"anthropic/claude-sonnet-5.5","messages":[{"role":"user","content":"Hello"}]}'Anthropic format · Messages
curl https://api.vani.ai/v1/messages \
-H "x-api-key: $VANI_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{"model":"openai/gpt-6.1-sol","max_tokens":256,"thinking":{"type":"disabled"},"messages":[{"role":"user","content":"Hello"}]}'OpenAI-compatible API
Chat Completions and stateless Responses take OpenAI's request and answer formats, so the official OpenAI SDKs connect by changing the base URL, and tools such as Codex, OpenCode, Cursor and Cline have setup guides. One key reaches every model, not only OpenAI's: send qwen/qwen4-max or minimax/minimax-m3.1-flash the same way.
Base URL for OpenAI SDKs
https://api.vani.ai/v1
/chat/completionsChat Completions/responsesResponses, stateless
OpenAI-compatible API: what works and what does notOpenAI and Anthropic SDK guide
Anthropic-compatible API
The Messages endpoint takes Anthropic's format, so the Anthropic SDKs and Claude Code work with https://api.vani.ai as the base URL (without /v1) and a Vani key, with tool use, streaming and MCP servers. Any model in the catalogue can answer there, not only Claude.
Base URL for Anthropic SDKs and Claude Code
https://api.vani.ai
/v1/messagesMessages
Anthropic-compatible API: what works and what does notClaude Code and other client guides
Models on the API
Prepaid prices per 1M tokens, from the live catalogue. Each model has its own page with what it is best for.
| Model | API model id | Context | Input | Output | Cached input |
|---|---|---|---|---|---|
| Anthropic10 models | |||||
| Claude Opus 5.5, Anthropic | anthropic/claude-opus-5.5 | 1M | $2.80 | $14.00 | $0.14 |
| Claude Sonnet 5.5, Anthropic | anthropic/claude-sonnet-5.5 | 1M | $1.40 | $7.00 | $0.07 |
| Claude Fable 5.1, Anthropic | anthropic/claude-fable-5.1 | 1M | $7.00 | $35.00 | $0.175 |
| Claude Opus 5, Anthropic | anthropic/claude-opus-5 | 1M | $3.50 | $17.50 | $0.35 |
| Claude Haiku 5.5, Anthropic | anthropic/claude-haiku-5.5 | 1M | $0.07 | $0.35 | $0.007 |
| Claude Fable 5, Anthropic | anthropic/claude-fable-5 | 1M | $7.00 | $35.00 | $0.70 |
| Claude Opus 4.6, Anthropic | anthropic/claude-opus-4.6 | 1M | $3.50 | $17.50 | $0.35 |
| Claude Opus 4.7, Anthropic | anthropic/claude-opus-4.7 | 1M | $3.50 | $17.50 | $0.35 |
| Claude Opus 4.8, Anthropic | anthropic/claude-opus-4.8 | 1M | $3.50 | $17.50 | $0.35 |
| Claude Sonnet 5, Anthropic | anthropic/claude-sonnet-5 | 1M | $1.40 | $7.00 | $0.14 |
| OpenAI9 models | |||||
| GPT-6.2 Sol, OpenAI | openai/gpt-6.2-sol | 1M | $1.40 | $7.00 | Same as input |
| GPT-6 Astra, OpenAI | openai/gpt-6-astra | 1M | $7.00 | $35.00 | $0.70 |
| GPT-6.1 Sol, OpenAI | openai/gpt-6.1-sol | 1M | $1.40 | $7.00 | $0.07 |
| GPT-6.1 Terra, OpenAI | openai/gpt-6.1-terra | 1M | $0.70 | $3.50 | $0.035 |
| GPT-6 Sol, OpenAI | openai/gpt-6-sol | 1M | $1.40 | $7.00 | $0.14 |
| GPT-5.6 Terra, OpenAI | openai/gpt-5.6-terra | 1M | $1.40 | $8.40 | $0.14 |
| GPT-6 Luna, OpenAI | openai/gpt-6-luna | 1M | $0.07 | $0.35 | $0.007 |
| GPT-5.6 Luna, OpenAI | openai/gpt-5.6-luna | 1M | $0.14 | $0.84 | $0.014 |
| GPT-5.6 Sol, OpenAI | openai/gpt-5.6-sol | 1M | $2.80 | $14.00 | $0.28 |
| Moonshot AI5 models | |||||
| Kimi K2.8 Preview, Moonshot AI | moonshotai/kimi-k2.8-preview | 1M | $0.665 | $2.80 | $0.133 |
| Kimi K3, Moonshot AI | moonshotai/kimi-k3 | 1M | $2.10 | $10.50 | $0.21 |
| Kimi K3.1 Pro, Moonshot AI | moonshotai/kimi-k3.1-pro | 1M | $1.40 | $7.00 | $0.14 |
| Kimi K3.1 Pro Derisked De-risked, Moonshot AI | moonshotai/kimi-k3.1-pro-derisked | 1M | $3.90 | $6.50 | Same as input |
| Kimi K3.1 Pro Soft-Derisked De-risked, Moonshot AI | moonshotai/kimi-k3.1-pro-soft-derisked | 1M | $5.00 | $7.00 | $0.50 |
| Qwen3 models | |||||
| Qwen 4 Max, Qwen | qwen/qwen4-max | 1M | $1.05 | $3.15 | $0.0525 |
| Qwen 3.7 Plus, Qwen | qwen/qwen3.7-plus | 1M | $0.28 | $1.12 | Same as input |
| Qwen3.8 Flash, Qwen | qwen/qwen3.8-flash | 1M | $0.105 | $0.329 | Same as input |
| ByteDance3 models | |||||
| Doubao Seed 2.0 Mini, ByteDance | bytedance/doubao-seed-2.0-mini | 256K | $0.07 | $0.28 | Same as input |
| Doubao Seed 2.1 Lite, ByteDance | bytedance/doubao-seed-2.1-lite | 1M | $0.084 | $0.283 | $0.0168 |
| Doubao Seed 2.1 Pro, ByteDance | bytedance/doubao-seed-2.1-pro | 1M | $0.315 | $1.575 | $0.126 |
| xAI3 models | |||||
| Grok 4.7, xAI | x-ai/grok-4.7 | 500K | $1.40 | $4.20 | $0.35 |
| Grok 4.5, xAI | x-ai/grok-4.5 | 500K | $1.40 | $4.20 | $0.21 |
| Grok 4.6, xAI | x-ai/grok-4.6 | 500K | $1.40 | $4.20 | $0.35 |
| Z.AI3 models | |||||
| GLM 5.3 Derisked De-risked, Z.AI | zhipu/glm-5.3-derisked | 1M | $3.90 | $6.50 | Same as input |
| GLM-5.3, Z.AI | zhipu/glm-5.3 | 1M | $0.98 | $3.08 | $0.182 |
| GLM 5.3 Flash, Z.AI | zhipu/glm-5.3-flash | 1M | $0.105 | $0.35 | $0.021 |
| MiniMax2 models | |||||
| MiniMax M3.1 Flash, MiniMax | minimax/minimax-m3.1-flash | 1M | $0.105 | $0.42 | Same as input |
| MiniMax M3, MiniMax | minimax/minimax-m3 | 1M | $0.21 | $0.84 | $0.042 |
| Tencent2 models | |||||
| Hy4 Flash, Tencent | tencent/hy4-flash | 1M | $0.049 | $0.1967 | $0.0021 |
| Hy4 Preview, Tencent | tencent/hy4-preview | 1M | $0.5838 | $1.7507 | $0.0294 |
| Google2 models | |||||
| Gemini 3.8 Flash, Google | google/gemini-3.8-flash | 1M | $0.525 | $2.625 | $0.0525 |
| Gemini 3.1 Pro, Google | google/gemini-3.1-pro | 1M | $1.40 | $8.40 | $0.14 |
| DeepSeek2 models | |||||
| DeepSeek V4.1 Flash, DeepSeek | deepseek/deepseek-v4.1-flash | 1M | $0.105 | $0.42 | $0.0021 |
| DeepSeek V4.1 Flash Derisked De-risked, DeepSeek | deepseek/deepseek-v4.1-flash-derisked | 1M | $1.30 | $2.60 | Same as input |
No model matches that search. Clear it to see all 44.
Image and video models
| Model | API model id | Maker | API price |
|---|---|---|---|
| Image6 models | |||
| GPT Image 2, image | gpt-image-2 | OpenAI | $0.05 per image |
| GPT Image 2.5, image | openai/gpt-image-2.5 | OpenAI | $0.025 per image |
| GPT Image 2.5 Flare, image | gpt-image-2.5-flare | OpenAI | $0.05 per image |
| GPT Image 2.5 Sunburst, image | gpt-image-2.5-sunburst | OpenAI | $0.05 per image |
| Grok Imagine Image, image | grok-imagine-image | xAI | $0.05 per image |
| Grok Imagine Image 2, image | x-ai/grok-imagine-image-2.0 | xAI | $0.028 per image |
| Video5 models | |||
| Grok Imagine Video, video | grok-imagine-video | xAI | $0.169 per 6-second clip |
| Grok Imagine Video 1.5, video | x-ai/grok-imagine-video-1.5 | xAI | $0.056 per second of video |
| Seedance 2.0 Fast VIP, video | bytedance/seedance-2.0-fast-vip | ByteDance | $0.135 per second of video |
| Seedance 2.0 Mini, video | bytedance/seedance-2.0-mini | ByteDance | $0.09 per second of video |
| Seedance 2.0 VIP, video | bytedance/seedance-2.0-vip | ByteDance | from $0.169 per second of video |
What you get
3 endpoints
OpenAI- and Anthropic-compatible
Keep your SDK and change the base URL: Chat Completions, Responses and Messages.
30% below official rates, on eligible models
Prepaid, pay as you go
Add credit and pay per request. Eligible models cost 30% below their verified official rates.
11 image and video models
Images and video on the API
Generate and edit images and make video clips with the same key.
36 models with a cached-input price
Prompt caching
On models with a cached-input price, prompt tokens served from cache are billed at that lower rate.
MCP tools on the API
Give any model remote MCP tools through the Responses and Messages APIs.
A console with the detail
Usage analytics, the cost of every request, request logs, and your limits and tier.
Limits that grow with you
Rate-limit tiers follow your lifetime deposits; each tier raises your limits.
On a paid Vani Chat plan?
Create API keys billed to your plan in Developer settings (Plus and higher plans).
Model changes
Know when a model joins or leaves the API: follow the changelog as an RSS or JSON feed, poll the changes API, or have each change sent to your server as a signed webhook.
Connector submissions Soon
Publishers can submit an MCP server to the Connectors directory; each one is reviewed before it is listed.
What the API does not do
- No audio input on the chat endpoints; images (models that can see) and PDFs are taken.
- No embeddings, and no hosted file search or computer tools (web search and web fetch run on Vani).
- Responses keeps no state: send the whole conversation each time (store: false).
- One completion per request (n is 1).
Questions
API referenceWhat is the Vani AI API?
Is the Vani API OpenAI-compatible?
Can I use the Anthropic SDK or Claude Code?
How much does the Vani API cost?
Can I generate images and video with the API?
How do I get an API key?
Build with the Vani AI API.
Add credit, create a key and send your first request in minutes.