v4
latestOpenAPI 3.1.02026-08-0143190206.8 KBGet full information about a chat or image understanding model with its model_id.
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). When 0, falls back to cached_prompt_text_token_price.
Price of the completion text token in USD cents per 100 million token.
Price of the completion text token for long context requests (USD cents per 100 million tokens). When 0, the standard completion_text_token_price applies.
Creation time of the model in Unix timestamp.
Fingerprint of the xAI system configuration hosting the model.
Model ID. Obtainable from https://console.x.ai/team/default/models or https://docs.x.ai/docs/models.
The input modalities supported by the model, e.g. "text", "image".
Token count at or above which the long context prices apply. When 0, the model has no long context pricing tier.
The object type, which is always "model".
The output modalities supported by the model, e.g. "text", "image".
Owner of the model.
Price of the prompt image token in USD cents per 100 million token.
Price of the prompt text token in USD cents per 100 million token.
Price of the prompt text token for long context requests (USD cents per 100 million tokens). When 0, the standard prompt_text_token_price applies at all context lengths.
Price of the search in USD cents per 100 million searches.
Version of the model.