Job objects are lightweight and do not carry an object field on the runtime host. Results are kept for 30 minutes after completion for /run jobs and 60 seconds for /runsync jobs. Fields that do not apply to the current status are omitted for brevity on /run and /cancel responses.
Same as /run, but holds the connection open for up to 90 seconds and returns the finished job. If the job is not done in time, the response has status IN_QUEUE or IN_PROGRESS and you continue with /status. Input limit 20 MB.
Parameters
Name
In
Type
Description
endpointIdrequired
path
string
The endpoint ID.
inputrequired
body
any JSON
Handler input.
policy
body
object
Same as /run.
Request
curl-X POST https://run.apipods.com/v1/ep_4n8wq2zt/runsync \
-H"Authorization: Bearer $APIPODS_API_KEY" \
-H"Content-Type: application/json" \
-d'{
"input": {
"prompt": "a lighthouse on a cliff at dusk, 35mm photo",
"steps": 4
}
}'
For generator handlers. Each call returns the chunks produced since your previous call. With Accept: text/event-stream the connection stays open and chunks arrive as server-sent events until the job ends.
Parameters
Name
In
Type
Description
endpointIdrequired
path
string
The endpoint ID.
jobIdrequired
path
string
The job ID.
Accept
header
string
application/json (default, polling) or text/event-stream.
Removes a queued job, or stops a running one (the worker process receives SIGTERM, then is replaced). Cancelling a job that is already terminal returns it unchanged.
Parameters
Name
In
Type
Description
endpointIdrequired
path
string
The endpoint ID.
jobIdrequired
path
string
The job ID.
Request
curl-X POST https://run.apipods.com/v1/ep_4n8wq2zt/cancel/job_3x9wq2mt \
-H"Authorization: Bearer $APIPODS_API_KEY"
Re-queues a FAILED, TIMED_OUT or CANCELLED job with the same input and the same job ID. The previous output and error are cleared. Only possible while the job result is still retained.
Parameters
Name
In
Type
Description
endpointIdrequired
path
string
The endpoint ID.
jobIdrequired
path
string
The job ID.
Request
curl-X POST https://run.apipods.com/v1/ep_4n8wq2zt/retry/job_7k2m4p8d \
-H"Authorization: Bearer $APIPODS_API_KEY"
Response
202 Accepted
{
"id": "job_7k2m4p8d",
"status": "IN_QUEUE"
}
Status
When
409
invalid_state: the job is IN_QUEUE, IN_PROGRESS or COMPLETED.
Endpoints running the vLLM worker also expose an OpenAI-compatible API. Point any OpenAI client at https://run.apipods.com/v1/{endpointId}/openai/v1 and use your Apipods API key as the key.