grok-imagine/image-to-image
📝 模型简介待补充(TODO)。 本页所有取值均来自 ModelFold 模型目录,未编造任何技术细节。
概览
| 字段 | 值 |
|---|---|
| 模型 ID | grok-imagine/image-to-image |
| 所属系列 | grok-imagine |
| 模态 | 图像生成 (image) |
| 计费积分 | 6 |
| 上游成本 | 4 / per generation |
| 定价来源 | upstream-api — 上游官方定价(媒体类) |
| 调用端点 | POST /v1/images/generations |
调用示例
bash
export API_BASE="https://modelfold.ai/v1"
export MODELFOLD_API_KEY="mf-..." # 在控制台 API Key 页面创建
curl -X POST "$API_BASE/images/generations" \
-H "Authorization: Bearer $MODELFOLD_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"grok-imagine/image-to-image","image_urls":["https://example.com/reference.png"],"prompt":"Recreate the Titanic movie poster with two adorable anthropomorphic cats in the same romantic pose at the bow of the ship. The male cat is an orange tabby wearing a vest, standing behind a white long-haired female cat in a lace dress, holding her paws as they stretch forward in the wind. Both cats are photorealistic with detailed fur, wind-swept hair, and dramatic sunset lighting (warm golden highlights, cool blue shadows). Background: the Titanic ship at dusk with four smokestacks, glowing deck lights, calm ocean, and orange-pink sunset sky. Center title: “CATANIC” in the same gold metallic serif style as Titanic, same size and position."}'必填参数
必填:image_urls、prompt。
模型参数直接放在请求体顶层,不要套 input。示例素材地址需替换为自己的公开可访问文件;请求等待生成完成后返回 data[].url。
条件必填、取值限制及其它输入模式见完整参数文档。
