Skip to main content
POST
Create Generate task

Headers

X-API-KEY
string
required

Body

multipart/form-data
image_file
string

源图像文件(二进制)。(如果此参数存在,则其他图像源参数必须为空)

Example:

""

image_url
string

源图像URL。(如果存在此参数,则其他图像源参数必须为空)

Example:

""

batch_size
integer

每次生成图片数,默认为2张

Example:

""

prompt
string

背景提示词,各种语言都支持,但英文效果最好,字符串最高为1024。

Example:

""

scene_type
integer

背景模版,默认提供随机模版,可从接口中获取最新模版ID。(prompt、scene_type二选一)

Example:

""

Response

200 - application/json

Request succeeded.

status
string
required

200 任务创建成功。 400 客户端参数传递错误。 请检查参数是否缺失或值是否正确 401 认证失败。 请检查X-API-KEY是否正确或者服务是否开通 429 请求频率超出QPS限制(默认QPS为2)。请放缓请求速率,或者联系商务提升QPS限制

message
string
required
data
object
required