Access GPT, Claude, Gemini, DeepSeek and dozens more through a single endpoint. Better prices, higher uptime, low latency.
# Point your OpenAI client at VietToken curl https://api.viettoken.app/v1/chat/completions \ -H "Authorization: Bearer $VIETTOKEN_KEY" \ -d '{ "model": "openai/gpt-4o-mini", "stream": true, "messages": [{"role":"user","content":"Hi!"}] }'
Send one request to a single endpoint. VietToken routes it to the best model and streams tokens straight back — with automatic failover.
One integration, every model. Fast, reliable, and easy to plug in.
Edge servers + unbuffered streaming for near-instant first tokens. ~30–90ms overhead.
OpenAI, Anthropic, Google, DeepSeek, xAI and 35+ providers — switch with one line.
Automatic failover across keys and providers. When one fails, traffic reroutes instantly.
Keep your existing code. Just change the base URL — no rewrites, no lock-in.
From sign-up to your first streamed token in under a minute.
Sign up free and get trial credit.
Top up once, spend on any model. No subscriptions.
Create a key and start making requests.
Access frontier models through one unified API. Add or remove anytime.
Buy credits once, use on any model. No subscriptions, no hidden fees.
OpenAI-compatible — just change the base URL.
curl https://api.viettoken.app/v1/chat/completions \ -H "Authorization: Bearer $VIETTOKEN_KEY" \ -d '{ "model":"openai/gpt-4o-mini", "messages":[{"role":"user","content":"Hello"}] }'
from openai import OpenAI client = OpenAI( base_url="https://api.viettoken.app/v1", api_key="$VIETTOKEN_KEY", ) stream = client.chat.completions.create( model="anthropic/claude-haiku-4.5", messages=[{"role":"user","content":"Hello"}], stream=True, ) for chunk in stream: print(chunk.choices[0].delta.content or "", end="")
import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.viettoken.app/v1", apiKey: process.env.VIETTOKEN_KEY, }); const stream = await client.chat.completions.create({ model: "google/gemini-3-flash", messages: [{ role: "user", content: "Hello" }], stream: true, });
Get a free API key, integrate in minutes, pay only for what you use.
Get your free API key →