Skip to navigation

Model Pricing API

View as Markdown

Use GET https://api.getopenmodels.com/v1/models to query the current model catalog and all model pricing fields. Use this endpoint when your app needs live prices instead of copying values from the Models table.

curl https://api.getopenmodels.com/v1/models

The response returns a data array. Each item is one model with model metadata, readiness, supported features, and pricing.

Pricing fields

pricing is either a single object or an array of tier objects. Treat both shapes as valid.

FieldUnit
promptUSD per input token
completionUSD per output token
input_cache_readUSD per cached input token read
requestUSD per request
imageUSD per image
durationDuration-priced route value when applicable

For token prices, multiply by 1,000,000 to display /1M values like the Models table. A 0 value means that pricing unit is not used for that model.

Tiered pricing

When pricing is an array, each entry is a pricing tier. range_start and range_end define the tier bounds when the model uses range-based pricing. range_end: null means the tier has no upper bound.

{
"id": "qwen3.5-flash",
"name": "qwen3.5-flash",
"context_length": 1000000,
"pricing": [
{
"range_start": 0,
"range_end": 128000,
"prompt": "0.000000029",
"completion": "0.000000294",
"image": "0",
"request": "0",
"duration": "0",
"input_cache_read": "0.000000003"
}
],
"is_ready": true,
"is_free": false
}

Common fields

FieldMeaning
idModel ID to send in the request body
input_modalities / output_modalitiesSupported input and output modalities
context_lengthMaximum context window when available
max_output_lengthMaximum generated output length when available
supported_sampling_parametersRequest parameters the model can accept
supported_featuresCapabilities such as tool calling, reasoning, vision, or image generation
is_readyWhether the model is currently ready for traffic
is_freeWhether the model is currently free
  • Models: scan the current supported model table.
  • Pricing Guide: estimate request cost from the returned pricing values.