Skip to main content
POST
/
v1
/
images
/
task
/
edits
图片编辑任务创建
curl --request POST \
  --url https://api.tkhub.ai/v1/images/task/edits \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form model= \
  --form prompt= \
  --form size= \
  --form image='@example-file'
{}

Documentation Index

Fetch the complete documentation index at: https://docs.tkhub.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

使用 Bearer Token 认证。 格式: Authorization: Bearer sk-xxxxxx

Headers

Authorization
string
required

Body

multipart/form-data
model
string

模型名称

Example:

""

prompt
string

所需图像的文本描述。最大长度为 1000 个字符。

Example:

""

size
string

生成图像的大小。目前支持 1024x1024之一。

Example:

""

image
file

Response

200 - application/json

The response is of type object.