# TokenPadAI API Documentation > Next-gen LLM API Distribution & Management Platform - API Base URL: `https://www.tokenpad.ai` - Authentication: `Authorization: Bearer sk-your_token` (OpenAI / Unified), `x-api-key: sk-your_token` (Anthropic), `x-goog-api-key: sk-your_token` (Gemini) - Full Single-File Corpus: https://www.tokenpad.ai/llms-full.txt - Available Languages: [en](https://www.tokenpad.ai/llms.txt), [zh](https://www.tokenpad.ai/llms.txt?lang=zh), [zh-TW](https://www.tokenpad.ai/llms.txt?lang=zh-TW), [ja](https://www.tokenpad.ai/llms.txt?lang=ja), [ko](https://www.tokenpad.ai/llms.txt?lang=ko), [vi](https://www.tokenpad.ai/llms.txt?lang=vi), [th](https://www.tokenpad.ai/llms.txt?lang=th), [ms](https://www.tokenpad.ai/llms.txt?lang=ms), [de](https://www.tokenpad.ai/llms.txt?lang=de), [es](https://www.tokenpad.ai/llms.txt?lang=es), [ar](https://www.tokenpad.ai/llms.txt?lang=ar), [pt](https://www.tokenpad.ai/llms.txt?lang=pt), [fr](https://www.tokenpad.ai/llms.txt?lang=fr), [ru](https://www.tokenpad.ai/llms.txt?lang=ru) ## Quickstart - [Quickstart & Auth](https://www.tokenpad.ai/docs/quickstart/auth-guide.md): Welcome to the Unified API Gateway. Use the Base URL and API Key below to call models. - [Endpoints](https://www.tokenpad.ai/docs/quickstart/endpoints.md): Use your platform API key to call the following endpoints: ## Examples - [Chat Completions (Chat)](https://www.tokenpad.ai/docs/examples/chat.md): OpenAI-compatible: POST /v1/chat/completions. Unified access to mainstream large language models. - [Chat Messages (Anthropic)](https://www.tokenpad.ai/docs/examples/chat-anthropic.md): Anthropic-compatible: POST /v1/messages. Suitable for Anthropic SDK or native protocol integration. Messages API - [GPT Image Generation](https://www.tokenpad.ai/docs/examples/gpt-image.md): The code examples in this guide follow the OpenAI Images official specification. The endpoints and parameters are 100% compatible with OpenAI's official sp… - [Gemini Image Generation](https://www.tokenpad.ai/docs/examples/google-image.md): OpenAI compatible: POST /v1/images/generations. Official native path: POST /v1/models/{model}:generateContent (compatible with /v1beta/models/{model}:gener… - [Seedream Image Generation](https://www.tokenpad.ai/docs/examples/volc-image.md): OpenAI compatible: POST /v1/images/generations. Native path: /api/v3/images/generations. Official Documentation - [Seedance Video Generation](https://www.tokenpad.ai/docs/examples/volc-video.md): OpenAI compatible: POST /v1/video/generations. Native path: /api/v3/contents/generations/tasks. Video Generation API - [Kling Image Generation](https://www.tokenpad.ai/docs/examples/kling-image.md): OpenAI compatible: POST /v1/images/generations. Native paths: /v1/images/generations, /v1/images/omni-image. - [Midjourney Image Generation](https://www.tokenpad.ai/docs/examples/mj-image.md): OpenAI compatible: POST /v1/images/generations. Midjourney Official Parameters - [Kling Video Generation](https://www.tokenpad.ai/docs/examples/kling-video.md): OpenAI compatible: POST /v1/video/generations. Official 3.0 / Omni native paths: POST /text-to-video/${model_id}, POST /image-to-video/${model_id}, POST /o… - [Qwen Image Generation](https://www.tokenpad.ai/docs/examples/wan-image.md): OpenAI compatible: POST /v1/images/generations. Native path: /api/v1/services/aigc/multimodal-generation/generation. Image Generation API - [WAN Video Generation](https://www.tokenpad.ai/docs/examples/wan-video.md): OpenAI compatible: POST /v1/video/generations. Native path: /api/v1/services/aigc/video-generation/video-synthesis. Video Generation API - [Vidu Video Generation](https://www.tokenpad.ai/docs/examples/vidu-video.md): Vidu flagship model viduq4-preview is specialized in high-definition image-to-video (first-frame driven) and multi-reference video generation (reference2vi… - [MiniMax Video Generation](https://www.tokenpad.ai/docs/examples/minimax-video.md): OpenAI compatible: POST /v1/video/generations. Native path: /v2/video_generation. Video Generation API ## OpenAI Compatible - [Chat & Responses](https://www.tokenpad.ai/docs/openai/chat-completions.md): OpenAI-compatible chat. Follow the examples below with your platform API Key. - [Images](https://www.tokenpad.ai/docs/openai/images.md): OpenAI-compatible image generation endpoint. Follow the parameters and examples below. - [Video Generation](https://www.tokenpad.ai/docs/openai/video.md): OpenAI-compatible asynchronous video endpoint /v1/video/generations. Most video models are asynchronous: submit a task first, then poll for results. - [Audio & TTS](https://www.tokenpad.ai/docs/openai/text-to-speech.md): OpenAI-compatible text-to-speech: POST /v1/audio/speech. ## Volcengine Ark - [Ark Native API](https://www.tokenpad.ai/docs/volcengine-ark/volcengine-api.md): If your client already uses Volcengine Ark request paths, point the Base URL to this platform and use your platform API Key—no need to rewrite payloads to… ## Native APIs - [Alibaba DashScope](https://www.tokenpad.ai/docs/ali-kling/ali-dashscope.md): Alibaba Bailian compatible paths. For OpenAI-compatible examples see articles wan-image (Qwen image) and wan-video (Wan video). Image API | Video API. This… - [Kling AI](https://www.tokenpad.ai/docs/ali-kling/kling-ai.md): Kling official native protocol paths. Call using your platform API key. Image Generation API | Video Generation API - [MiniMax Native](https://www.tokenpad.ai/docs/ali-kling/minimax-native.md): If your client already uses MiniMax official video request payloads, point your Base URL to this platform and keep using MiniMax native endpoints and field… - [Vidu Native](https://www.tokenpad.ai/docs/ali-kling/vidu-native.md): If your client application uses Vidu official SDK or native payloads, you can directly set your Base URL to this platform and use Vidu official endpoints s… ## Google & Anthropic - [Google Gemini](https://www.tokenpad.ai/docs/google-anthropic/google-gemini.md): If you use the Google SDK or Gemini request format, call the paths below with your platform API key. Gemini API Official Docs - [Anthropic Claude](https://www.tokenpad.ai/docs/google-anthropic/anthropic-claude.md): Anthropic Messages–compatible path. Send Claude request payloads (such as claude-3-5-sonnet-20241022). Messages API ## Error Codes - [Gateway Error Codes](https://www.tokenpad.ai/docs/errors/error-codes.md): When calling LLMs via the API gateway, a failed response consists of an HTTP status code + a JSON error body. The external HTTP code is consistent with sta… ## Platform API - [Overview & Auth](https://www.tokenpad.ai/docs/site-api/site-api-overview.md): Welcome to the TokensByte Platform Feature API. In addition to calling major model providers through the unified AI router, the platform exposes endpoints… - [Account & Wallet](https://www.tokenpad.ai/docs/site-api/site-api-user.md): This section covers both direct quota queries using an API Key (sk-xxx) without logging in and managing your personal account and wallet using a console JW… - [API Keys & Logs](https://www.tokenpad.ai/docs/site-api/site-api-tokens-logs.md): Manage API keys (API Keys) under your account with full CRUD operations, and query LLM call logs or async task execution status. - [Models List](https://www.tokenpad.ai/docs/site-api/site-api-models.md): Client tools or third-party applications can dynamically fetch the list of platform models available to the current API Key via the endpoints below (the sy… ## System Advanced API - [Token Management](https://www.tokenpad.ai/docs/system-advanced-api/advanced-api-tokens.md): Once the site enables the "Site Advanced API" plugin in the admin console, you can create an Account Permission Key (tb_acct_...) in Console Settings -> Be… - [Models & Pricing](https://www.tokenpad.ai/docs/system-advanced-api/advanced-api-models.md): Query the models available to the current account, base billing rates, site-wide/scheduled discounts, current user-tier discount and per-model exclusive di… ## Best Practices - [Codex & Claude Code](https://www.tokenpad.ai/docs/best-practices/codex-claude-guide.md): This guide details how to configure the TokensByte gateway endpoints, proxy routing, and account balance query extractors for AI Agent clients (such as Cod… - [WorkBuddy Integration Guide](https://www.tokenpad.ai/docs/best-practices/workbuddy-guide.md): This guide details how to integrate the TokensByte platform into the WorkBuddy AI client, configure OpenAI-compatible custom model channels, set model capa…