v1

Get full information about an image generation model with its model_id.

get/v1/image-generation-models/{model_id}

Request

  • Base URL: https://docs.x.ai (the document declares no server; this is the origin it was published from)
  • URL: https://docs.x.ai/v1/image-generation-models/{model_id}
  • Auth: HTTP bearer

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.

createdinteger required

Model creation time in Unix timestamp.

fingerprintstring required

Fingerprint of the xAI system configuration hosting the model.

idstring required

Model ID.

image_priceinteger required

Price of a single image in USD cents. The default tier: medium quality at the default (1k) resolution. See pricing for the full quality/resolution matrix.

input_modalitiesstring[] required

The input modalities supported by the model.

max_prompt_lengthinteger required
objectstring required

The object type, which is always "model".

output_modalitiesstring[] required

The output modalities supported by the model.

owned_bystring required

Owner of the model.

versionstring required

Version of the model.

Changes

No recorded changes to this operation across all 1 revision of this API.