xai/grok-imagine-image-2.0-edit

文档
Schema

[Core Function] Grok Imagine Image 2.0 Edit edits one to three source images from a text prompt. [Strengths] It supports quality (low or medium), 1k or 2k resolution, and the same aspect ratios as Grok Imagine Image 2.0. [Best For] Highly recommended for: restyling, combining up to 3 references, and iterative refinement. [Limitations] Requires at least one source image; at most 3 images per request. This model does not generate from text alone. [Routing] For text-to-image generation, use Grok Imagine Image 2.0.

$0.0840~$0.1320/img
image-to-image

输入

Text description of the edit to apply.
Source image URLs to edit (1-3). Each item must be a publicly accessible HTTP(S) URL.
提示:可拖拽文件、从剪贴板粘贴(Ctrl/Cmd+V),或提供 URL。
Aspect ratio of the output image. If omitted, the output follows the first input image.
Number of edited images to generate.
Generation quality.
Output resolution.
How images are returned: a temporary URL, or base64 in the task result.

结果

暂无结果

运行模型后,结果将在这里显示。

Next:

README

属性

参数

参数名 描述 类型 必填 枚举值
prompt Text description of the edit to apply. string -
images Source image URLs to edit (1-3). Each item must be a publicly accessible HTTP(S) URL. string[] -
aspect_ratio Aspect ratio of the output image. If omitted, the output follows the first input image. 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 edited 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.0840
quality: low / resolution: 2k 0.1080
quality: medium / resolution: 1k 0.1080
quality: medium / resolution: 2k 0.1320