Quick Start with Grok Imagine
Generate images with Grok Imagine in 60 seconds.
terminal
$ npm install -g agent-media-cli
$ agent-media login
$ agent-media generate grok-image -p "Cyberpunk street market at night, neon signs in Japanese" --sync
Capabilities
Text-to-image generation
Creative and artistic output
Complex multi-element scenes
Distinctive visual style
Good handling of abstract concepts
Grok Imagine Specifications
| Model | Grok Imagine |
| Provider | xAI |
| Type | image generation |
| CLI Slug | grok-image |
| Resolutions | 1024x1024 |
| Aspect Ratios | 1:1 |
| Input Types | Text prompt |
| Credit Cost | 50-100 credits per image |
CLI Examples
Real commands you can run right now with agent-media CLI.
Generate a detailed scene illustration
agent-media generate grok-image -p "Cyberpunk street market at night, neon signs in Japanese" --syncGenerate an artistic portrait
agent-media generate grok-image -p "Portrait of a Renaissance-style AI robot" --syncGenerate a creative isometric illustration
agent-media generate grok-image -p "Isometric view of a tiny magical forest" --syncStrengths
- Distinctive and recognizable artistic style
- Excellent at imaginative and creative scenes
- Strong handling of complex, detailed prompts
- Good at mixing artistic styles and concepts
Best For
- Creative and artistic illustrations
- Social media content with unique visual style
- Concept art and creative exploration
- Distinctive brand imagery
Use Grok Imagine in Claude Code
agent-media CLI works as an MCP server for Claude Code. Add it to your config and generate images with Grok Imagine using natural language.
.claude/settings.json
{
"mcpServers": {
"agent-media": {
"command": "npx",
"args": ["-y", "agent-media-cli", "mcp"],
"env": {
"AGENT_MEDIA_API_KEY": "your-api-key"
}
}
}
}Then ask Claude: "Generate a image with Grok Imagine: your prompt here"