Skip to content
Hayonix

API reference · Schema

SubmitServerlessJobRequest

  • inputany JSON

    Any JSON, at most 1048576 bytes serialised

  • webhook_urlstring (uri) | null

    Completion webhook for this job (default: the endpoint's; null for none)

    up to 2048 characters

  • policyobject

    Lower the endpoint's limits for this job

    Show 2 fields of policy
    • execution_timeout_secondsinteger

      Seconds one attempt may run, at most the endpoint's `execution_timeout_seconds` (its default)

      at least 1

    • queue_ttl_secondsinteger

      Seconds 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