Browse documentation
API reference

Model discovery

List the models your key can access and read the capabilities of a specific route.

GET /v1/models

cURL
curl "https://kavren.dev/v1/models?limit=2" \
  -H "Authorization: Bearer $KAVREN_API_KEY"

Read data[].id as the exact model ID. When has_more is true, pass last_id as after_id for the next page. Use before_id to page backwards. Send one cursor at a time and a limit from 1 to 1000.

Read current prices

cURL
curl "https://kavren.dev/v1/models/deepseek-v4.1-flash-fast" \
  -H "Authorization: Bearer $KAVREN_API_KEY"

Read pricing.input_per_m, cached_input_per_m and output_per_m inside pricing for current USD prices per million tokens. Filter on abliterated for the variant. context_length is an alias for context_window. Where available, reasoning_default gives the default effort.

GET /v1/models/{id}

cURL
curl "https://kavren.dev/v1/models/deepseek-v4.1-flash-fast" \
  -H "Authorization: Bearer $KAVREN_API_KEY"

Read input_modalities before attaching an image, reasoning_efforts before choosing an effort, and max_output_tokens before setting your output limit.

Example response · selected fields
{
  "id": "deepseek-v4.1-flash-fast",
  "input_modalities": [
    "text",
    "image"
  ],
  "output_modalities": [
    "text"
  ],
  "context_window": 1048576,
  "max_output_tokens": 256000,
  "reasoning_efforts": [
    "off",
    "low",
    "high",
    "max"
  ]
}

Search Kavren