Skip to main content
POST
国内用户请注意: 中国大陆用户请使用 https://toapis.cn 作为接口地址(Base URL)。文档示例中的 https://toapis.com 请替换为 https://toapis.cn。
  • 统一图像编辑接口
  • 异步任务模式,返回任务 ID
  • 通过 model 指定为 grok-imagine-1.0-edit

Authorizations

string
必填
所有接口均使用 Bearer Token 认证获取 API Key:访问 API Key 管理页面请求头示例:

Body

string
必填
模型名称,固定使用:
  • grok-imagine-1.0-edit
string
必填
图像编辑提示词,支持多语言
string[]
必填
待编辑的原图 URL 数组,至少 1 张示例:
  • ["https://example.com/original.png"]
建议先使用 图片上传接口 上传后再传 URL
integer
默认值:1
生成数量,建议范围 1-10

Response

string
任务唯一 ID
string
固定为 generation.task
string
任务状态:queued / in_progress / completed / failed