generate_image
Create images from text descriptions using xAI's Grok Imagine model. Specify prompts, quantity, aspect ratios, and output formats to generate visual content.
Instructions
Generate images from text descriptions using xAI's Grok Imagine model. Returns image URLs or base64 data.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Text description of the image to generate | |
| n | No | Number of images to generate (1-10) | |
| model | No | Image generation model (default: grok-2-image) | grok-2-image |
| aspect_ratio | No | Aspect ratio (e.g., '16:9', '1:1', '4:3') | |
| response_format | No | Response format: 'url' or 'b64_json' | url |