input
object that contains the parameters for your worker’s handler function.input
key. This is the minimum valid request:
input
object depend on your specific worker implementation. Check your worker’s documentation for the required and optional parameters.
[ENDPOINT_ID]
with your endpoint ID and [YOUR_API_KEY]
with your Runpod API key.input
object, you can include optional top-level parameters to enable additional functionality.
POST
request to your webhook URL containing the same information as the /status/{job_id}
endpoint. Your webhook should return a 200
status code to acknowledge receipt. If the call fails, Runpod will retry up to 2 more times with a 10-second delay between attempts.
IN_PROGRESS
for longer than 10 minutes without completion, it’s automatically terminated. This default behavior keeps a hanging request from draining your account credits. You can manually control job execution behavior with policies:
Option | Description | Default | Constraints |
---|---|---|---|
executionTimeout | Maximum job runtime in milliseconds | 600000 (10 minutes) | Must be > 5000 ms |
lowPriority | When true, job won’t trigger worker scaling | false | - |
ttl | Maximum queue time in milliseconds | 86400000 (24 hours) | Must be ≥ 10000 ms, max 1 week |
executionTimeout
in a request overrides the default endpoint setting for that specific job only.[BUCKET_NAME]
is the name of the bucket you want to use.[BUCKET_ENDPOINT_URL]
is the endpoint URL of your S3-compatible storage.[BUCKET_ACCESS_KEY_ID]
is the access key ID for your S3-compatible storage.[BUCKET_SECRET_ACCESS_KEY]
is the secret access key for your S3-compatible storage./runsync
)/runsync
works best for:
/run
)/run
works best for:
/status/{job_id}
endpoint or configure a webhook to receive the result.
HTTP Status | Meaning | Solution |
---|---|---|
400 | Bad Request | Check your request format and parameters |
401 | Unauthorized | Verify your API key is correct and has permission |
404 | Not Found | Check your endpoint ID |
429 | Too Many Requests | Implement backoff and retry logic |
500 | Internal Server Error | Check endpoint logs; worker may have crashed |