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_image_2_0".
object
required
Model parameters object.
string
required
Caller-defined task ID, used for idempotent submission and result retrieval.
  • Length: 1-64 characters
  • Only letters, numbers, underscores, and hyphens are supported
  • Cannot be reused under the same API Key

Query Results

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

Query Results

After a successful submission, call Get Task Status with the same out_task_id to query it. Once the task is completed, the image results are located in data.output.