Errors by HTTP status code
Cold model timeouts
A model is “cold” when no orchestrator on the network has it loaded in GPU memory. The first request loads it, which takes 30 seconds to several minutes depending on model size. A cold model returns a503 or a long pending response — it is not an error in your code.
Mitigation strategies:
Use warm models for latency-sensitive applications. The following models are warmed across the network:
| Pipeline | Warm model |
|---|---|
| text-to-image | SG161222/RealVisXL_V4.0_Lightning |
| image-to-image | timbrooks/instruct-pix2pix |
| audio-to-text | openai/whisper-large-v3 |
| image-to-text | Salesforce/blip-image-captioning-large |
| LLM | meta-llama/Meta-Llama-3.1-8B-Instruct |
Diagnosing a non-responsive job
When a request hangs with no response, check in this order:-
Network connectivity — confirm you can reach
livepeer.studio: - Studio status — check https://status.livepeer.studio for active incidents.
-
Request construction — use curl to isolate from SDK behaviour:
- Model availability — some models are not always available on the network. Use a known warm model to confirm the integration works, then switch to your target model.
-
Gateway availability — if you are using a self-hosted or third-party gateway rather than
livepeer.studio, confirm the gateway is running and accepting connections.
422 validation errors
A422 response includes a body that identifies the failing field:
model_idis missing (required on all pipelines)model_idformat is wrong — must be a Hugging Face model ID string, e.g.,SG161222/RealVisXL_V4.0_Lightning- Image input is sent as JSON instead of
multipart/form-data(image-to-image, upscale, segment-anything-2) - Dimension values are not integers (use
1024, not"1024")
Getting help
If the above steps do not resolve the issue:- Discord:
#buildersand#ai-helpchannels in the Livepeer Discord. Include your request body (redact your API key), the response status, and the response body. - Forum: https://forum.livepeer.org —
AI Researchcategory for inference-specific questions. - GitHub: File an issue against livepeer/ai-runner for suspected network-level bugs.
Related pages
AI Authentication
API key types, CORS configuration, and rotation.
Production Checklist
What to verify before shipping an AI application to production.