GET
/
v1
/
models
/
prices

Response

200 - application/json
model
string
required

The name of the model. Can belong to many providers

namespace
string
required

The fully qualified (namespaced) model name

context_window
integer
required

The max_tokens for this model

until
string | null
required

The most recent data this model has been trained with

description
string
required

A description of the model

url
string
required

A URL to the model's page or more informatino

completion_token_cost
number
required

The cost of a completion token, in USD

prompt_token_cost
number
required

The cost of a prompt token, in USD

base_cost
number
required

A (usually 0) cost added on top of a request. Some models charge per request, not only per token

price_unit
enum<string>
required

The unit of billing for this model

Available options:
tokens,
characters
provider
string | null

The provider for the model.

owner
string | null

The owner of the model. Sometimes, for a provider/model combination, many instances exist, trained on different data

at
string | null

Extra model settings inferred from namespace

api_target
string
default:

Store the name of the model the API requires

deprecated_on
string | null

For models whose deprecation date is known (past or future), to show errors and deny service, or show warnings

parent_id
string | null

The ID of parent, in case it's not a base model

parent
object | null
prompt_id
string | null

The ID of prompt, used for this model