v4
latestOpenAPI 3.1.02026-08-0143190206.8 KBGet information about a model with its model_id, including pricing.
Path parameters
ID of the model to get.
Response
Success
Alias ID(s) of the model that user can use in a request's model field.
Price of a prompt text token (in USD cents per 100 million tokens) that was cached previously.
Price of the cached prompt text token for long context requests (USD cents per 100 million tokens).
Price of the completion text token in USD cents per 100 million tokens.
Price of the completion text token for long context requests (USD cents per 100 million tokens).
The maximum context length supported by the model, in tokens.
Model creation time in Unix timestamp.
Model ID. Obtainable from https://console.x.ai/team/default/models or https://docs.x.ai/docs/models.
Price per image in USD cents (image generation models).
Token count at or above which the long context prices apply.
The object type, which is always "model".
Owner of the model.
Price of the prompt image token in USD cents per 100 million tokens.
Price of the prompt text token in USD cents per 100 million tokens.
Price of the prompt text token for long context requests (USD cents per 100 million tokens).