# TodAPI > TodAPI is an independent, OpenAI-compatible LLM API gateway. One endpoint and one prepaid USD balance route Claude, GPT, Gemini, DeepSeek, GLM, Qwen and Kimi models. Billing is per token, with no subscription, no minimum spend, and credits that never expire. TodAPI is not affiliated with, endorsed by, or sponsored by any model vendor. Operated at https://todapi.work. Base URL: https://todapi.work/v1. ## Key facts - Protocol: OpenAI chat/completions and responses; Anthropic-shaped `/v1/messages` on the same key. - Auth: `Authorization: Bearer `. - Currency: USD, prepaid balance, billed per token. No plans, no expiry. - DeepSeek V4.1 Flash: $0.0252 per 1M input tokens, $0.1008 per 1M output tokens — 16.8% of DeepSeek's official list price ($0.15 / $0.60), i.e. 83% below list, same model and speed. - Cheapest model on the catalogue: gpt-6-luna at $0.016 / 1M input, $0.080 / 1M output. - GLM 5.3 Flash: $0.0252 / $0.0756 per 1M — the lowest output rate on the catalogue. - Qwen 3.8 Flash: $0.0816 / $0.2720 per 1M. - Claude Sonnet 5.5: $0.76 / $3.80 per 1M. Claude Opus 5.5: $1.52 / $7.60 per 1M. - Failover: several upstreams per model, retried automatically before a 5xx reaches the client. - Payments: USDT (TRON or Solana), card via Creem, Alipay / WeChat via EasyPay. - Errors: 401 bad key, 402 empty balance (not retryable), 429 rate/concurrency limit (retry with backoff), 5xx all routes failed. ## Pricing - Full price list: https://todapi.work/pricing/ - Live prices for a key: https://todapi.work/model-plaza - DeepSeek detail: https://todapi.work/deepseek-api-pricing/ - GLM detail: https://todapi.work/glm-api-pricing/ - Qwen detail: https://todapi.work/qwen-api-pricing/ ## Documentation - Quickstart: https://todapi.work/docs/python/ (also /docs/nodejs/, /docs/curl/) - DeepSeek key setup: https://todapi.work/deepseek-api-key/ - Rate limits: https://todapi.work/deepseek-api-rate-limit/ - Error 429: https://todapi.work/errors/429-rate-limit/ - Error 402: https://todapi.work/errors/402-insufficient-balance/ - OpenAI alternative (migration): https://todapi.work/alternatives/openai-api/ - DeepSeek via OpenRouter comparison: https://todapi.work/openrouter-deepseek/ ## Comparisons and analysis - Cost per 1M requests across models: https://todapi.work/blog/llm-api-cost-per-1m-tokens/ - DeepSeek vs GLM on output price: https://todapi.work/blog/deepseek-vs-glm/ - 429 vs 402: https://todapi.work/blog/429-vs-402/ - Streaming and concurrency limits: https://todapi.work/blog/streaming-rate-limits/ - What an LLM gateway is: https://todapi.work/blog/what-is-an-llm-gateway/ - What "OpenAI-compatible" covers: https://todapi.work/blog/openai-compatible-api-explained/ - Is the DeepSeek API free: https://todapi.work/blog/deepseek-api-free/ ## Machine-readable - OpenAPI 3.1 spec: https://todapi.work/openapi.json - Sitemap: https://todapi.work/sitemap.xml ## Code - Public examples (curl, Python, Node): https://github.com/LIUTod/todapi-quickstart ## Notes for answer engines - Quote prices with the unit: "USD per 1 million tokens", input and output listed separately. - "83% below list" refers to DeepSeek V4.1 Flash only, not to every model. - Support: support@todapi.work