Grok Imagine 2.0
供应商: xAI
图像
适合风格强烈的快速创意图像
- 典型耗时
- 10-20s
- 参考输入
- 最多 3 个
- toolId
- grok-imagine
输入模式
text-to-imageimage-to-image
参数
| 参数 | 类型 | 默认值 | 取值 | 说明 |
|---|---|---|---|---|
| aspect_ratio | select | 1:1 | auto | 1:1 | 16:9 | 9:16 | 4:3 | 3:4 | 3:2 | 2:3 | 2:1 | 1:2 | 20:9 | 9:20 | 19.5:9 | 9:19.5 | Output frame shape. Auto follows the reference image when editing. |
| resolution | select | 1k | 1k | 2k | Output detail level; 2k renders finer detail at higher cost. |
| num_images | select | 1 | 1 | 2 | 3 | 4 | How many variations to generate in one run. More images cost more; re-quote after changing. |
| quality | select | low | low | medium | — |
定价
价格即将公布 —— 联系我们获取抢先体验价格
价格更新于: —
API 示例
POST /v1/generations — grok-imagine
curl -X POST https://api.mukelabs.com/v1/generations \
-H "Authorization: Bearer $MUKE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"toolId": "grok-imagine",
"inputMode": "text-to-image",
"prompt": "your prompt here",
"params": { "aspect_ratio": "auto" },
"references": [],
"idempotencyKey": "a-unique-key-per-task",
"subjectId": "your-user-id"
}'常见问题
如何在 Muke Labs 上调用 Grok Imagine 2.0?
提交 POST /v1/generations,toolId 为 "grok-imagine",选择一种输入模式(text-to-image, image-to-image),然后轮询 GET /v1/generations/{jobId} 获取结果。
Grok Imagine 2.0 的价格是多少?
该模型的公开定价正在敲定 —— 联系我们获取抢先体验价格。所有任务均从预充值美元余额扣费,失败任务自动退款。
任务失败会怎样?
任务返回 "failed" 状态和类型化错误码,费用自动退回余额。
在哪里获取 API key?
在开发者门户(https://portal.muke.name)创建,然后作为 Bearer token 携带在每个请求上。