Grok Imagine Image 2.0 API
xAI Grok Imagine Image 2.0 图像生成与编辑模型,支持文生图、1-3 张参考图编辑、13 种预设比例、1K/2K 输出和单次生成 1-10 张图片。
Starting price View pricing · Price snapshot
Waiting to refresh live prices…
Model pricing
Compare all public tiers and current prices for this series on one page.
Input
$0.033000–$0.066000 / 张/个
Output
总价 = 生成数量 × 对应档位单价
Context
—
Max output
—
- Model ID
-
grok-imagine-image-2.0 - Billing model
- Fixed combination billing
- Available groups
- svip, default
- Capabilities
- text-to-image, image-to-image, reference-to-image, image-edit
- Combination pricing rules
按生成数量和所选参数计费总价 = 生成数量 × 对应档位单价
画质: low · 分辨率: 1k$0.0330 / 张/个画质: medium · 分辨率: 1k$0.0495 / 张/个画质: low · 分辨率: 2k$0.0495 / 张/个画质: medium · 分辨率: 2k$0.0660 / 张/个+ 输入/参考图片$0.008250 / 张输入图- 提交时按公开参数预估;完成后可能按供应商返回的实际用量结算
查看高级计费表达式
v2:provider_credits > 0 ? tier("evolink_grok_imagine_image_2_0_actual_credits_plus_10pct_2026_08_31", units(provider_credits, 1.1 / 68)) : tier("evolink_grok_imagine_image_2_0_plus_10pct_2026_08_31", units(n, resolution == "2k" ? (quality == "low" ? 0.0495 : 0.0660) : (quality == "low" ? 0.0330 : 0.0495)) + units(input_images, 0.00825))
API reference
Base URL is https://api.rokoapi.com/v1. The model in requests must use the model IDs listed above.
curl https://api.rokoapi.com/v1/images/tasks \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-imagine-image-2.0",
"prompt": "A serene lake at dawn, photorealistic"
}' For more parameters, limits, and async task queries, read the Grok Imagine Image 2.0 developer guide. Grok Imagine Image 2.0 Developer guide · Authorization