Developer Quickstart

Start making API calls
in under a minute.

TokenBridge routes your requests to DeepSeek, ByteDance Doubao, and Alibaba Qwen — OpenAI-compatible endpoints, EUR billing, GDPR compliant. No vendor accounts, no USD surprises.

01Get your API key

Create a free account and receive your API key instantly. No credit card required to sign up.

Create your free account

Get an API key in 30 seconds. Top up from €50 to start making calls.

Sign up — it's free

02Base URL

All requests go to this endpoint. It accepts OpenAI-compatible request bodies and returns responses in the same format.

https://tokenbridge-zoos.polsia.app/v1

03OpenAI-compatible

TokenBridge is a drop-in replacement for the OpenAI API. Just swap the base URL and your API key — no SDK changes needed. Any library or code that calls OpenAI will work with TokenBridge with a single line change.

💡

Works with: OpenAI SDK, LangChain, LangGraph, Vercel AI SDK, LlamaIndex, and any HTTP client that speaks the OpenAI API format.


04cURL

Make your first request right from the terminal.

bashcurl https://tokenbridge-zoos.polsia.app/v1/chat/completions \
  -H "Authorization: Bearer tb_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-chat",
    "messages": [{"role": "user", "content": "Hello, world!"}]
  }'

05Python

Install the OpenAI SDK and swap in your key.

pythonfrom openai import OpenAI

client = OpenAI(
    base_url="https://tokenbridge-zoos.polsia.app/v1",
    api_key="tb_live_YOUR_KEY",
)

response = client.chat.completions.create(
    model="deepseek-chat",
    messages=[{"role": "user", "content": "Hello, world!"}]
)

print(response.choices[0].message.content)

Install with pip install openai. Requires Python 3.7+.


06Node.js

Use the OpenAI SDK with Node.js or Deno.

javascriptimport OpenAI from 'openai';

const client = new OpenAI({
  baseURL: 'https://tokenbridge-zoos.polsia.app/v1',
  apiKey: 'tb_live_YOUR_KEY',
});

const response = await client.chat.completions.create({
  model: 'deepseek-chat',
  messages: [{ role: 'user', content: 'Hello, world!' }],
});

console.log(response.choices[0].message.content);

Install with npm install openai. Requires Node 18+.


07Error codes

TokenBridge returns standard HTTP status codes. Handle them in your code.

401 Unauthorized
Invalid or missing API key. Check that you're using tb_live_... and that the key is active.
402 Payment Required
Insufficient wallet balance. Top up your wallet to continue.
429 Too Many Requests
Rate limit exceeded. Wait and retry with exponential backoff.
5xx Upstream Error
Provider (DeepSeek/ByteDance/Alibaba) is having issues. Retry with exponential backoff.

08Billing

Token counts are calculated per API call. Your wallet is debited atomically at the end of each request — no guessing, no credits that disappear. Prices are in EUR and invoiced monthly with VAT.

💶 EUR invoicing, monthly with VAT
💳 Top up from €50
🔄 No expiry on credits

🤖

Available models: deepseek-chat, deepseek-reasoner, doubao-pro-32k, doubao-lite-32k, qwen-max, qwen-plus, qwen-turbo. See full pricing at /models.