One AI API · OpenAI-compatible
A unified OpenAI-compatible gateway for leading Chinese LLMs. Connect your existing OpenAI SDK, Cursor, Cline or LangChain — one key, prepaid billing, real-time spend.
Your existing OpenAI code just changes base_url and key:
import openai
client = openai.OpenAI(
api_key="sk-your-key",
base_url="https://api.tokiq.dev/v1",
)
resp = client.chat.completions.create(
model="deepseek-chat",
messages=[{"role": "user", "content": "Hello from overseas!"}],
)
print(resp.choices[0].message.content)Every model is served through the same OpenAI /v1 endpoint, so switching models is a one-line change.
Fast, general-purpose chat model for everyday apps, agents and tool calling. Streaming and JSON mode.
Extended-reasoning model for math, code and complex analysis. Long thinking chains with full streaming.
Everything you need to offer or use DeepSeek models through a standard interface.
openai, Cursor, Cline, LangChain and every client with a custom base_url work unchanged.
Both chat and long-reasoning models, with 128K context and streaming.
Every account gets its own virtual key with a hard spend cap. Top up any time.
Pay $5 / $20 / $50 packs. $1 of balance is $1 of model spend. Never expires.
TLS everywhere, Cloudflare DDoS protection, and SSE streaming with long timeouts.
Keys are created automatically at signup. Rotate or revoke them from your dashboard.
Create an account — a virtual API key with $0.50 trial balance is minted for you instantly.
Find your sk-… key in the dashboard. Top up balance when you need more.
Point your OpenAI client at https://api.tokiq.dev/v1 and use deepseek-chat or deepseek-reasoner.
Sign up in under a minute, get a funded key, and make your first call without touching any SDK.
deepseek-chat (general chat) and deepseek-reasoner (long reasoning / R1). Both are served through the same OpenAI /v1 endpoint.
Yes. The gateway exposes /v1/chat/completions and /v1/models exactly like OpenAI, so the official openai Python/Node SDKs work with only api_key and base_url changed.
Prepaid. You buy a $5, $20 or $50 pack and the balance is added to your key budget. Spend is tracked in real time; $1 of balance equals $1 of model spend.
Yes — any tool that accepts a custom OpenAI base URL. Set base_url to https://api.tokiq.dev/v1 and paste your key.
Requests return a 429 budget-exceeded error until you top up. Your key stays valid; just add a pack and keep going.