API

API Models

List available models and choose one that supports your request.

List models

curl "$CENMAX AI_BASE_URL/models" \
  -H "Authorization: Bearer $CENMAX AI_API_KEY"

The response uses an OpenAI-compatible list shape.

{
  "object": "list",
  "data": [
    {
      "id": "pro",
      "object": "model",
      "owned_by": "Cenmax AI",
      "description": "Specialised in problem solving and planning.",
      "context_window": 131072,
      "max_output_tokens": 32768,
      "capabilities": {
        "tools": true,
        "json_mode": true,
        "vision": false,
        "reasoning": true
      }
    }
  ]
}

Values can change as models improve. Treat the response as authoritative. Check capabilities before sending tools, structured output, images, or reasoning requests. Use context_window to control total input size and max_output_tokens to cap requested output.

Use only the public id returned by this endpoint. Vendor model names are not valid Cenmax AI model IDs. An unknown model returns 404 with code model_not_found.