---
title: "Get full information about a chat or image understanding model with its model_id."
method: GET
path: "/v1/language-models/{model_id}"
tags: ["v1"]
---

# Get full information about a chat or image understanding model with its model_id.

`GET /v1/language-models/{model_id}`

## Path parameters

- `model_id` string, required

## Response `200`

Success

- LanguageModel — Details of a language model
  - `aliases` string[], required — Alias ID(s) of the model that user can use in a request's model field.
  - `cached_prompt_text_token_price` integer, required — Price of a prompt text token (in USD cents per 100 million tokens) that was cached previously.
  - `cached_prompt_text_token_price_long_context` integer, required — 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.
  - `completion_text_token_price` integer, required — Price of the completion text token in USD cents per 100 million token.
  - `completion_text_token_price_long_context` integer, required — 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.
  - `created` integer, required — Creation time of the model in Unix timestamp.
  - `fingerprint` string, required — Fingerprint of the xAI system configuration hosting the model.
  - `id` string, required — Model ID. Obtainable from <https://console.x.ai/team/default/models> or <https://docs.x.ai/docs/models>.
  - `input_modalities` string[], required — The input modalities supported by the model, e.g. `"text"`, `"image"`.
  - `long_context_threshold` integer, required — Token count at or above which the long context prices apply. When 0, the model has no long context pricing tier.
  - `object` string, required — The object type, which is always `"model"`.
  - `output_modalities` string[], required — The output modalities supported by the model, e.g. `"text"`, `"image"`.
  - `owned_by` string, required — Owner of the model.
  - `prompt_image_token_price` integer, required — Price of the prompt image token in USD cents per 100 million token.
  - `prompt_text_token_price` integer, required — Price of the prompt text token in USD cents per 100 million token.
  - `prompt_text_token_price_long_context` integer, required — 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.
  - `search_price` integer, required — Price of the search in USD cents per 100 million searches.
  - `version` string, required — Version of the model.

## Other responses

- `400` — Bad request. The request is invalid or an invalid API key is provided.
- `404` — Model not found

---

[API](https://skmtc.net/x/apis/xai-s-rest-api.md) · [All operations](https://skmtc.net/x/apis/xai-s-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/x/xai-s-rest-api/versions/8f6014272113/schema)
