Skip to content

New: Doubao Seed 2.0 Mini, Doubao Seed 2.1 Lite, Doubao Seed 2.1 Pro and 5 more. In chat and on the API.

See modelsWhat's newReport a bug
Open chat

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

One key
Size, colour and distance: output price, $0.20 to $35 per 1M tokens
De-risked
Every model, with its id and prices
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

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

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.

44 of 44 models

Size and colour: output price, $0.20 to $35 per 1M tokens
De-risked
Language models on the Vani AI API, by lab: the API model id, the context window and the prepaid price per 1M tokens
ModelAPI model idContextInputOutputCached input
Anthropic10 models
Claude Opus 5.5, Anthropicanthropic/claude-opus-5.51M$2.80$14.00$0.14
Claude Sonnet 5.5, Anthropicanthropic/claude-sonnet-5.51M$1.40$7.00$0.07
Claude Fable 5.1, Anthropicanthropic/claude-fable-5.11M$7.00$35.00$0.175
Claude Opus 5, Anthropicanthropic/claude-opus-51M$3.50$17.50$0.35
Claude Haiku 5.5, Anthropicanthropic/claude-haiku-5.51M$0.07$0.35$0.007
Claude Fable 5, Anthropicanthropic/claude-fable-51M$7.00$35.00$0.70
Claude Opus 4.6, Anthropicanthropic/claude-opus-4.61M$3.50$17.50$0.35
Claude Opus 4.7, Anthropicanthropic/claude-opus-4.71M$3.50$17.50$0.35
Claude Opus 4.8, Anthropicanthropic/claude-opus-4.81M$3.50$17.50$0.35
Claude Sonnet 5, Anthropicanthropic/claude-sonnet-51M$1.40$7.00$0.14
OpenAI9 models
GPT-6.2 Sol, OpenAIopenai/gpt-6.2-sol1M$1.40$7.00Same as input
GPT-6 Astra, OpenAIopenai/gpt-6-astra1M$7.00$35.00$0.70
GPT-6.1 Sol, OpenAIopenai/gpt-6.1-sol1M$1.40$7.00$0.07
GPT-6.1 Terra, OpenAIopenai/gpt-6.1-terra1M$0.70$3.50$0.035
GPT-6 Sol, OpenAIopenai/gpt-6-sol1M$1.40$7.00$0.14
GPT-5.6 Terra, OpenAIopenai/gpt-5.6-terra1M$1.40$8.40$0.14
GPT-6 Luna, OpenAIopenai/gpt-6-luna1M$0.07$0.35$0.007
GPT-5.6 Luna, OpenAIopenai/gpt-5.6-luna1M$0.14$0.84$0.014
GPT-5.6 Sol, OpenAIopenai/gpt-5.6-sol1M$2.80$14.00$0.28
Moonshot AI5 models
Kimi K2.8 Preview, Moonshot AImoonshotai/kimi-k2.8-preview1M$0.665$2.80$0.133
Kimi K3, Moonshot AImoonshotai/kimi-k31M$2.10$10.50$0.21
Kimi K3.1 Pro, Moonshot AImoonshotai/kimi-k3.1-pro1M$1.40$7.00$0.14
Kimi K3.1 Pro Derisked De-risked, Moonshot AImoonshotai/kimi-k3.1-pro-derisked1M$3.90$6.50Same as input
Kimi K3.1 Pro Soft-Derisked De-risked, Moonshot AImoonshotai/kimi-k3.1-pro-soft-derisked1M$5.00$7.00$0.50
Qwen3 models
Qwen 4 Max, Qwenqwen/qwen4-max1M$1.05$3.15$0.0525
Qwen 3.7 Plus, Qwenqwen/qwen3.7-plus1M$0.28$1.12Same as input
Qwen3.8 Flash, Qwenqwen/qwen3.8-flash1M$0.105$0.329Same as input
ByteDance3 models
Doubao Seed 2.0 Mini, ByteDancebytedance/doubao-seed-2.0-mini256K$0.07$0.28Same as input
Doubao Seed 2.1 Lite, ByteDancebytedance/doubao-seed-2.1-lite1M$0.084$0.283$0.0168
Doubao Seed 2.1 Pro, ByteDancebytedance/doubao-seed-2.1-pro1M$0.315$1.575$0.126
xAI3 models
Grok 4.7, xAIx-ai/grok-4.7500K$1.40$4.20$0.35
Grok 4.5, xAIx-ai/grok-4.5500K$1.40$4.20$0.21
Grok 4.6, xAIx-ai/grok-4.6500K$1.40$4.20$0.35
Z.AI3 models
GLM 5.3 Derisked De-risked, Z.AIzhipu/glm-5.3-derisked1M$3.90$6.50Same as input
GLM-5.3, Z.AIzhipu/glm-5.31M$0.98$3.08$0.182
GLM 5.3 Flash, Z.AIzhipu/glm-5.3-flash1M$0.105$0.35$0.021
MiniMax2 models
MiniMax M3.1 Flash, MiniMaxminimax/minimax-m3.1-flash1M$0.105$0.42Same as input
MiniMax M3, MiniMaxminimax/minimax-m31M$0.21$0.84$0.042
Tencent2 models
Hy4 Flash, Tencenttencent/hy4-flash1M$0.049$0.1967$0.0021
Hy4 Preview, Tencenttencent/hy4-preview1M$0.5838$1.7507$0.0294
Google2 models
Gemini 3.8 Flash, Googlegoogle/gemini-3.8-flash1M$0.525$2.625$0.0525
Gemini 3.1 Pro, Googlegoogle/gemini-3.1-pro1M$1.40$8.40$0.14
DeepSeek2 models
DeepSeek V4.1 Flash, DeepSeekdeepseek/deepseek-v4.1-flash1M$0.105$0.42$0.0021
DeepSeek V4.1 Flash Derisked De-risked, DeepSeekdeepseek/deepseek-v4.1-flash-derisked1M$1.30$2.60Same as input

