HiAPI
21:9 宽幅 Hero:左侧柔光留白,右侧漂浮半透明虹彩玻璃画框与光轨,彩色散景;模型名 grok-imagine 以发光立体字融入光带。

xAI

Grok Imagine

grok-imagine/text-to-image

xAI's creative generation model, supporting image-to-image editing and style guidance, with up to 9 reference images to control composition and characters; called through the unified HiAPI.ai interface

Try grok-imagine/text-to-image

Input

Output

image
Fill in the parameters and run — results show up here.

Pricing

grok-imagine/text-to-image per image

Unit Price $0.030

Overview

grok-imagine/text-to-image is the text-to-image route in the xAI grok-imagine family, aimed at developers who need to produce high-quality realistic or stylized images at scale. It accepts text prompts up to 8,000 characters, offers output at either 1k or 2k resolution across 13 aspect ratios, and supports three delivery formats: jpeg, png, and webp. It is suited for teams embedding image generation into content production, concept design, and bulk asset workflows, and can be called through the unified HiAPI.ai interface.

Key Highlights

  • Two resolution tiers and 13 aspect ratios — output can switch between 1k and 2k, with aspect ratios covering landscape, portrait, and square from 2:1 to 1:2, fitting multiple placement slots.
  • Prompt limit of 8,000 characters — long prompts can carry complete scene, lighting, and style descriptions, suitable for structurally complex generation needs.
  • Three selectable output formats — jpeg, png, and webp can be specified directly for the downstream pipeline, eliminating the transcoding step after generation.

Capabilities

Long-prompt text-to-image: Generates images from text descriptions of 1 to 8,000 characters; complex scenes and detail constraints can be completed within a single prompt.

Controllable resolution and aspect ratio: Choose from 1k or 2k resolution and 13 aspect ratios as needed, obtaining images that match slot dimensions in one call and reducing subsequent cropping.

Direct output format specification: Supports jpeg, png, and webp, aligning with the format requirements of downstream stages such as asset distribution and web display.

Use Cases

  • Bulk illustration assets for content teams — Generate landscape and portrait illustrations in bulk from text scripts or headlines, producing image assets that can go directly into a CMS or design file.
  • Concept image previews for product and marketing — Describe scenes, lighting, and texture with long prompts to quickly obtain 2k concept images for proposal comparisons and visual direction confirmation.
  • Embedded text-to-image features in apps — Developers submit prompts together with resolution, aspect ratio, and format parameters to output images matching specifications for users and populate pages directly.

Limitations and Selection Advice

This route only performs text-to-image and does not support reference-image guidance or image editing; needs involving style transfer or composition fine-tuning should use image-editing routes instead, and needs for dynamic assets should use video generation routes. Prompts must be provided fully in text, with no visual input to reference. The maximum resolution is 2k, and aspect ratios are limited to the 13 listed in the schema; dimensions outside this range require downstream cropping or secondary processing.

  • New model New models: grok-imagine-image-2.0/text-to-image and grok-im…

Frequently asked questions

View all FAQs →
  • 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.

Related Models

View all models →

Same Type