Skip to content

grok-imagine-image-2-0/image-edit ​

📝 模型简介待补充(TODO)。 本页所有取值均来自 ModelFold 模型目录,未编造任何技术细节。

概览 ​

字段值
模型 IDgrok-imagine-image-2-0/image-edit
所属系列grok-imagine-image-2
模态图像生成 (image)
计费积分6
上游成本4 / per image
定价来源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-2-0/image-edit","aspect_ratio":"1:1","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."}'

必填参数 ​

必填:aspect_ratio、image_urls、prompt。

模型参数直接放在请求体顶层,不要套 input。示例素材地址需替换为自己的公开可访问文件;请求等待生成完成后返回 data[].url。

条件必填、取值限制及其它输入模式见完整参数文档。

相关模型 ​

延伸阅读 ​

ModelFold — 一个 API,接入所有主流 AI 模型。