/v1 routes. SynapsAI exposes one proxy that authenticates the caller, picks a worker, and forwards the request to your container:
The method, query string, and body are forwarded. A successful response is returned with the container’s status code and body. Launch requirements are in Custom image.
Authentication
Use the same Bearer API key as other inference:Host, Content-Length, Connection, and Transfer-Encoding.
Methods
GET, POST, PUT, PATCH, DELETE, OPTIONS, and HEAD are proxied. The body can be JSON or any other content type your container accepts.
/v1/chat/completions with whatever route the image listens on. Query strings are kept:
Streaming
The proxy streams the container’s response when either of these is true:Acceptincludestext/event-stream- The JSON body sets
streamtotrue, orstream_formattosseoraudio
What this route is not
Managed models stay on/v1/.... Sending a managed model id to this proxy returns 400.
Errors
Errors use this body.
type is APIError when the container or the proxy failed, and HTTPException for a rejected request such as a managed model id.