Skip to content

Models

Retrieve the list of available models and their details. Claudexia provides two endpoints for model information.

List Models

Returns an OpenAI-compatible list of available models.

http
GET https://api.claudexia.tech/v1/models

Response Schema

FieldTypeDescription
objectstringAlways "list".
dataarrayArray of model objects.
data[].idstringModel identifier (e.g. claude-sonnet-4-20250514).
data[].objectstringAlways "model".
data[].createdintegerUnix timestamp of model availability.
data[].owned_bystringModel provider (e.g. "anthropic").

Example Response

json
{
  "object": "list",
  "data": [
    {
      "id": "claude-sonnet-4.5",
      "object": "model",
      "created": 1715644800,
      "owned_by": "anthropic"
    },
    {
      "id": "claude-haiku-4.5",
      "object": "model",
      "created": 1729555200,
      "owned_by": "anthropic"
    }
  ]
}

Model Info

Returns detailed model information including pricing.

http
GET https://api.claudexia.tech/v1/models/info

Response Schema

FieldTypeDescription
data[].idstringModel identifier.
data[].namestringHuman-readable model name.
data[].providerstringModel provider.
data[].max_tokensintegerMaximum output tokens supported.
data[].input_pricenumberPrice per 1M input tokens (USD).
data[].output_pricenumberPrice per 1M output tokens (USD).

Example Response

json
{
  "data": [
    {
      "id": "claude-sonnet-4.5",
      "name": "Claude Sonnet 4",
      "provider": "anthropic",
      "max_tokens": 8192,
      "input_price": 3.0,
      "output_price": 15.0
    },
    {
      "id": "claude-haiku-4.5",
      "name": "Claude 3.5 Haiku",
      "provider": "anthropic",
      "max_tokens": 8192,
      "input_price": 0.8,
      "output_price": 4.0
    }
  ]
}

Example Request

bash
curl https://api.claudexia.tech/v1/models \
  -H "x-api-key: sk_cdx_YOUR_KEY"

curl https://api.claudexia.tech/v1/models/info \
  -H "x-api-key: sk_cdx_YOUR_KEY"