Grok Imagine
Grok Imagine is xAI's advanced image generation model that creates highly aesthetic images. It supports both text-to-image generation and image editing, automatically routing to the appropriate mode based on whether you attach an input image.
Overview
| Property | Value |
|---|---|
| Provider | xAI |
| Cost | 22 credits |
| Modality | Image |
| Reference Images | 1 (optional, enables edit mode) |
| Prompt Required | Yes |
What It's Best For
- Aesthetic imagery — Creates visually stunning, artistic images
- Dual-mode flexibility — Text-to-image OR image editing in one model
- Multiple aspect ratios — 13 different aspect ratio options
- Budget-friendly — Only 22 credits per generation
Inputs
Prompt (Required)
Describe the image you want to generate or the edits you want to make.
Connection Color: Yellow
Input Image (Optional)
When an image is connected, the model switches to edit mode and modifies your image based on the prompt.
Connection Color: Blue
Configuration
| Setting | Options | Default | Notes |
|---|---|---|---|
| Aspect Ratio | 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 2:1, 1:2, 20:9, 9:20, 19.5:9, 9:19.5 | 1:1 | Only for text-to-image mode |
| Output Format | JPEG, PNG, WebP | JPEG | File format of generated image |
Aspect Ratio Options
| Ratio | Use Case |
|---|---|
| 1:1 | Social media posts, profile pictures |
| 16:9 | YouTube thumbnails, presentations |
| 9:16 | Stories, TikTok, Reels |
| 4:3 | Traditional photos |
| 3:2 | Photography standard |
| 2:1 | Ultra-wide panoramas |
| 20:9 / 19.5:9 | Cinematic, phone screens |
Note: Aspect ratio is ignored in edit mode — the output matches your input image.
Output
Type: Image
Connection Color: Blue
Automatic Mode Selection
Grok Imagine intelligently routes your request:
| Input Image | Mode | Endpoint |
|---|---|---|
| Not attached | Text-to-Image | xai/grok-imagine-image |
| Attached | Image Edit | xai/grok-imagine-image/edit |
Use Cases
Text-to-Image: Aesthetic Art
Abstract human silhouette, golden particles ready to burst
outward representing joy, data visualization style,
emotional expression through particles, artistic scientific
Text-to-Image: Product Visualization
Luxury perfume bottle on marble surface, soft bokeh lights,
elegant minimalist composition, warm golden hour lighting
Image Edit: Style Enhancement
Make this scene more cinematic, add dramatic lighting
and color grading, keep the composition
Image Edit: Scene Modification
Transform this daytime photo into a moody nighttime scene,
add city lights and atmospheric fog
Tips for Best Results
Text-to-Image Mode
- Use descriptive language — Grok responds well to detailed, evocative prompts
- Include style references — "artistic", "cinematic", "editorial", "dreamy"
- Specify mood — "serene", "energetic", "mysterious", "joyful"
- Add lighting cues — "golden hour", "soft diffused light", "dramatic shadows"
Edit Mode
- Be specific about changes — State exactly what you want modified
- Reference original elements — "Keep the subject but change..."
- Use comparative language — "Make it more...", "Transform this into..."
- Preserve intent — Mention what should stay the same
Comparison
| Model | Cost | Edit Mode | Aspect Ratios | Reference Images |
|---|---|---|---|---|
| Grok Imagine | 22 credits | Yes (auto) | 13 | 1 |
| Grok 2 Image | 60 credits | No | None | 0 |
| Flux 2 Flex | 20 credits | Yes | 7 | 10 |
| Nano Banana | 15 credits | Yes | 10 | 5 |
When to Choose Grok Imagine
Choose when:
- You want aesthetic, artistic results
- You need both generation and editing in one workflow
- You want extensive aspect ratio options
- Budget matters (cheaper than Grok 2 Image)
Consider alternatives when:
- You need multiple reference images (use Flux 2 Flex)
- You want advanced editing features (use Flux Kontext)
- Ultra-low cost is priority (use Nano Banana)
Example Workflow
- Generate base image — Use text-to-image with aspect ratio 16:9
- Refine with edit — Connect output to a new Grok Imagine node
- Enhance details — Prompt: "Enhance details, add subtle grain, more dramatic"
- Final adjustments — Connect to tools for upscaling if needed
Related Models
- Grok 2 Image — Simpler, no edit mode
- Flux 2 Flex — Multi-reference support
- Nano Banana — Google's dual-mode model
- Flux Kontext Pro — Advanced context-aware editing