Skip to main content
POST
Submit a task
Use this endpoint for every model. Put model-specific values inside input.

Authorizations

Authorization
string
header
required

Use your YingTu API key as a bearer token.

Body

application/json
model
string
required

Model ID from the model catalog.

Example:

"gemini-3.1-flash-image"

input
object
required

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

Example:
callback_url
string<uri> | null

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

Example:

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

Response

Task accepted

task_id
string
required
Example:

"task_01JY8K6M6B4YQ3R8H4T6V2Z1AB"

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