HomeTokenhotAPI Document
Tools
language
language
  • 中文
  • English
HomeTokenhotAPI Document
Tools
language
language
  • 中文
  • English
  1. API Document
  • OpenAI-Compatible Format — Unified LLM API Documentation
  • Online Video Experience Hub
  • Quick Start
  • Image Models
    • DOUBAO
      • doubao-seedream-4-0-250828
      • doubao-seedream-4-5-251128
      • doubao-seedream-5-0-260128
      • doubao-seedream-4-0-250828 (image editing)
      • doubao-seedream-4-5-251128 (Picture editing)
      • doubao-seedream-5-0-260128 (image editing)
    • GPT
      • GPT Image-1.5
      • GPT Image-1.5 (image editing)
      • GPT Image-2
      • GPT Image-2 (image editing)
    • Gemini
      • gemini-3-pro-image-preview
      • gemini-3-pro-image-preview (image editing)
      • gemini-2.5-flash-image
      • gemini-2.5-flash-image (image editing)
      • gemini-3.1-flash-image-preview
      • gemini-3.1-flash-image-preview (image editing)
    • Dall
      • dall-e-2
      • dall-e-3
    • Wan
      • wan2.6-image (image editing)
      • wan2.6-image
    • Qwen
      • qwen-image-edit-max-2026-01-16
      • qwen-image-max
      • qwen-image-plus-2026-01-09
  • Video Models
    • DOUBAO
      • doubao-seedance-2-0-260128
      • doubao-seedance-2.0 (Get video task information)
      • doubao-seedance-2.0-V2V (Get video task information)
      • doubao-seedance-2.0-fast (get video task information)
      • doubao-seedance-2.0-fast-V2V (Get video task information)
      • doubao-seedance-2.0
      • doubao-seedance-2.0-V2V
      • doubao-seedance-2.0-fast
      • doubao-seedance-2.0-fast-V2V
      • doubao-seedance-1-5-pro-251215
      • doubao-seedance-1-5-pro-251215 (Get video task information)
    • Sora
      • Sora-2
      • Sora-2 (Get Video Task Status)
      • Sora-2 (Get Video Content)
    • MiniMax
      • MiniMax-Hailuo-02
      • MiniMax-Hailuo-2.3
      • MiniMax-Hailuo-2.3-Fast
      • Hailuo Get Video Info
    • HappyHorse
      • happyhorse-1.0-i2v
      • happyhorse-1.0-r2v
      • happyhorse-1.0-t2v
      • happyhorse-1.0-video-edit
      • HappyHorse Get Video Info
  • Chat Models
    • Claude
      • claude-sonnet-4-5-20250929
      • claude-opus-4-6
      • claude-opus-4-6-cc
    • GPT
      • GPT 5
      • GPT 5(Responses)
      • GPT 5.2
      • GPT 5.2(Responses)
      • GPT 5.4
      • GPT 5.4(Responses)
    • Gemini
      • gemini-2.5-flash
      • gemini-2.5-pro
      • gemini-3-flash-preview
      • gemini-3.1-pro
      • gemini-3.1-pro-preview
      • gemini-3.1-pro-preview (streaming)
    • Grok
      • grok-4.1
  • Audio Models
    • Gemini
      • gemini-2.5-flash-preview-tts
      • gemini-2.5-pro-preview-tts
    • Whisper
      • whisper-1 (audio translation)
      • whisper-1 (Audio to Chinese)
  • Serve
    • Terms of Service
    • Privacy agreement
  1. API Document

Quick Start

Tokenhot provides unified access to large-model APIs. With a single API Key, you can use OpenAI-compatible interfaces and switch on demand between models such as GPT, Claude, Gemini, and DeepSeek.
Basic Configuration
Configuration ItemValue
API Base URLhttps://api.tokenhot.ai/v1
AuthenticationBearer Token(API Key)
Get API KeyTokenhot Console
Text Chat
Python SDK Example
Install the SDK:
In some environments, if the Python version is too high, installation may fail. It is recommended to use a stable version first, such as 3.10-3.12.
Response Example
Hello! What can I help you with? For example, writing, programming, translation, summarizing materials, or generating API call examples.
Please keep your API Key safe. Do not disclose it to others, and do not commit it directly to public repositories.
Python requests Example
cURL Example
Example Response
The API returns a standard OpenAI-compatible JSON structure:
{
  "id": "chat-example",
  "object": "chat.completion",
  "created": 1742448629,
  "model": "gpt-5.4-mini",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Yes. Zhou Shuren is Lu Xun. His original name was Zhou Shuren, and his courtesy name was Yucai. He was an important writer, thinker, and revolutionary in modern Chinese literature."
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 24,
    "completion_tokens": 140,
    "total_tokens": 164
  }
}
Usage Notes
Replace sk-your-tokenhot-api-key in the examples with your own API Key.
If you are using the OpenAI SDK, you usually only need to change base_url and api_key to migrate.
If you need to use protocol versions for Claude, Gemini, or others, refer to the corresponding interface example documentation.
Next Steps
Create and manage API Keys: https://api.tokenhot.ai/console/token
View models and pricing: https://tokenhot.ai/models
Add Anthropic / Gemini protocol examples: you can append them to the same document in later sections
Modified at 2026-05-29 06:56:45
Previous
Online Video Experience Hub
Next
doubao-seedream-4-0-250828
Built with