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/modelsResponse Schema
| Field | Type | Description |
|---|---|---|
object | string | Always "list". |
data | array | Array of model objects. |
data[].id | string | Model identifier (e.g. claude-sonnet-4-20250514). |
data[].object | string | Always "model". |
data[].created | integer | Unix timestamp of model availability. |
data[].owned_by | string | Model 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/infoResponse Schema
| Field | Type | Description |
|---|---|---|
data[].id | string | Model identifier. |
data[].name | string | Human-readable model name. |
data[].provider | string | Model provider. |
data[].max_tokens | integer | Maximum output tokens supported. |
data[].input_price | number | Price per 1M input tokens (USD). |
data[].output_price | number | Price 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"