Skip to content

Models

GET /v1/models

Returns a list of all available models with their pricing and metadata.

{
"object": "list",
"data": [
{
"id": "gpt-4o-mini",
"object": "model",
"created": 1700000000,
"owned_by": "uni",
"provider": "openai",
"context_window": 128000,
"description": "Fast, affordable small model for lightweight tasks",
"pricing": {
"input_per_1k": 0.00015,
"output_per_1k": 0.0006
}
}
]
}
FieldTypeDescription
idstringModel identifier — use this as the model parameter in requests
objectstringAlways "model"
createdintegerUnix timestamp
owned_bystringAlways "uni"
providerstringUpstream provider name
context_windowintegerMaximum context window size in tokens
descriptionstringHuman-readable model description
pricing.input_per_1knumberCost per 1,000 input tokens (USD)
pricing.output_per_1knumberCost per 1,000 output tokens (USD)
Terminal window
curl https://api.aiand.com/v1/models \
-H "Authorization: Bearer sk-your-api-key"

Token cost is calculated as:

cost = (input_tokens / 1000 * input_per_1k) + (output_tokens / 1000 * output_per_1k)

Credits are deducted automatically after each successful request. Failed requests (4xx/5xx) are not billed.