API reference · Schema
SubmitServerlessJobRequest
inputany JSONAny JSON, at most 1048576 bytes serialised
webhook_urlstring (uri) | nullCompletion webhook for this job (default: the endpoint's; null for none)
up to 2048 characters
policyobjectLower the endpoint's limits for this job
ShowHide 2 fields of
policyexecution_timeout_secondsintegerSeconds one attempt may run, at most the endpoint's `execution_timeout_seconds` (its default)
at least 1
queue_ttl_secondsintegerSeconds the job may wait in the queue, at most the endpoint's `queue_ttl_seconds` (its default)
at least 1
Example
{
"input": {
"prompt": "a red bicycle"
}
}Used by
- Submit a job. With `wait`, answer once it finishes or the wait runs out (then poll the job).
POST /v1/serverless/endpoints/{endpoint_id}/jobs