Skip to main content
POST
Grok Text-to-Image
Generate high-quality images from text using xAI’s Aurora image generation model. Key Features:
  • Photorealistic Rendering - Autoregressive mixture-of-experts architecture for lifelike portraits and entities
  • Precise Instruction Following - Accurately understand and execute complex text descriptions
  • Text & Logo Rendering - Excellent artistic text and brand logo generation capabilities
  • Celebrity/Entity Recognition - Accurately generate images of real-world people and objects

Authorizations

Authorization
string
header
required

Please use your API Token for authentication

Body

application/json

Task parameters

prompt
string
required

prompt(required)

Required string length: 1 - 5000
Example:

"A beautiful sunset over the ocean"

aspect_ratio
enum<string>

aspect ratio(optional)

Available options:
2:3,
3:2,
1:1
Example:

""

Response

OK

task_id
string
required

Task ID

Example:

"01234567-89ab-cdef-0123-456789abcdef"