List Models

Returns a list of all available models with metadata.

Returns a list of all available models with their metadata including pricing, context window, and capabilities.

GET /v1/models

Authentication

AuthorizationBearerrequired

API key as bearer token in the Authorization header. Create keys at Manage API Keys.

Response

object'list'optional

Always list.

dataModel[]optional

Array of model objects.

Model object

Each model in the data array has this shape:

FieldTypeDescription
idstringUnique model identifier. Use this in API requests.
namestringHuman-readable model name.
object'model'Always model.
createdintegerUnix timestamp when the model was added.
owned_bystringProvider or organization that owns the model.
architectureobjectModel capabilities and limits.
pricingobjectCost per million tokens.
deprecated_atstringISO 8601 date the model stops working. Present only during the 10-day deprecation notice. See Model lifecycle.
deprecatedbooleantrue once the deprecation date has passed. Requests to the model are rejected.
replaced_bystringID of the recommended replacement model. Present during the notice and after deprecation when one is set.

Architecture object

FieldTypeDescription
input_modalitiesstring[]Supported input types: text, image, audio, video.
output_modalitiesstring[]Supported output types: text, image, audio, video.
context_windowintegerMaximum context window in tokens.
max_completion_tokensintegerMaximum output tokens.
image_aspect_ratiosstring[]Supported aspect ratios for image generation models.
image_resolutionsstring[]Supported resolution steps for image generation models.
image_qualitiesstring[]Supported quality levels for image generation models.
video_sizesstring[]Supported video sizes for video generation models.
supported_parametersstring[]Request parameters the model accepts.

Pricing object

Prices are in USD per 1 million tokens unless noted otherwise. Only the fields that apply to a model are present. Token prices are either a flat number or an array of tiers ({ "up_to": 200000, "price": 3 }, { "above": 200000, "price": 6 }) keyed on the request's token count.

FieldTypeDescription
promptnumber | tier[]Cost per 1M input tokens.
completionnumber | tier[]Cost per 1M output tokens.
cache_readnumber | tier[]Cost per 1M cached read tokens.
cache_writenumber | tier[]Cost per 1M cache write tokens.
cache_write_1hnumber | tier[]Cost per 1M tokens written to a 1-hour cache entry.
image_input_tokensnumber | tier[]Cost per 1M image input tokens.
image_output_tokensnumber | tier[]Cost per 1M image output tokens.
audio_input_tokensnumber | tier[]Cost per 1M audio input tokens.
audio_inputnumberCost per second of input audio.
audio_outputnumberCost per second of output audio.
text_inputnumberCost per 1M input characters.
video_outputnumber | objectCost per second of generated video. An object maps a resolution (for example "720p") to its price.
per_image_inputnumberCost per input reference image.
per_image_outputnumber | objectCost per generated image. An object maps a resolution or quality variant (for example "1K") to its price.
discountnumberFraction taken off the listed prices, from 0 to 1.
discount_kind'promo' | 'baseline'Whether discount is a limited-time promotion or a permanent price.
peak_hoursobject[]UTC windows (start_hour inclusive, end_hour exclusive, 0 to 23) during which peak_pricing applies.
peak_pricingobjectRates (prompt, completion, cache_read, cache_write) charged inside peak_hours.
peak_exclude_daysinteger[]Weekdays (0 = Sunday) on which peak pricing never applies.
peak_exclude_utc_offset_minutesintegerUTC offset of the zone that peak_exclude_days refers to.
peak_active_todaybooleanWhether the peak schedule applies today (false on an excluded day).
peak_active_nowbooleanWhether peak pricing applies at the time of the request.