Generate cinematic landscapes and night scenes with Grok Imagine Text to Image, thirteen aspect ratios, flat 1k/2k pricing, real API examples, and quickstart code.
Provider: Grok
Category: image generation
Endpoint: /v1/tasks
Status: Available
Cost: See live page pricing
Generate cinematic landscapes and night scenes with Grok Imagine Text to Image, thirteen aspect ratios, flat 1k/2k pricing, real API examples, and quickstart code.
Pricing
Standard Usage
Choose the output image file format
Ready for generation
Configure your parameters and click "Run" to see the output here.
Browse real API results across different aspect ratios, complete prompts, and visual detail.
Choose an adjacent model by task, output tier, and reference-image needs.

Hero-grade output
Use the quality route for richer material, lighting, and final-image detail.

Reference editing
Use up to three reference images for seasonal, material, and scene transformations.

Flat-price 2K/4K output
Compare multilingual text, eight ratios, and flat per-image pricing.
Generate cinematic landscapes and night scenes with Grok Imagine Text to Image, thirteen aspect ratios, flat 1k/2k pricing, real API examples, and quickstart code.
The Playground and API use the same model ID: grok-imagine/text-to-image. This endpoint accepts text prompts only; reference-image editing uses the separate Image-to-Image route.
These specifications reflect the current Grok Imagine Text to Image request contract.
Final cost depends on the output tier and input add-ons. Check the live page price and task record for the final charge.
Choose the destination and aspect ratio before composing subject, scene, material, light, and text.
Copy a minimal request below. See Docs for parameters, callbacks, task retrieval, and errors.
POST /v1/tasksgrok-imagine/text-to-imagecurl -X POST https://api.hiapi.ai/v1/tasks \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-imagine/text-to-image",
"input": {
"prompt": "A cinematic product campaign with sharp text",
"aspect_ratio": "1:1",
"resolution": "1k",
"output_format": "jpeg"
}
}'The create request immediately returns a taskId; image generation continues asynchronously.
It suits high-volume ideation, social assets, landscapes, and cinematic scenes. Current 1k and 2k output share one flat price.
Standard emphasizes speed and a low flat price. Quality is a separate model route focused on material, detail, and light, with tiered 1k/2k pricing.
Thirteen landscape, square, and portrait ratios ranging from 2:1 and 20:9 to 1:2.
No. Use grok-imagine/image-to-image for reference editing.
Submit model and input.prompt. Ratio, resolution, and format may use defaults.
Start with the subject, environment, and visual goal, then add material, light, camera, and exact text.
Draft
1k
Final
2k
Choose one of thirteen ratios, 1k or 2k output, and JPEG, PNG, or WebP format.
Confirm the result in Playground, then reuse the same prompt and model ID in an asynchronous task.