GET /v1/models is the programmatic way to enumerate the catalog. It returns every model that is currently serving, across all modalities — text, code, reasoning, vision, embeddings, rerank, moderation, image, audio, and video — in OpenAI’s Model shape, with each entry enriched so you can tell what the model accepts, what it costs, and which endpoint to call it through.
It needs a bearer key, but nothing more: discovery is exempt from budget checks, so the call keeps working even when your balance has run out. That is deliberate — deciding what to top up for is exactly the moment you need to read the catalog.
/v1/models is the catalog endpoint, and like every /v1/* route it needs a
key. If you don’t have one yet, start with the
quickstart.Calling /v1/models
Every example on this page calls the US endpoint. On an EU workspace, swap the host for https://eu.api.flex.ai/v1 — nothing else changes.
cURL (EU workspace)
{"object": "list", "data": [...]} — so the entries are under .data, not at the top level. Each entry looks like this, abridged to the fields worth explaining — a live entry carries a few more, and key order is not part of the contract:
id— the value to pass asmodelin subsequent calls.aliases[]— stable, human-friendly handles for the same model (e.g.coder-30b). Any alias works in place ofid. The field is omitted for models that have no alias. Unlikeid, an alias does not change when the underlying checkpoint or quantization does, so pin config to an alias if you want it to survive model updates.category— the model’s modality/family. This is what tells you which endpoint to call; see Category → endpoint.supported_parameters[]— the request parameters this specific model actually honors. This is the field to gate on: check it before sending a parameter rather than learning the answer from a runtime error.supported_sampling_parameters[]— a legacy field, kept so existing integrations keep working. Gate onsupported_parametersinstead. It is a blanket list rather than a per-model one: every chat model carries the same twelve entries, and every non-chat model carries an empty array. Because it is fixed, it is wrong in both directions on a given model — it advertisestop_a, which this gateway does not read, validate or forward on any model, and it omitstools,tool_choice,logprobs,top_logprobs,response_format,structured_outputsandreasoning_effort, which are exactly the capabilities worth checking before you send a request.input_modalities[]— what the model accepts. Vision support shows up here asimage, and video input asvideo, not insupported_parameters, because both are message shapes rather than request parameters.context_length/max_output_length— the context window and the maximum completion length, in tokens. On chat-family models the two are equal: the engine has no separate output ceiling, so a completion may use however much of the window your prompt leaves free (context_length − prompt tokens). Budget the two together — a longer prompt means less room for the completion, andmax_tokensis how you choose the split. A model wheremax_output_lengthis smaller thancontext_lengthgenuinely caps completions at that value. Both keys are on every entry;nullmeans we haven’t published the value yet (or, formax_output_length, that the model doesn’t produce tokens) — never that the model is unlimited.pricing— per-token rates on models billed per token:input_per_mtok/output_per_mtokin USD per million tokens, plus the same rates per single token as decimal strings (prompt/completion). On models with prompt caching enabled,cached_input_per_mtok(andinput_cache_read) is the discounted rate for prompt tokens served from cache; when it is absent the model has no cache discount and the whole prompt bills at the input rate.pricingisnullon per-unit models (image, audio, video), whose rates are inmedia_pricinginstead, and on a model whose price isn’t published yet —nullnever means free (see Reading prices below).media_pricing— on image, audio and video models, a list of per-unit USD rates: each entry has abilling_unit(image,megapixel,second_video,characterorminute_audio) and aunit_price_usd, plusresolution_tier/quality_tier/presetwhen the model has more than one price point.is_free/is_ready— two routing switches for third-party catalogs that ingest this endpoint, stated on every entry so the payload says what it means rather than leaning on an ingester’s defaults.is_freeis alwaysfalse: every model bills against the calling key’s balance, including the ones with nopricingobject here, so never read a missing price as a free one.is_readysays whether an ingester may route to the model —falsemeans its price cannot be expressed in the per-tokenpricingshape (per-unit media billing) or has not been published yet.is_readyis not a health or availability signal. Every model this endpoint lists is live, and anis_ready: falsemodel is fully callable with a direct request to its endpoint; the flag only governs third-party routing.supported_features[]— what the model can do, as opposed to what you may send. The two fields answer different questions, and the difference is worth holding onto.supported_parametersis the request contract: every entry has honored request behaviour behind it, which makes it the field to gate a request on. Most entries are literal keys you send;structured_outputsis the exception, marking support for a mode of another key (response_format: {"type": "json_schema"}— see Structured outputs) rather than something you send by that name.supported_featuresis a capability description, so it can name an ability with no request key behind it at all. Today it carriesreasoningon models that produce an extended reasoning trace,toolson tool-calling models, andjson_mode(which no model in the catalog currently declares).reasoningappears only here because reasoning is not uniformly controllable: some models reason unconditionally and offer no switch, while the depth dial we do advertise isreasoning_effort, which appears insupported_parameterson the models that accept it. So to find the reasoning models, read this field. Controlling how much they reason is a separate question, andsupported_parametersis where it is answered: a model listingreasoning_effortaccepts that dial, and ifreasoning_effortis absent then/v1/modelsadvertises no reasoning-control parameter for that model. Gate on what is advertised — as everywhere else on this endpoint, a parameter you don’t see listed is one we don’t undertake to honor.
Retrieve one model
GET /v1/models/{model} returns a single entry — the same object the list returns for that model — so you can check one model’s limits and price without fetching the whole catalog. model may be the id or any alias; the response always carries the canonical id.
404 with "code": "model_not_found". With the OpenAI SDKs this is client.models.retrieve("coder-30b").
Category → endpoint
A model’scategory tells you which endpoint it’s called through:
For
audio, input_modalities disambiguates the direction: a model whose input_modalities includes audio is speech-to-text; otherwise it’s text-to-speech.
category also answers “which chat models can read an image”: every chat model that accepts image input is categorized vision. The multimodal value is deprecated — those models are being folded into vision, and the value disappears from responses once that rollout completes. Until then, treat the two identically; the filters below include both so they return the full set on either side of the rollout.
Per-capability discovery flow
Each filter below finds the models, and the endpoint that follows is what you call once you have anid.
Chat & text
POST /v1/chat/completions. See streaming and tool use for the common patterns.
The max_tokens check is the general form of “is this model callable through the chat endpoint”: every chat model advertises the sampling surface, and no other endpoint’s parameter list contains it. Category alone is a weaker signal — it describes what a model is, not which endpoint accepts it — so the two together are what you want whenever you intend to POST the result to /v1/chat/completions.
Tool calling
Gate onsupported_parameters containing tools. If it’s absent, tool calling does not work on that model, whatever your SDK lets you send.
Structured outputs
Strict schema enforcement —response_format: {"type": "json_schema"} — requires structured_outputs. Sending a json_schema request to a model without it is rejected with a 400.
Vision (image input on chat)
select is doing real work: input_modalities says the model accepts an image, which is also true of an image-editing model that you call through /v1/images/generations. Requiring max_tokens narrows it to models that implement the chat sampling surface, so you get only the ones this endpoint is right for.
These are the models categorized vision (or the deprecated multimodal, until its fold into vision completes — see Category → endpoint), so once the fold is live, select(.category | IN("vision", "multimodal")) is the shorter spelling of the same filter.
Call with POST /v1/chat/completions and pass image parts in the content array. The full pattern lives in the vision guide.
Video input on chat
video in input_modalities means the model accepts a video_url content part. It is separate from image: a model that reads images does not necessarily read video, and a video_url sent to a model without it is refused with a 400. Video models that read images are still categorized vision. Call with POST /v1/chat/completions and pass the video in the content array; the full pattern lives in the video input guide.
Embeddings
POST /v1/embeddings. See the embeddings guide.
Image generation
POST /v1/images/generations. See the image generation guide.
Text-to-speech
Both directions of audio sharecategory: "audio", so the modality arrays are what separate them. A text-to-speech model produces audio:
POST /v1/audio/speech. See the audio guide.
Speech-to-text
A transcription model accepts audio:POST /v1/audio/transcriptions. See the audio guide.
Reading prices
pricing.input_per_mtok and pricing.output_per_mtok are USD per million tokens — the same numbers GET /v1/pricing reports. pricing.prompt and pricing.completion carry the same rates per single token, as decimal strings so they survive a JSON round-trip without floating-point loss; use those if you need exact arithmetic. Every price object states its currency.
GET /v1/pricing is the same price list as a flat table rather than one entry per model, and it is per region like everything else on the API host — read it from the endpoint your workspace bills against:
cURL (EU workspace)
pricing.cached_input_per_mtok is the rate charged for prompt tokens served from the cache instead of the full input rate (input_cache_read is the same rate per token). A model without it has no cache discount, so its whole prompt bills at input_per_mtok; absence never means cache reads are free.
Models billed per unit rather than per token have pricing: null — image generation bills per image, text-to-speech per character, transcription per minute of audio, and video per second, and none of those units has a key in the per-token shape above. Their rates are on the same entry, in media_pricing, quoted in USD per billing_unit:
media_pricing entry per point, told apart by resolution_tier, quality_tier and preset. GET /v1/pricing carries the same rows (with a pricing_type such as per_image or per_second) if you want every price in one flat list.
Both endpoints list only the models currently being served, so a model that is scaled down or restarting drops out until it is back; keep your own copy of a rate rather than reading an absent entry as a price change. A null pricing or media_pricing never means free — every model in the catalog bills against your balance.
Retired model ids and the suggested_model hint
Dated ids (a model id ending in a date-style suffix, like
DeepSeek-V4-Flash-0731) are pinned to the exact checkpoint they name: a
dated id is never re-pointed at different weights, so the model behind it
can’t change under you. If you need reproducible behavior, pin a dated id
where one exists. An undated id is the model’s family name and may move
to a newer checkpoint when one replaces the old — when that happens we
announce it, and going forward the replacement ships under a new dated id
while the outgoing id is retired rather than left pointing at weights it no
longer describes.
A request that names a retired id fails with 404. For 10 days after the
retirement, when the model has a direct replacement that is being served, the
error names it in the message and in a stable machine-readable field:
suggested_model is a declared replacement — a contract you can act on
programmatically (update your configured model id and retry), unlike
did_you_mean, which is fuzzy spelling help. After the 10 days the same
request gets the plain “Model id not recognized” 404 with no
suggested_model, so move to the replacement promptly. Prices may differ
between a retired id and its replacement; check /v1/models or the
model catalog before switching.
The image, video and audio endpoints (/v1/images/generations,
/v1/videos/generations, /v1/audio/speech, /v1/audio/transcriptions) work
the same way, with their own error: a retired model gets the 400
model_not_supported body with the same sentence and suggested_model, again for
10 days and only when the replacement can be called on that endpoint:
404
model_not_found instead, with the same sentence in message.
Current cases: DeepSeek-V4-Flash (the family’s 0422 checkpoint) is
retired from the serverless API and gets the plain 404; its serverless
successor is DeepSeek-V4-Flash-0731. The 0422 checkpoint itself is not gone:
it may be available as a dedicated deployment depending on capacity —
contact us to discuss your requirements. The two are
distinct checkpoints with distinct pricing, so treat the switch as a model
change, not a rename. Note that the undated id DeepSeek-V4-Flash may later be
re-pointed to the newest checkpoint in the family — so if it reappears on
/v1/models, that does not mean the 0422 checkpoint returned; check which
checkpoint the id names before switching back. If you need the 0422 checkpoint
specifically, use the contact route above rather than watching /v1/models.
The dated id deepseek-ai/DeepSeek-V4-Flash-0731 announced at the 2026-08
cutover keeps working unchanged.
See also
- Model catalog — human-readable table of every hosted model, with capabilities and pricing.
- OpenAI compatibility — what’s in and out of
/v1/*, including the scope of/v1/models. - Billing — how per-token pricing maps to charges.