Grok Imagine grok-imagine-text-to-image API
A model variant exposed through RunAPI's unified AI API.
# Works with Claude Code, Codex, Gemini CLI, Cursor, and 50+ agents
npx skills add runapi-ai/grok-imagine -g
Install the Grok Imagine skill for me: 1. Clone https://github.com/runapi-ai/grok-imagine 2. Copy the skills/grok-imagine/ directory into your user-level skills directory (e.g. ~/.claude/skills/ for Claude Code, ~/.codex/skills/ for Codex). 3. Verify that SKILL.md is present. 4. Confirm the install path when done.
Grok Imagine grok-imagine-text-to-image is available through the same RunAPI auth, SDKs, and agent skill workflow.
- Unified endpoint
- SDK snippets
- Agent install path
- Fehlgeschlagene Generierungen werden nicht berechnet
PREISE
DATENBLATT
| Model ID | grok-imagine-text-to-image |
| Anbieter | xAI |
| Modalität | image |
| Task type | asynchronous |
| Abrechnung | call |
| Endpoint | /api/v1/grok_imagine/text_to_image |
| Commercial | Yes |
| Status | Operational |
Quickstart — grok-imagine-text-to-image
curl -X POST https://runapi.ai/api/v1/grok_imagine/text_to_image \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-imagine-text-to-image",
"prompt": "Generate a short video of a robot hand placing a chess piece on a board, dramatic lighting, slow motion."
}'
import { GrokImagineClient } from "@runapi.ai/grok-imagine";
const client = new GrokImagineClient();
const result = await client.textToImage.run({
model: "grok-imagine-text-to-image",
prompt: "Generate a short video of a robot hand placing a chess piece on a board, dramatic lighting, slow motion.",
});
require "runapi/grok_imagine"
client = RunApi::GrokImagine::Client.new
result = client.text_to_image.run(
model: "grok-imagine-text-to-image",
prompt: "Generate a short video of a robot hand placing a chess piece on a board, dramatic lighting, slow motion."
)
How to use grok-imagine-text-to-image
Choose endpoint
Pick the endpoint and copy the SDK snippet.
Pass model ID
Use this variant ID in the request body.
Run task
Submit the request and store the returned task ID.
Collect output
Poll or receive the callback when the task finishes.
How grok-imagine-text-to-image compares
Aurora model; 7 aspect ratios; realistic/artistic/anime styles
Prompt-guided style transfer and composition editing from one source image
Aurora model; 7 aspect ratios; realistic/artistic/anime styles
Input image becomes frame 1; animates with motion + camera
Aurora model; 7 aspect ratios; realistic/artistic/anime styles
6–10s video from text with synchronized native audio and lip-sync
Where to use this variant
Image generation
Create visual assets from text prompts.
Editing
Transform existing images with prompt guidance.
Batch creative work
Use SDKs for repeatable generation.
Frequently asked questions about grok-imagine-text-to-image
How do I select grok-imagine-text-to-image?
Pass the model ID shown in the quickstart.
Is pricing usage-based?
Yes. Pricing is metered per call or unit.