• English
  • API Endpoints

    Most clients ask for an API address (Base URL). ByteSeek provides different entries per protocol format — the format is dictated by your client, and the group must support the same format.

    Protocol endpoints

    ProtocolBase URLTypical paths
    OpenAI Chathttps://tokens.byteseek.ai/v1POST /chat/completions
    OpenAI Responseshttps://tokens.byteseek.ai/v1POST /responses
    OpenAI Imageshttps://tokens.byteseek.ai/v1POST /images/generations
    Anthropichttps://tokens.byteseek.aiPOST /v1/messages
    Model listhttps://tokens.byteseek.ai/v1/modelsClients fetch available models automatically

    Which models each format serves is always as shown live in the model plaza.

    Request format reference

    Minimal working requests per protocol — swap in your own key and run:

    OpenAI Chat
    OpenAI Responses
    OpenAI Images
    Anthropic

    The format used by nearly every "OpenAI-compatible" client and SDK:

    curl https://tokens.byteseek.ai/v1/chat/completions \
      -H "Authorization: Bearer sk-your-key" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "MODEL_ID",
        "messages": [{ "role": "user", "content": "Hello" }]
      }'

    Copy the real MODEL_ID from the matching group in the model plaza; prefix it when using a composite key.

    Alternate routes

    Besides the default address there are CN2-GIA premium routes; switch when your network is poor. All three are fully equivalent with identical path rules:

    RouteDomainFor
    Defaulttokens.byteseek.aiGeneral use
    CN2-GIA (US West)tokens-us.byteseek.aiUS West premium route
    CN2-GIA (Germany)tokens-de.byteseek.aiEurope premium route

    All endpoints can be copied with one click at the top of the API Keys page.

    SCREENSHOTEndpoint bar
    The endpoint bar at the top of the keys page: default, US West and Germany routes, click to copy

    Choosing a format

    One rule: use the format your client's setting is named after.

    Client settingFormatValue
    ANTHROPIC_BASE_URLAnthropichttps://tokens.byteseek.ai (no /v1)
    OPENAI_BASE_URL / Base URLOpenAIhttps://tokens.byteseek.ai/v1

    By client:

    • Anthropic format: Claude Code, and anything natively speaking the Anthropic protocol
    • OpenAI format: Codex, Cherry Studio, and everything labelled "OpenAI-compatible"

    Some models offer both format groups (see Core Concepts). Pick the group matching your client when creating the key — the wrong choice returns 403, see Error Codes.

    Authentication

    The API key travels in a request header; most clients handle this automatically. The auth header differs per format:

    FormatAuth header
    OpenAI family (Chat / Responses / Images)Authorization: Bearer sk-your-key
    Anthropicx-api-key: sk-your-key (plus the anthropic-version header)

    Never pass keys via URL query parameters — insecure and rejected.

    Filling in the URL

    • Watch the /v1: Anthropic format without, OpenAI format with. Some clients append paths themselves — after configuring, fetch the model list once to verify.
    • Always https://, never http://.
    • With a composite key, model IDs must carry the prefix.
    © 2026 ByteSeek Limited. All rights reserved.TermsPrivacyDisclaimer