Skip to main content
POST
/
v1
/
images
/
task
/
generations
图片生成任务创建
curl --request POST \
  --url https://api.tkhub.ai/v1/images/task/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "model": "qwen-image",
  "prompt": "一只戴着墨镜的橘猫,赛博朋克风",
  "size": "1024x1024"
}
'
{}

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

Content-Type
string
required
Authorization
string
required

Body

application/json
model
string
required

模型名称

prompt
string
required

提示词

size
string
required

规格大小,目前支持: 1024x1024,

Response

200 - application/json

The response is of type object.