OpenAI-compatible API

The gateway follows the OpenAI Chat Completions protocol exactly, so existing SDKs and clients work with zero changes.

Chat completions

POST https://gateway.admesh.ai/v1/chat/completions
{
  "model": "anthropic/claude-sonnet",
  "messages": [
    { "role": "system", "content": "You are a helpful assistant." },
    { "role": "user", "content": "Hello" }
  ],
  "stream": false
}

Streaming

Set "stream": true to receive an SSE event stream, fully compatible with OpenAI clients. Clients may cancel with an AbortController.

Platform response headers

The platform returns tracking information such as request_id in response headers, keeping the standard JSON body clean. Use it to trace a request in reconciliation and support.

Available models

GET https://gateway.admesh.ai/v1/models

Returns the list of model IDs your account can call.