Models

GET /v1/models

List all available models with their capabilities, modalities, and prices.

Headers

Header Required Description
Authorization Yes Bearer <api-key-or-jwt>

Request

No request body. This is a GET endpoint.

Examples

cURL
Python
OpenAI SDK
curl https://api.quantized.us/v1/models \
  -H "Authorization: Bearer sk-quantized-YOUR-KEY"
import httpx

response = httpx.get(
    "https://api.quantized.us/v1/models",
    headers={"Authorization": "Bearer sk-quantized-YOUR-KEY"},
)
models = response.json()["data"]
for model in models:
    print(f"{model['id']}: {model['name']}")
from openai import OpenAI

client = OpenAI(
    api_key="sk-quantized-YOUR-KEY",
    base_url="https://api.quantized.us/v1",
)

models = client.models.list()
for model in models.data:
    print(model.id)

Response

The response follows the OpenAI list envelope: a top-level object with "object": "list" and a data array of model objects.

{
  "object": "list",
  "data": [
    {
      "id": "openai/gpt-4.1-mini",
      "object": "model",
      "owned_by": "openai",
      "name": "GPT 4.1 Mini",
      "description": "Fast and cheap model with 1M token context window.",
      "model_author": "openai",
      "logo_url": "https://.../openai.svg",
      "input_modality": {
        "text": true,
        "image": true,
        "audio": false,
        "video": false
      },
      "output_modality": {
        "text": true,
        "image": false,
        "audio": false,
        "video": false
      },
      "context_limits": {
        "max_context": 1047576,
        "max_input": null,
        "max_output": 32768
      },
      "knowledge_cutoff": "2024-04-01",
      "is_open_weights": false,
      "status": "active",
      "supported_features": ["tool_calls", "structured_output", "attachments", "temperature"],
      "price": {
        "prompt": 0.4,
        "completion": 1.6,
        "cache_read": 0.1
      },
      "reference_price": null
    }
  ]
}

Response fields

Field Type Description
object string Always "list"
data array List of model objects

Each entry in data contains:

Field Type Description
id string Model identifier (use this in the model field of requests)
object string Always "model"
owned_by string or null Model owner (same as model_author)
name string Human-readable model name
description string or null Model description
model_author string Model creator (e.g., openai, anthropic)
logo_url string or null Author logo, for rendering a model picker
input_modality object Supported input types: text, image, audio, video
output_modality object Supported output types: text, image, audio, video
context_limits object or null max_context, max_input, max_output in tokens. Any of the three can be null
knowledge_cutoff string or null Training cutoff as YYYY-MM-DD
is_open_weights boolean Whether the weights are publicly available
status string active or deprecated
supported_features array or null Supported capabilities. Current values: tool_calls, reasoning, attachments, temperature, structured_output, embeddings, bedrock_embeddings, gemini_embeddings
price object or null What your API key is charged, in USD per million tokens or per image. Can differ between keys. Shape varies, see below
reference_price object or null The market price, usually the maker’s own list price. Display only, never what you are charged. Same shape as price

Deprecated models

status is deprecated when the author has announced a retirement but the model is still served. It keeps working, and it still appears in this list. Treat it as a signal to migrate rather than an error.

Price shapes

price and reference_price are not a fixed schema. Read the keys that are present rather than assuming any of them:

Key Meaning Appears on
prompt Per million input tokens Token-priced models
completion Per million output tokens Token-priced models
cache_read Per million cached input tokens Models with prompt caching
cache_write Per million tokens written to cache Anthropic-style caching
prompt_batch Discounted input rate for a provider’s batch endpoint Gemini embeddings (half the prompt rate)
per_image Flat rate per generated image Per-image priced models

price is null when the rate is not known up front. That is not the same as free: the charge then comes from the provider’s reported cost and shows up as usage.credits_used on the response. Always bill against usage.credits_used rather than deriving it from price.

price is for the first endpoint that can serve the model, in the order /v1/chat/completions, /v1/responses, /v1/embeddings. A model served on more than one endpoint can bill differently on the others, so for image generation use the rates on Image generation.

No provider information

This response does not say which provider serves a model, so it cannot be used to check whether a model is reachable through a particular X-Quantized-Provider pin. See Providers.

Errors

Status Code Condition
400 invalid_request Malformed X-Quantized-Provider header
400 invalid_metadata_header Invalid X-Quantized-Metadata header
401 missing_api_key, invalid_api_key, api_key_expired, license_inactive Missing, invalid, or expired API key, or an inactive license
500 internal_error Unexpected error

Every error uses the standard error body. Branch on the status and code; see the Error reference for each.