Skip to main content
POST
Submit a task
所有模型共用该入口,模型专属参数放在 input 中。

授权

Authorization
string
header
必填

Use your YingTu API key as a bearer token.

请求体

application/json
model
string
必填

Model ID from the model catalog.

示例:

"gemini-3.1-flash-image"

input
object
必填

Model-specific parameters. See the selected model's Parameters page.

示例:
callback_url
string<uri> | null

Optional HTTPS endpoint notified when the task reaches a terminal state.

示例:

"https://example.com/webhooks/yingtu"

响应

Task accepted

task_id
string
必填
示例:

"task_01JY8K6M6B4YQ3R8H4T6V2Z1AB"

status
string
必填
Allowed value: "queued"
created_at
string<date-time>
必填