API Playground

Test Taotok API endpoints in your browser. One API key, all models. OpenAI-compatible.

Playground
API Reference

Try it live

curl https://api.taotok.io/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{"model":"gpt-4o","messages":[{"role":"system","content":"You are a helpful assistant."},{"role":"user","content":"Explain what an AI API gateway is in one sentence."}]}'
Enter your API key and click "Send Request" to test.

API Reference

Authentication

All requests require an API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Get your key from the Console after registration.

Base URL

https://api.taotok.io

Chat Completions

POST /v1/chat/completions

Create a chat completion. Fully compatible with OpenAI's chat completions API.

{
  "model": "gpt-4o",
  "messages": [
    {"role": "system", "content": "You are helpful."},
    {"role": "user", "content": "Hello!"}
  ],
  "temperature": 0.7,
  "max_tokens": 1024,
  "stream": false
}

Streaming

Set "stream": true to receive Server-Sent Events (SSE):

curl https://api.taotok.io/v1/chat/completions \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-4o","messages":[{"role":"user","content":"Hello"}],"stream":true}'

List Models

GET /v1/models

List all available models for your account.

curl https://api.taotok.io/v1/models \
  -H "Authorization: Bearer YOUR_API_KEY"

Supported Models

All models share a unified credit pool — one balance for everything. See pricing →

gpt-4oOpenAI GPT-4o
gpt-4o-miniOpenAI GPT-4o Mini
gpt-4-turboOpenAI GPT-4 Turbo
claude-3-5-sonnetAnthropic Claude 3.5 Sonnet
claude-3-opusAnthropic Claude 3 Opus
claude-3-haikuAnthropic Claude 3 Haiku
gemini-1.5-proGoogle Gemini 1.5 Pro
gemini-1.5-flashGoogle Gemini 1.5 Flash
deepseek-chatDeepSeek-V3
deepseek-reasonerDeepSeek-R1
← Back to Taotok