/run
endpoint operation, which lets you submit jobs that run in the background and check results later, making this ideal for long-running tasks.
It also provides synchronous operations through the /runsync
endpoint operation, allowing you to receive immediate results in the same request, which is perfect for interactive applications.
To learn more, see Endpoint operations.
POST
request to run a job, or a GET
request to check status of a job or endpoint health.
When a request is sent to an endpoint, it creates a job that gets processed by a worker. Jobs can be either synchronous (immediate response) or asynchronous (background processing).
A worker is the containerized environment that executes your handler code, providing the compute resources (CPU, GPU, memory) needed to process requests.
The handler function is the code that processes incoming requests and returns responses, defining the business logic of your endpoint.