Image and video models

Image and video models on the Vani AI API: the API model id, the maker and the prepaid price
ModelAPI model idMakerAPI price
Image6 models
GPT Image 2, imagegpt-image-2OpenAI$0.05 per image
GPT Image 2.5, imageopenai/gpt-image-2.5OpenAI$0.025 per image
GPT Image 2.5 Flare, imagegpt-image-2.5-flareOpenAI$0.05 per image
GPT Image 2.5 Sunburst, imagegpt-image-2.5-sunburstOpenAI$0.05 per image
Grok Imagine Image, imagegrok-imagine-imagexAI$0.05 per image
Grok Imagine Image 2, imagex-ai/grok-imagine-image-2.0xAI$0.028 per image
Video5 models
Grok Imagine Video, videogrok-imagine-videoxAI$0.169 per 6-second clip
Grok Imagine Video 1.5, videox-ai/grok-imagine-video-1.5xAI$0.056 per second of video
Seedance 2.0 Fast VIP, videobytedance/seedance-2.0-fast-vipByteDance$0.135 per second of video
Seedance 2.0 Mini, videobytedance/seedance-2.0-miniByteDance$0.09 per second of video
Seedance 2.0 VIP, videobytedance/seedance-2.0-vipByteDancefrom $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).
The supported API in full

Questions

API reference
What is the Vani AI API?
One API key for 44 AI models from 11 labs, including Claude, GPT, Gemini, Grok, GLM and more. It takes the OpenAI (Chat Completions and Responses) and Anthropic (Messages) request formats, so existing SDKs and tools work by changing the base URL. Vani gives access to models from many AI labs; it does not make its own.
Is the Vani API OpenAI-compatible?
Yes, for Chat Completions and stateless Responses: point an OpenAI SDK at https://api.vani.ai/v1 with a Vani key and send any model id that GET /v1/models lists. The chat endpoints take text, images (models that can see) and PDFs (no audio), and Responses keeps no state between calls.
Can I use the Anthropic SDK or Claude Code?
Yes. Set the base URL to https://api.vani.ai (without /v1) and use a Vani key: the Messages endpoint serves every model in the catalogue, not only Claude. The Claude Code guide in the docs lists the tested settings.
How much does the Vani API cost?
It is prepaid and pay as you go: add credit and pay per request at each model's published price per 1M tokens, or per image or clip. Eligible models cost 30% below their verified official rates. There is no subscription; Vani Chat subscribers on Plus and higher plans can also create keys billed to their plan.
Can I generate images and video with the API?
Yes, with the same prepaid key: POST /v1/images/generations and /v1/images/edits for images, and /v1/videos for video clips, billed per image or clip (11 image and video models).
How do I get an API key?
Create an account on the Vani API Platform, verify your email, add prepaid credit and create a key. Vani keys start with vani_.

Build with the Vani AI API.

Add credit, create a key and send your first request in minutes.