Models
GET /v1/modelsReturns all available models with pricing and metadata.
Example
Section titled “Example”curl https://api.aiand.com/v1/models \ -H "Authorization: Bearer sk-your-api-key"Response
Section titled “Response”{ "object": "list", "data": [ { "id": "openai/gpt-oss-120b", "object": "model", "created": 1700000000, "owned_by": "ai&", "provider": "openai", "context_window": 128000, "description": "Fast, affordable small model for lightweight tasks", "pricing": { "input_per_1m": 0.15, "output_per_1m": 0.60 } } ]}Model object
Section titled “Model object”| Field | Type | Description |
|---|---|---|
id | string | Model identifier — use this as the model parameter in requests |
object | string | Always "model" |
created | integer | Unix timestamp |
owned_by | string | Always "ai&" |
provider | string | Upstream provider name |
context_window | integer | Maximum context length in tokens |
description | string | Short model description |
pricing.input_per_1m | number | Cost per 1M input tokens (USD) |
pricing.output_per_1m | number | Cost per 1M output tokens (USD) |
Cost calculation
Section titled “Cost calculation”cost = (input_tokens / 1_000_000 * input_per_1m) + (output_tokens / 1_000_000 * output_per_1m)Credits are deducted after each successful request. Failed requests (4xx/5xx) are not billed.