Skip to main content
Custom image deployments do not use the managed /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:
SynapsAI consumes that header. It is not forwarded to the container. Other request headers are forwarded, except 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.
The path after the model id is yours. Replace /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:
  • Accept includes text/event-stream
  • The JSON body sets stream to true, or stream_format to sse or audio

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.