HiAPI
OverviewModels MarketAPI KeysUsage StatisticsCall LogsBillingReferralPlaygroundStorageChangelogContact UsSettings
Display unit
N
Powered by hiapi
Settings

Welcome

Contact Us

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

Back to Models

Grok Imagine Text to Image

New
by GrokImage

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

60 Credits/ image

Input

0 / 8000

More parameters

Generation settings

Choose the output image file format

Estimated cost60 Credits / imageper image

Output

Ready for generation

Configure your parameters and click "Run" to see the output here.

--GPU-T4

From product campaigns to detailed scenes

Browse real API results across different aspect ratios, complete prompts, and visual detail.

Related image models

Choose an adjacent model by task, output tier, and reference-image needs.

Hero-grade output

Grok Imagine Quality

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

Reference editing

Grok Imagine Image to Image

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

Flat-price 2K/4K output

Seedream 5.0 Lite

Compare multilingual text, eight ratios, and flat per-image pricing.

Compare AI image APIs

About Grok Imagine Text to Image

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.

Provider
Grok
Task
Text-to-Image
References
Not supported
Pricing
60 Credits / image

Model specifications

These specifications reflect the current Grok Imagine Text to Image request contract.

Reference images
Not supported
Output resolution
1k2k
Aspect ratios
2:120:919.5:916:94:33:21:12:33:49:169:19.59:201:2
Output formats
JPEGPNGWEBP
Prompt length
1-8000 characters
Pricing
1k or 2k: 60 Credits / image

Final cost depends on the output tier and input add-ons. Check the live page price and task record for the final charge.

How to use Grok Imagine Text to Image

Choose the destination and aspect ratio before composing subject, scene, material, light, and text.

Subject
Scene
Camera and light
01

Describe subject and scene

API Quickstart

Copy a minimal request below. See Docs for parameters, callbacks, task retrieval, and errors.

Endpoint
POST /v1/tasks
Model ID
grok-imagine/text-to-image
cURL
curl -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.

Read the full API documentation

Frequently asked questions

What is the standard Grok Imagine route best for?

It suits high-volume ideation, social assets, landscapes, and cinematic scenes. Current 1k and 2k output share one flat price.

How does standard differ from Quality?

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.

Which ratios are available?

Thirteen landscape, square, and portrait ratios ranging from 2:1 and 20:9 to 1:2.

Does this page accept references?

No. Use grok-imagine/image-to-image for reference editing.

What is required in the API request?

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

02

Choose output settings

Choose one of thirteen ratios, 1k or 2k output, and JPEG, PNG, or WebP format.

Playground
POST /v1/tasks
03

Validate before integration

Confirm the result in Playground, then reuse the same prompt and model ID in an asynchronous task.