Base URL
All API requests use:/v1 (for example, /v1/chat/completions).
Authentication
The API uses Bearer token authentication with your API key.List models
Verify authentication and list deployed models:Python SDK
Install the official Python client:OpenAI compatibility
SynapsAI Cloud implements OpenAI-compatible endpoints for common workflows:
To use OpenAI-compatible libraries, set:
Request and response format
- Send JSON bodies with
Content-Type: application/jsonunless the endpoint accepts multipart uploads (for example, audio transcription). - Replace
modelin each request with your model ID from the dashboard. This is not the Hugging Face repository name. - Successful responses return JSON. Streaming endpoints return Server-Sent Events (SSE). See Streaming.
Errors
Errors return a JSON object with anerror field:
For a catalog of error types and fixes, see Troubleshooting.
Rate limits
Default limits apply per account and per deployed model. See Rate limits for current defaults and how to request higher throughput.Debugging requests
- Confirm the model is not Building or Failed — Sleeping and Ready deployments both accept inference requests.
- Check the model Logs tab for deployment and runtime errors.
- Verify your API key is scoped to the target model.
- Compare your request against the supported tasks table and the endpoint reference below.

