v4

latestOpenAPI 3.1.02026-08-0143190206.8 KB
v1

Get information about a model with its model_id, including pricing.

get/v1/models/{model_id}

Path parameters

model_idstring required

ID of the model to get.

Response

Success

aliasesstring[] required

Alias ID(s) of the model that user can use in a request's model field.

cached_prompt_text_token_priceinteger nullable

Price of a prompt text token (in USD cents per 100 million tokens) that was cached previously.

cached_prompt_text_token_price_long_contextinteger nullable

Price of the cached prompt text token for long context requests (USD cents per 100 million tokens).

completion_text_token_priceinteger nullable

Price of the completion text token in USD cents per 100 million tokens.

completion_text_token_price_long_contextinteger nullable

Price of the completion text token for long context requests (USD cents per 100 million tokens).

context_lengthinteger nullable

The maximum context length supported by the model, in tokens.

createdinteger required

Model creation time in Unix timestamp.

idstring required
image_priceinteger nullable

Price per image in USD cents (image generation models).

long_context_thresholdinteger nullable

Token count at or above which the long context prices apply.

objectstring required

The object type, which is always "model".

owned_bystring required

Owner of the model.

prompt_image_token_priceinteger nullable

Price of the prompt image token in USD cents per 100 million tokens.

prompt_text_token_priceinteger nullable

Price of the prompt text token in USD cents per 100 million tokens.

prompt_text_token_price_long_contextinteger nullable

Price of the prompt text token for long context requests (USD cents per 100 million tokens).