xai/grok-imagine-image-2.0

ドキュメント
スキーマ

[Core Function] Grok Imagine Image 2.0 generates images from a text prompt. [Strengths] It supports quality (low or medium), 1k or 2k resolution, a wide range of aspect ratios including 21:9 and 5:2, and up to 10 images per request. [Best For] Highly recommended for: concept art, marketing visuals, cinematic banners, and batch generation. [Limitations] This model does not edit existing images. [Routing] For image editing, use Grok Imagine Image 2.0 Edit.

$0.0480~$0.0960/img
text-to-image

入力

Text description of the image to generate.
Aspect ratio of the generated image. `auto` lets the model choose a ratio that fits the prompt.
Number of images to generate.
Generation quality.
Output resolution.
How images are returned: a temporary URL, or base64 in the task result.

結果

結果はまだありません

モデルを実行すると、ここで出力をプレビューできます。

次の操作:

README

属性

パラメーター

名前 説明 必須 列挙値
prompt Text description of the image to generate. string はい -
aspect_ratio Aspect ratio of the generated image. auto lets the model choose a ratio that fits the prompt. string いいえ 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 2:1, 1:2, 19.5:9, 9:19.5, 20:9, 9:20, 21:9, 5:2, auto
n Number of images to generate. integer いいえ -
quality Generation quality. string いいえ low, medium
resolution Output resolution. string いいえ 1k, 2k
response_format How images are returned: a temporary URL, or base64 in the task result. string いいえ url, b64_json

料金

単位: $/img

条件 料金
quality: low / resolution: 1k 0.0480
quality: low / resolution: 2k 0.0720
quality: medium / resolution: 1k 0.0720
quality: medium / resolution: 2k 0.0960