Model ids

Our model ids, how to list them, and what the catalogue fields mean.

Each model has an id of ours, such as kd-balanced. Send it in the model field; answers echo the same id.

Listing models

GET /v1/models lists the models your key may use, in the Chat Completions list format, with their API styles (endpoints), limits, capabilities and prices (pricing, and next_pricing when a change is scheduled; deprecated: true on a model being retired). Add ?format=messages for the Messages list format.

request
curl "$KEYDAN_API_BASE/v1/models" \
  -H "Authorization: Bearer $KEYDAN_API_KEY"
response
{
  "object": "list",
  "data": [
    {
      "id": "kd-balanced",
      "object": "model",
      "created": 1767225600,
      "owned_by": "keydan",
      "name": "Keydan Balanced",
      "context_length": 200000,
      "max_output_tokens": 64000,
      "endpoints": ["messages", "chat"],
      "capabilities": {"tools": true, "vision": true, "streaming": true},
      "pricing": {"currency": "USD", "unit": "per_million_tokens",
                  "input": "3.6", "output": "18", "cache_read": "0.36", "cache_write": "4.5",
                  "cache_write_1h": "7.2", "request": "0"}
    }
  ]
}

GET /public/v1/models needs no key and returns the public catalogue with prices, as shown on the models page:

GET /public/v1/models
{
  "models": [
    {
      "id": "kd-balanced",
      "name": "Keydan Balanced",
      "surfaces": ["messages", "chat"],
      "context_tokens": 200000,
      "max_output_tokens": 64000,
      "capabilities": {"tools": true, "vision": true, "streaming": true, "prompt_cache": true},
      "status": "active",
      "price": {"input": "3.60", "output": "18.00", "cache_read": "0.36", "cache_write": "4.50",
                "request_fee": "0", "effective_from": "2026-11-19T00:00:00Z"},
      "next_price": null
    }
  ],
  "currency": "USD"
}

kd-auto

kd-auto is not a model but a choice: send it as model and each request goes to the fitting tier (kd-fast, kd-balanced or kd-max), with the stronger tiers as fallbacks. It is listed first in GET /v1/models when at least two of its tiers are available to your key; its entry has no price, since each answer is priced by the model that answered. Details: Chat Completions.

Catalogue fields

Catalogue fields
FieldMeaning
surfacesthe API styles the model can be called with: messages, chat
context_tokens, max_output_tokensthe context window and the largest answer
capabilitiestools, vision (images), streaming, prompt_cache, reasoning
statusactive, or deprecated: still served, to be retired; move to another model
priceUSD per 1M tokens: input, output, cache_read, cache_write (5-minute cache), cache_write_1h, plus request_fee per request
next_pricea scheduled price and its effective_from (always the start of an hour, UTC)

Errors

  • 404 model_not_found: no model with this id.
  • 400 model_not_supported_on_surface: the model exists but not in the API style you called.
  • 403 model_not_allowed: your key is restricted to other models.