← Docs

Quickstart

Complete cURL Example

curl -sS "https://tokenhub.link/v1/chat/completions" \
  -H "Authorization: Bearer $TOKENHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v3.2",
    "messages": [
      {"role": "user", "content": "Hello, who are you?"}
    ],
    "max_tokens": 256,
    "temperature": 0.7
  }'

Key Parameters

ParameterDescription
API Key Create it in console API Keys after sign-in. It is shown only once when created, so store it securely.
Model Used to specify the target model. Supported formats: model name (for example deepseek-v3.2), provider/model (for example alibaba/deepseek-v3.2), and TokenHub plan model name.
Request Format Different modalities use different request formats. See Text Models, Image Models, Video Models documentation.