ReferenceReference

API reference

Every route, method, and body format the gateway accepts.

By the end: You know which endpoint to call for each model family.

Base URL: http://localhost:3000. Bodies follow each family's native format and are forwarded without translation, so use the SDK that matches the model.

MethodPathPurpose
GET/v1/modelsList available models (OpenAI list format).
POST/v1/chat/completionsOpenAI Chat Completions. Streaming supported.
POST/v1/responsesOpenAI Responses. Streaming supported.
POST/v1/messagesAnthropic Messages. Streaming supported.
POST/v1/messages/count_tokensAnthropic token counting. Not billed.
POST/v1beta/models/{model}:generateContentGemini generateContent.
POST/v1beta/models/{model}:streamGenerateContentGemini streaming. Add ?alt=sse.
POST/v1/images/generationsText-to-image. Billed per image.
POST/v1/videos/generationsText-to-video job. Billed on completion.

Request rules

See streaming and limits and timeouts.