跳转到主要内容
POST
/
mj
/
submit
/
retexture
cURL
curl --request POST \
  --url https://proxy.innk.cc/mj/submit/retexture \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "image": "<string>",
  "prompt": "<string>"
}
'
{
  "code": 123,
  "description": "<string>",
  "result": "<string>",
  "properties": {}
}

授权

Authorization
string
header
必填

身份验证标头格式为 Bearer <API_KEY>,其中 <API_KEY> 是您的API令牌。

请求体

application/json
image
string
必填

需要转绘的图片

示例:

"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQND..."

"https://example.com/image.jpg"

prompt
string
必填

提示词

notifyHook
string

回调URL

示例:

"https://example.com/notify"

state
string

额外参数

noStorage
boolean
默认值:false

返回原始链接

响应

200 - application/json

Midjourney retexture response

code
integer<int32>
必填

状态码: 1(提交成功), 21(窗口等待), 22(排队中), 23(队列满), other(错误)

示例:

1

description
string
必填

描述

示例:

"提交成功"

result
string
必填

任务ID

示例:

1320098173412546

properties
object

扩展字段