• English
  • Composite Keys

    A composite key binds several groups at once: each group gets a prefix, and the prefix on the model ID picks the group at call time. No per-group keys, no config juggling in the client.

    Creating one

    1. Click Create Key on the API Keys page.
    2. Name it and switch on Composite Key.
    3. In the mapping editor add rows, choosing a group and typing a prefix for each.
    4. Add as many mappings as needed and save.

    Editing an existing key offers the same switch and flow.

    SCREENSHOTComposite key switch
    Create-key dialog: turn on the highlighted composite-key switch to configure prefix mappings for multiple groups

    Prefix rules

    • 1–32 characters; letters, digits, underscores and hyphens only;
    • Case-insensitiveGPT and gpt are the same prefix and cannot both exist;
    • Each group may appear only once per key;
    • Mapping count per key is capped — the creation dialog shows the limit.

    Calling

    Write the model ID as prefix/modelID. Suppose fast → a high-speed group and cheap → a budget group:

    { "model": "fast/claude-sonnet-4", "messages": [{ "role": "user", "content": "Hello" }] }
    { "model": "cheap/deepseek-v3", "messages": [{ "role": "user", "content": "Hello" }] }
    Split at the first slash only

    If a model ID itself contains slashes, only the first slash separates the prefix: in fast/vendor/model the prefix is fast and the model ID is vendor/model.

    Model lists are auto-prefixed

    Fetching the model list with a composite key aggregates models from all bound groups, each already carrying its prefix. Clients can pick straight from the list — no manual prefixing.

    Billing

    Identical to regular keys: billed at the multiplier of whichever group the prefix hits; quotas, rate limits and expiry apply the same way. See Billing.

    Unsupported interfaces

    Composite keys do not support WebSocket / Realtime interfaces — long-lived connections may switch models mid-session, so a prefix cannot pin the group. Use regular keys there. Ordinary chat, completion, image and usage endpoints all work.

    Common errors

    Prefix problems all return HTTP 400:

    ErrorMeaningHandling
    Prefix missingModel ID carries no prefixUse prefix/modelID
    Prefix unknownNot in this key's mappingVerify the mapping on the API Keys page
    Prefix malformedIllegal characters or too longFollow the prefix rules
    Interface unsupportedRealtime-style interfaceUse a regular key
    © 2026 ByteSeek Limited. All rights reserved.TermsPrivacyDisclaimer