OpenAI-compatible API
Point OpenAI-compatible SDKs at the gateway to access routed chat, Responses, embeddings, image, audio, realtime, rerank, and moderation APIs.
Base path
/v1Authentication
Authorization: Bearer <key>Chat Completions
Create a model response from an ordered list of conversation messages.
/v1/chat/completions| Field | Type | Description |
|---|---|---|
modelRequired | string | A model ID available to the calling API key. |
messagesRequired | array | The ordered conversation messages to send to the model. |
stream | boolean | When true, return server-sent event chunks as output is generated. |
tools | array | Tool definitions the model may call when supported. |
temperature | number | Sampling temperature supported by the selected model. |
max_tokens | integer | Maximum generated tokens for compatible models. |
{
"model": "gpt-4o",
"messages": [
{"role": "system", "content": "You are concise."},
{"role": "user", "content": "What is token routing?"}
],
"stream": false
}Responses API
Use the unified Responses format for multimodal input, tools, reasoning models, and streaming events.
/v1/responses{
"model": "gpt-4.1-sol",
"input": "Summarize the benefits of provider-independent routing.",
"stream": true
}/v1/responses/compactCompact a response context
Reduce a compatible Responses conversation into a smaller context representation.
Embeddings
Create embeddings in the provider-compatible response shape while preserving gateway usage accounting.
/v1/embeddings{
"model": "text-embedding-3-small",
"input": ["Routing", "Capacity", "Settlement"]
}Realtime API
Connect with the OpenAI Realtime WebSocket subprotocol and send your API key through the supported protocol header.
wss://your-gateway.example.com/v1/realtime?model=gpt-realtimeAdditional endpoints
These routes are relayed when the selected model and upstream adapter support the operation.
/v1/completionsLegacy completions
Generate text from a prompt for compatible completion models.
/v1/embeddingsEmbeddings
Create vector representations from text or token inputs.
/v1/images/generationsImage generation
Generate images with a compatible image model.
/v1/images/editsImage edits
Edit one or more images using a multipart request.
/v1/audio/transcriptionsTranscriptions
Transcribe uploaded audio into text.
/v1/audio/translationsAudio translations
Translate supported audio into English text.
/v1/audio/speechText to speech
Synthesize audio from text with a compatible voice model.
/v1/rerankRerank
Score and reorder documents against a query.
/v1/moderationsModerations
Classify text or image inputs with a compatible moderation model.