One LLM API for chat completions across every model maker
104 language models from 10 makers on one OpenAI-compatible endpoint. Point any OpenAI SDK at Revana, change the model name, pay per token from the same prepaid credit as video and images.
| Endpoint | POST https://api.revana.si/v1/chat/completions |
| Base URL for SDKs | https://api.revana.si/v1 |
| Auth | Authorization: Bearer <key> (your Revana API key) |
| Request | The OpenAI chat completions body: model, messages, stream, max_tokens, tools, response_format, reasoning_effort… |
| Models | GET /v1/models lists them with "kind": "text" and their token prices; also /data/llms.json |
| Price | USD per million tokens, per model, below. No subscription. |
One key for every language model
Switch models by name
Every language model on Revana sits behind the same endpoint and the same request body, so moving from a GPT model to a Claude or Gemini model is a change to the model field. Your parsing, streaming and error handling stay as they are, which makes it cheap to test a new model the week it comes out.
{"model": "gpt-5.5", "messages": [...]}
{"model": "claude-opus-5-5", "messages": [...]}One balance for text, images and video
Tokens bill from the same prepaid credit as your image and video jobs: one key and one invoice for the whole product. Credit packs start at $10 and never expire, with no subscription and no monthly minimum (pricing).
The cost comes back with the answer
Every reply adds cost_usd to its usage, the exact amount taken from your balance, so you can bill your own users per request without a separate report. Streams carry the same figure in their last chunk when you ask for usage, and your dashboard keeps the full history.
Backup routes when one is busy
A request can move to a backup route when its first route is busy, and a request that gets no answer because every route failed costs nothing. You skip writing retry code for outages.
Make a request
curl https://api.revana.si/v1/chat/completions \
-H "Authorization: Bearer $REVANA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-5.5","messages":[{"role":"user","content":"Write a haiku about routing."}]}'The answer is OpenAI’s chat.completion object. Its id starts chat_, and usage adds cost_usd, the amount taken from your balance for this request.
{
"id": "chat_3f9c…",
"object": "chat.completion",
"created": 1793318400,
"model": "gpt-5.5",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Cheapest path first,\nfallback waits in the wings,\nanswers still arrive."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 14,
"completion_tokens": 18,
"total_tokens": 32,
"prompt_tokens_details": {
"cached_tokens": 0
},
"cost_usd": 0.000141
}
}OpenAI SDKs
Every OpenAI client library works unchanged: set the base URL and the key.
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.revana.si/v1", api_key=os.environ["REVANA_API_KEY"])
reply = client.chat.completions.create(
model="gpt-5.5",
messages=[{"role": "user", "content": "Write a haiku about routing."}],
)
print(reply.choices[0].message.content)import OpenAI from "openai"
const client = new OpenAI({ baseURL: "https://api.revana.si/v1", apiKey: process.env.REVANA_API_KEY })
const stream = await client.chat.completions.create({
model: "gpt-5.5",
messages: [{ role: "user", content: "Write a haiku about routing." }],
stream: true,
})
for await (const chunk of stream) process.stdout.write(chunk.choices[0]?.delta?.content ?? "")Tools such as LangChain, LlamaIndex, the Vercel AI SDK, Cline or Open WebUI take the same two settings: an OpenAI-compatible provider with base URL https://api.revana.si/v1 and your key.
Streaming
Send "stream": true for server-sent events in OpenAI’s chat.completion.chunk format, ending with data: [DONE]. Add "stream_options": {"include_usage": true} for a last chunk with empty choices and the request’s usage, cost_usd included.
curl https://api.revana.si/v1/chat/completions \
-H "Authorization: Bearer $REVANA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-5.5","messages":[{"role":"user","content":"Write a haiku about routing."}],"stream":true}'Billing
- You pay for the tokens the model reports: input, cached input, cache writes and output (reasoning tokens count as output), at the model’s price per million below. Charged to the micro-dollar from the same prepaid balance as generations.
- While a request runs, Revana holds the most it could cost: its prompt plus
max_tokens(ormax_completion_tokens; 8,192 when neither is set, and that is the limit the model is sent). Reasoning models that may write pastmax_tokens, and any request at reasoning effortxhighormax, hold the model’s full output. The hold is released when the request ends and only the tokens used are charged. - A request with no answer, because every route failed, costs nothing. A stream you close part way still runs to its end at the model, and is charged for the tokens it used.
- Some models price by prompt size, time of day or reasoning effort; each model’s page says so. Automatic prompt caching works as at the model’s maker, and cached tokens are billed at the cached rate; explicit
cache_controlmarkers are removed. - Text and pictures (
image_url) only, and function tools only: web search, audio, files and video input, predicted outputs and built-in tools are refused with400 unsupported_parameter. Parameters outside OpenAI’s chat completions set are ignored. - Every model has a route at its listed price. When that route is busy, a request can run on a backup route, and is charged that route’s cost where it is higher, never more than the hold.
Keep token spend predictable
- Cap each request with
max_tokens. The hold is the prompt plusmax_tokens, and what is not used is released, so setting it is the simplest cap on a single call. - Prepaid credit is a hard ceiling. Calls draw from a prepaid balance, so a runaway loop stops when the credit runs out; there is no surprise invoice. 100 credits are $1; volume terms are on enterprise.
- Track cost per user. Store the
cost_usdof each reply next to the user who made the request, for exact per-user cost without estimates.
Errors
Errors use OpenAI’s shape, {"error": {"message", "type", "code"}}, so SDKs raise their usual exceptions: 400 invalid_request | unsupported_parameter, 401, 402 insufficient_credits (top up, or lower max_tokens), 404 model_not_found, 413 body_too_large (over 20 MB), 429 concurrency_limit, 502 model_unavailable and 503 model_busy | busy (retry in a few seconds; nothing was charged).
What you can build on it
Agents with function tools
Send function tools in the OpenAI format and the model returns tool calls your code runs; the same loop works across makers. Built-in tools such as web search are not offered, so your agent calls its own functions and every action stays in your code.
Structured output for your app
Use response_format to ask for JSON your app can parse without cleanup, for extraction, tagging and form filling. Pair it with a low-cost model for high-volume jobs; the cost of each call comes back in the reply.
Chat interfaces that stream
Turn on streaming and your interface shows words as they arrive, in the usual chat.completion.chunk format. The Vercel AI SDK, LangChain and Open WebUI work with the base URL and your key.
Prompts that become video
Have a language model write a shot list, then send each shot to a video model on the same key through POST /v1/generations. Text and video bill from one balance, so a pipeline has one cost line; pictures in prompts work too, through image_url.
Move your existing code in two lines
client = OpenAI(
base_url="https://api.revana.si/v1", # was the default
api_key=os.environ["REVANA_API_KEY"], # your Revana key
)- Every OpenAI client library then works unchanged. Model names follow each maker’s own naming and are listed by
GET /v1/models. - Errors keep OpenAI’s shape: a 503 means retry in a few seconds and nothing was charged; a 402 means the balance is too low, so top up or lower
max_tokens. - Not offered yet: audio, files, video input, predicted outputs and built-in tools, refused with a clear 400. Text, pictures and function tools work.
Models and prices
How to pick a model from the list
- Hard problems: for long reasoning, coding and agent work, start with the newest Claude Opus, GPT or Gemini Pro models. Claude Opus 5.5 costs $2.24 per million input tokens and $11.20 per million output tokens (November 2026). Run a sample of your real prompts through two or three and compare the answers against their
cost_usd. To price a workload first, the Claude Opus 4.8 API pricing page has a token cost calculator. - Volume: classification, extraction and short replies rarely need a frontier model. Claude Haiku 5.5 costs $0.056 per million input tokens and $0.28 per million output tokens (November 2026), and smaller models answer faster.
- Long context: 36 models accept 1M tokens or more (the context column), for long documents, codebases and transcripts. Cached tokens bill at the cached rate, so a repeated long prompt costs far less the second time.
- Every maker’s price sheet: Claude, OpenAI, Gemini, Qwen.
USD per million tokens. Click a model for its full price sheet. The same list is /data/llms.json.
| Model | Input | Cached | Output | Context |
|---|---|---|---|---|
| Claude Fable 5claude-fable-5 · Anthropic | $5.60 | $0.56 | $28.00 | 1M |
| Claude Fable 5.1claude-fable-5-1 · Anthropic | $5.60 | $0.14 | $28.00 | 1M |
| Claude Fable 5.2claude-fable-5-2 · Anthropic | $4.48 | $0.112 | $22.40 | 1M |
| Claude Haiku 4.5claude-haiku-4-5-20251001 · Anthropic | $1.44 | $0.144 | $7.20 | 128K |
| Claude Haiku 4.5 (thinking)claude-haiku-4-5-20251001-thinking · Anthropic | $1.44 | $1.44 | $7.20 | — |
| Claude Haiku 5.5claude-haiku-5-5 · Anthropic | $0.056 | $0.0056 | $0.28 | 1M |
| Claude Opus 4.5claude-opus-4-5-20251101 · Anthropic | $7.20 | $7.20 | $36.00 | — |
| Claude Opus 4.5 (thinking)claude-opus-4-5-20251101-thinking · Anthropic | $7.20 | $7.20 | $36.00 | — |
| Claude Opus 4.6claude-opus-4-6 · Anthropic | $7.20 | $0.72 | $14.40 | 1M |
| Claude Opus 4.6 (thinking)claude-opus-4-6-thinking · Anthropic | $7.20 | $7.20 | $36.00 | — |
| Claude Opus 4.7claude-opus-4-7 · Anthropic | $7.20 | $0.72 | $36.00 | 128K |
| Claude Opus 4.8claude-opus-4-8 · Anthropic | $2.80 | $0.28 | $14.00 | 1M |
| Claude Opus 5claude-opus-5 · Anthropic | $2.80 | $0.28 | $14.00 | 1M |
| Claude Opus 5.5claude-opus-5-5 · Anthropic | $2.24 | $0.112 | $11.20 | 1M |
| Claude Sonnet 4.5claude-sonnet-4-5-20250929 · Anthropic | $4.32 | $0.432 | $21.60 | 128K |
| Claude Sonnet 4.5 (thinking)claude-sonnet-4-5-20250929-thinking · Anthropic | $4.32 | $4.32 | $21.60 | — |
| Claude Sonnet 4.6claude-sonnet-4-6 · Anthropic | $4.32 | $0.432 | $21.60 | 128K |
| Claude Sonnet 4.6 (thinking)claude-sonnet-4-6-thinking · Anthropic | $4.32 | $4.32 | $21.60 | — |
| Claude Sonnet 5claude-sonnet-5 · Anthropic | $1.12 | $0.112 | $5.60 | 1M |
| Claude Sonnet 5.5claude-sonnet-5-5 · Anthropic | $1.12 | $0.056 | $5.60 | 1M |
| DeepSeek R1deepseek-r1 · DeepSeek | $0.8064 | $0.8064 | $3.2256 | — |
| DeepSeek V3.2deepseek-v3.2 · DeepSeek | $0.3701 | $0.3701 | $0.5552 | — |
| DeepSeek V4 Flashdeepseek-v4-flash · DeepSeek | $0.6172 | $0.0618 | $1.8515 | 1M |
| DeepSeek V4 Prodeepseek-v4-pro · DeepSeek | $0.6336 | $0.0212 | $1.9008 | 1M |
| DeepSeek V4.1 Flashdeepseek-v4.1-flash · DeepSeek | $0.144 | $0.0029 | $0.576 | 1M |
| DeepSeek V4.1 Flash Cyberdeepseek-v4.1-flash-cyber · DeepSeek | $0.40 | $0.0094 | $1.3334 | 1.04M |
| Gemini 3 Flash Previewgemini-3-flash-preview · Google | $0.72 | $0.72 | $4.32 | — |
| Gemini 3 Flash Preview (no thinking)gemini-3-flash-preview-nothinking · Google | $0.72 | $0.72 | $4.32 | — |
| Gemini 3 Flash Preview (thinking)gemini-3-flash-preview-thinking · Google | $0.72 | $0.72 | $4.32 | — |
| Gemini 3 Pro Previewgemini-3-pro-preview · Google | $2.88 | $2.88 | $17.28 | — |
| Gemini 3 Pro Preview (thinking)gemini-3-pro-preview-thinking · Google | $2.88 | $2.88 | $17.28 | — |
| Gemini 3.1 Flash Lite Previewgemini-3.1-flash-lite-preview · Google | $0.36 | $0.36 | $2.16 | — |
| Gemini 3.1 Pro Previewgemini-3.1-pro-preview · Google | $2.88 | $2.88 | $17.28 | — |
| Gemini 3.1 Pro Preview (thinking)gemini-3.1-pro-preview-thinking · Google | $2.88 | $2.88 | $17.28 | — |
| Gemini 3.5 Flashgemini-3.5-flash · Google | $2.16 | $2.16 | $12.96 | — |
| Gemini 3.5 Flash Litegemini-3.5-flash-lite · Google | $0.432 | $0.432 | $3.5986 | — |
| Gemini 3.6 Flashgemini-3.6-flash · Google | $2.16 | $0.216 | $10.80 | 1.05M |
| Gemini 3.7 Flashgemini-3.7-flash · Google | $1.08 | $0.108 | $5.40 | 1.05M |
| Gemini 3.8 Flashgemini-3.8-flash · Google | $0.36 | $0.036 | $1.80 | 1M |
| Gemini 4 Argongemini-4-argon · Google | $0.96 | $0.048 | $4.80 | 1M |
| Gemini 4 Hydrogengemini-4-hydrogen · Google | $2.16 | $0.108 | $10.80 | 1M |
| Gemini 4 Neongemini-4-neon · Google | $4.32 | $0.216 | $21.60 | 1.05M |
| Kimi K2.5kimi-k2.5 · Kimi | $0.7402 | $0.7402 | $0.9993 | — |
| Kimi K2.6kimi-k2.6 · Kimi | $0.912 | $0.1536 | $3.84 | 256K |
| Kimi K2.7 Codekimi-k2.7-code · Kimi | $0.912 | $0.1824 | $3.84 | 256K |
| Kimi K3kimi-k3 · Kimi | $2.88 | $0.288 | $14.40 | 1M |
| Kimi K3.1 Prokimi-k3.1-pro · Kimi | $1.92 | $0.192 | $9.60 | 1M |
| Kimi K3.1 Pro Highspeedkimi-k3.1-pro-highspeed · Kimi | $3.84 | $0.192 | $19.20 | 1M |
| MiniMax M2.5minimax-m2.5 · MiniMax | $0.432 | $0.432 | $1.728 | — |
| MiniMax M3minimax-m3 · MiniMax | $0.432 | $0.432 | $1.728 | — |
| GPT-4.1gpt-4.1 · OpenAI | $2.88 | $0.72 | $11.52 | 128K |
| GPT-4.1 minigpt-4.1-mini · OpenAI | $0.576 | $0.144 | $2.304 | 128K |
| GPT-4.1 nanogpt-4.1-nano · OpenAI | $0.144 | $0.036 | $0.576 | 128K |
| GPT-4ogpt-4o · OpenAI | $3.60 | $1.80 | $14.40 | 128K |
| GPT-4o minigpt-4o-mini · OpenAI | $0.216 | $0.216 | $0.864 | — |
| GPT-5gpt-5 · OpenAI | $1.80 | $0.18 | $14.40 | 128K |
| GPT-5 minigpt-5-mini · OpenAI | $0.36 | $0.036 | $2.88 | 128K |
| GPT-5 nanogpt-5-nano · OpenAI | $0.072 | $0.0072 | $0.576 | 128K |
| GPT-5.1gpt-5.1 · OpenAI | $1.80 | $0.18 | $14.40 | 128K |
| GPT-5.2gpt-5.2 · OpenAI | $2.52 | $0.252 | $20.16 | 128K |
| GPT-5.3 Codexgpt-5.3-codex · OpenAI | $2.52 | $2.52 | $20.16 | — |
| GPT-5.4gpt-5.4 · OpenAI | $3.60 | $0.36 | $21.60 | 1M |
| GPT-5.4 minigpt-5.4-mini · OpenAI | $1.08 | $0.108 | $6.48 | 128K |
| GPT-5.4 nanogpt-5.4-nano · OpenAI | $0.288 | $0.0288 | $1.80 | 128K |
| GPT-5.5gpt-5.5 · OpenAI | $1.84 | $0.184 | $11.04 | 1.05M |
| GPT-5.6 Lunagpt-5.6-luna · OpenAI | $0.288 | $0.0288 | $1.728 | 922K |
| GPT-5.6 Solgpt-5.6-sol · OpenAI | $1.472 | $0.1472 | $7.36 | 1.05M |
| GPT-5.6 Terragpt-5.6-terra · OpenAI | $0.736 | $0.0736 | $4.416 | 1.05M |
| GPT-6 Astragpt-6-astra · OpenAI | $3.68 | $0.368 | $18.40 | 1.05M |
| GPT-6 Lunagpt-6-luna · OpenAI | $0.144 | $0.0144 | $0.72 | 922K |
| GPT-6 Solgpt-6-sol · OpenAI | $0.736 | $0.0736 | $3.68 | 1.05M |
| GPT-6.1 Solgpt-6.1-sol · OpenAI | $0.736 | $0.0368 | $3.68 | 1.05M |
| GPT-6.1 Terragpt-6.1-terra · OpenAI | $0.368 | $0.0184 | $1.84 | 1.05M |
| o3o3 · OpenAI | $2.88 | $2.88 | $11.52 | — |
| o3-minio3-mini · OpenAI | $1.584 | $0.792 | $6.336 | 128K |
| o3-mini (high)o3-mini-high · OpenAI | $1.584 | $1.584 | $6.336 | — |
| o3-mini (low)o3-mini-low · OpenAI | $1.584 | $1.584 | $6.336 | — |
| o3-mini (medium)o3-mini-medium · OpenAI | $1.584 | $1.584 | $6.336 | — |
| o4-minio4-mini · OpenAI | $1.584 | $0.396 | $6.336 | 128K |
| Qwen3.6-Flashqwen3.6-flash · Qwen | $0.2469 | $0.2469 | $1.4809 | — |
| Qwen3.6-Plusqwen3.6-plus · Qwen | $0.4116 | $0.4116 | $2.4694 | — |
| Qwen3.7-Flashqwen3.7-flash · Qwen | $0.0412 | $0.0083 | $0.1646 | 984K |
| Qwen3.7-Maxqwen3.7-max · Qwen | $2.4685 | $2.4685 | $7.4054 | — |
| Qwen3.7-Plusqwen3.7-plus · Qwen | $0.4116 | $0.4116 | $1.6463 | — |
| Qwen3.8 2.4T-A95Bqwen3.8-2.4t-a95b · Qwen | $2.4686 | $0.3086 | $7.4058 | 984K |
| Qwen3.8 27Bqwen3.8-27b · Qwen | $0.6172 | $0.1235 | $2.4686 | 984K |
| Qwen3.8-Flashqwen3.8-flash · Qwen | $0.1646 | $0.0206 | $0.5555 | 984K |
| Qwen3.8-Maxqwen3.8-max · Qwen | $1.92 | $0.24 | $5.76 | 1M |
| Qwen4-Maxqwen4-max · Qwen | $2.5715 | $0.1286 | $7.7143 | 992K |
| Step 3.7 Flashstep-3.7-flash · StepFun | $0.2777 | $0.2777 | $1.6658 | — |
| Grok 4.3grok-4.3 · xAI | $1.80 | $1.80 | $3.60 | — |
| Grok 4.5grok-4.5 · xAI | $0.96 | $0.144 | $2.88 | 500K |
| Grok 4.6grok-4.6 · xAI | $2.88 | $0.72 | $8.64 | 500K |
| Grok 4.7grok-4.7 · xAI | $0.96 | $0.24 | $2.88 | 500K |
| Grok 4.20 (non-reasoning)grok-4.20-0309-non-reasoning · xAI | $1.80 | $1.80 | $3.60 | — |
| Grok 4.20 (reasoning)grok-4.20-0309-reasoning · xAI | $1.80 | $1.80 | $3.60 | — |
| Grok 4.20 Multi-Agentgrok-4.20-multi-agent-0309 · xAI | $1.80 | $1.80 | $3.60 | — |
| Grok Build 0.1grok-build-0.1 · xAI | $1.44 | $1.44 | $2.88 | — |
| GLM-5glm-5 · Zhipu GLM | $1.44 | $1.44 | $2.304 | — |
| GLM-5.1glm-5.1 · Zhipu GLM | $1.44 | $1.44 | $2.592 | 200K |
| GLM-5.2glm-5.2 · Zhipu GLM | $1.344 | $0.2496 | $4.224 | 1M |
| GLM-5.3glm-5.3 · Zhipu GLM | $1.344 | $0.2496 | $4.224 | 1M |
| GLM-5.3 Flashglm-5.3-flash · Zhipu GLM | $0.108 | $0.0216 | $0.36 | 1M |
| GLM-5.3 FlashXglm-5.3-flashx · Zhipu GLM | $0.3552 | $0.072 | $1.20 | 1M |
Frequently asked questions
What is an LLM API?
An LLM API is an HTTP endpoint where your app sends messages to a hosted language model and gets generated text back, billed by the token. Revana gives you one such endpoint, in the OpenAI chat completions format, for 104 models from Anthropic, OpenAI, Google, xAI, Alibaba and other makers.
How much do language model calls cost on Revana?
Each model has its own price per million input, cached and output tokens, listed in the table on this page. For example, Claude Haiku 5.5 costs $0.056 in and $0.28 out per million tokens, and Claude Opus 5.5 costs $2.24 in and $11.20 out (November 2026).
Does it work with the OpenAI SDK?
Yes. Point any OpenAI client library at https://api.revana.si/v1 with your Revana key and call any model by name. LangChain, LlamaIndex, the Vercel AI SDK, Cline and Open WebUI take the same two settings.
Can I try it before buying credit?
Yes. Your Revana API key is free, GET /v1/models lists every model and price without spending anything. Credit packs start at $10, never expire and need no subscription.
How is Revana different from calling each maker directly?
Calling each maker directly means a separate account, key, SDK setup and bill for every lab. With Revana you integrate once, switch models by name, and pay for text, image and video jobs from one prepaid balance.
Does a streamed reply show what it cost?
Yes. Add stream_options with include_usage set to true, and the last chunk of the stream carries the usage with cost_usd, the exact amount taken from your balance, so you can log spend per request even when you stream.