Skip to main content
POST
  • Unified image generation endpoint
  • Async task mode, returns a task ID
  • Set model to grok-imagine-1.0

Authorizations

string
필수
All endpoints require Bearer Token authenticationGet API Key from API Key ManagementHeader example:

Body

string
필수
모델 name, use:
  • grok-imagine-1.0
string
필수
Prompt for image generation, multilingual supported
string
기본값:"1:1"
Image generation sizeSupported formats:
  • 1:1 - Square (default)
  • 16:9 - Landscape widescreen
  • 9:16 - Portrait tall screen
  • 3:2 - Landscape
  • 2:3 - Portrait
integer
기본값:1
Number of images to generateRange: 1-10 (minimum 1, maximum 10)⚠️ Note: use a plain number (for example 1), do not wrap it in quotes

응답

string
Unique task ID
string
Always generation.task
string
Task status: queued / in_progress / completed / failed