Skip to main content
POST

Authorizations

string
required
All endpoints require Bearer Token authentication.Visit the API Key management page to get your API Key, and add the following to the request header:

Body

string
required
Model name, fixed value: "grok_imagine_2_0_ext".
object
required
Model parameter object.
string
required
Caller-defined task ID, used for idempotent submission and result retrieval.
  • Length is 1-64 characters
  • Only letters, numbers, underscores, and hyphens are supported
  • Cannot be reused under the same API Key
This model only supports text-to-image generation. Do not pass image_url, resolution, quality, size, or output format parameters.

Query Results

After the submission succeeds, call Get Task Status and query using the same out_task_id. After the task is completed, the image results are located in data.output.

Query Results

After submission succeeds, call Get Task Status using the same out_task_id to query. Once the task is completed, the image result is located in data.output.