---
title: "All API formats"
subtitle: "Every endpoint the Respan gateway serves."
---

Send your Respan API key in `Authorization: Bearer`, `x-api-key`, or `x-goog-api-key`; the gateway reads whichever is set, so each SDK's own header works. Every response carries `X-Respan-Log-Id`.

## Chat

| Endpoint | Method | URL | Providers |
|---|---|---|---|
| [OpenAI Chat Completions](/docs/ai-gateway/requests/chat-completions) | `POST` | `https://gateway.respan.ai/v1/chat/completions` | All |
| [OpenAI Responses](/docs/ai-gateway/requests/responses) | `POST` | `https://gateway.respan.ai/v1/responses` | All |
| [OpenAI Responses, WebSocket mode](/docs/ai-gateway/requests/responses#websocket-mode) | WebSocket | `wss://gateway.respan.ai/v1/responses` | All |
| [Get or delete a response](/docs/ai-gateway/requests/responses#look-up-a-response) | `GET`, `DELETE` | `https://gateway.respan.ai/v1/responses/{id}` | OpenAI, Azure AI Foundry, Perplexity |
| List a response's input items | `GET` | `https://gateway.respan.ai/v1/responses/{id}/input_items` | OpenAI, Azure AI Foundry, Perplexity |
| Cancel a response | `POST` | `https://gateway.respan.ai/v1/responses/{id}/cancel` | OpenAI, Azure AI Foundry, Perplexity |
| [OpenAI Conversations](/docs/ai-gateway/requests/responses#conversations) | `POST` | `https://gateway.respan.ai/v1/conversations` | Kept by the gateway |
| Get, update or delete a conversation | `GET`, `POST`, `DELETE` | `https://gateway.respan.ai/v1/conversations/{id}` | Kept by the gateway |
| List or add conversation items | `GET`, `POST` | `https://gateway.respan.ai/v1/conversations/{id}/items` | Kept by the gateway |
| Get or delete a conversation item | `GET`, `DELETE` | `https://gateway.respan.ai/v1/conversations/{id}/items/{item_id}` | Kept by the gateway |
| [Anthropic Messages](/docs/ai-gateway/requests/anthropic-messages) | `POST` | `https://gateway.respan.ai/v1/messages` | All |
| Anthropic count tokens | `POST` | `https://gateway.respan.ai/api/v1/messages/count_tokens` | All |
| [Google generateContent](/docs/ai-gateway/requests/gemini) | `POST` | `https://gateway.respan.ai/v1beta/models/{model}:generateContent` | All |
| Google generateContent on Vertex AI | `POST` | `https://gateway.respan.ai/api/google/vertexai/v1beta/models/{model}:generateContent` | Vertex AI |

Any model works in any chat format. Google's methods share one path, `/v1beta/models/{model}`, and differ only in the method after the colon. Set the Google GenAI SDK's base URL to `https://gateway.respan.ai` and it builds each path itself. To stream, set `stream: true`, or for Google call `:streamGenerateContent?alt=sse` in place of `:generateContent`. A response lookup goes to the provider that stored the response. A conversation is kept by the gateway, so it can continue on any model.

Count tokens is served under `/api`. With the Anthropic SDK, set `base_url` to `https://gateway.respan.ai/api` so `client.messages.count_tokens()` reaches it. Messages work on that base URL too.

Two formats are not served. For OpenAI's legacy Completions (`/v1/completions`), send the same prompt to Chat Completions. Bedrock's Converse API is how the gateway calls Bedrock, but it isn't a request format: call Bedrock models in any chat format above.

## Models

| Endpoint | Method | URL | Providers |
|---|---|---|---|
| List models | `GET` | `https://gateway.respan.ai/v1/models` | All |

## Images

| Endpoint | Method | URL | Providers |
|---|---|---|---|
| [Image generation](/docs/ai-gateway/modalities/images) | `POST` | `https://gateway.respan.ai/v1/images/generations` | OpenAI, Gemini, OpenRouter, Qwen, Together AI, xAI |
| Image edits | `POST` | `https://gateway.respan.ai/v1/images/edits` | OpenAI, Gemini, OpenRouter, Qwen, Together AI, xAI |
| Google generateContent | `POST` | `https://gateway.respan.ai/v1beta/models/{model}:generateContent` | Gemini |

A Gemini image model, such as `gemini-2.5-flash-image`, also answers on Google's `generateContent`, where the call is served as chat and the images come back as `inlineData` parts.

## Video

| Endpoint | Method | URL | Providers |
|---|---|---|---|
| [Create a video](/docs/ai-gateway/modalities/video) | `POST` | `https://gateway.respan.ai/v1/videos` | Gemini (Omni) |
| Get a video job | `GET` | `https://gateway.respan.ai/v1/videos/{id}` | Gemini (Omni) |
| Download a video | `GET` | `https://gateway.respan.ai/v1/videos/{id}/content` | Gemini (Omni) |
| Google predictLongRunning | `POST` | `https://gateway.respan.ai/v1beta/models/{model}:predictLongRunning` | Gemini (Omni) |

The first three rows are OpenAI's Videos API. The last is Google's own video method on the same `/v1beta/models/{model}` path, which also takes `360p` and `4k` in `parameters.resolution`. The Google GenAI SDK polls the operation and downloads the video from the same base URL.

{/* REVIEW: the Google video format reached gateway-next in respan-backend #13513 (merged 2026-11-10). Confirm it is deployed, and that the ALB forwards the operation poll and the files download, before launch. */}

## Audio

| Endpoint | Method | URL | Providers |
|---|---|---|---|
| [Speech](/docs/ai-gateway/modalities/audio) | `POST` | `https://gateway.respan.ai/v1/audio/speech` | OpenAI, Groq, Mistral, DeepInfra, EmpirioLabs, OpenRouter, MiniMax, Gemini |
| Transcription | `POST` | `https://gateway.respan.ai/v1/audio/transcriptions` | OpenAI, Groq, Mistral, Qwen |
| Translation | `POST` | `https://gateway.respan.ai/v1/audio/translations` | OpenAI, Groq |

## Embeddings

| Endpoint | Method | URL | Providers |
|---|---|---|---|
| [Embeddings](/docs/ai-gateway/modalities/embeddings) | `POST` | `https://gateway.respan.ai/v1/embeddings` | OpenAI, Gemini, Mistral, Fireworks, Together AI |
| [Google embedContent](/docs/ai-gateway/modalities/embeddings#gemini-api-format) | `POST` | `https://gateway.respan.ai/v1beta/models/{model}:embedContent` | OpenAI, Gemini, Mistral, Fireworks |
| Google batchEmbedContents | `POST` | `https://gateway.respan.ai/v1beta/models/{model}:batchEmbedContents` | OpenAI, Gemini, Mistral, Fireworks |

## Realtime

| Endpoint | Method | URL | Providers |
|---|---|---|---|
| [OpenAI Realtime](/docs/ai-gateway/modalities/realtime) | WebSocket | `wss://gateway.respan.ai/v1/realtime?model={model}` | OpenAI, Gemini, StepFun, EmpirioLabs, xAI; Mistral for transcription |
| OpenAI Live | WebSocket | `wss://gateway.respan.ai/v1/live/sessions` | OpenAI |
| Gemini Live | WebSocket | `wss://gateway.respan.ai/ws/google.ai.generativelanguage.v1beta.GenerativeService.BidiGenerateContent?model={model}` | OpenAI, Gemini, Mistral |
| Mistral realtime transcription | WebSocket | `wss://gateway.respan.ai/v1/audio/transcriptions/realtime?model={model}` | OpenAI, Gemini, Mistral |
| Phonic speech-to-speech | WebSocket | `wss://gateway.respan.ai/sts/ws?model={model}` | Phonic |

## Decisions

| Endpoint | Method | URL | Providers |
|---|---|---|---|
| [Respan System One](/docs/ai-gateway/modalities/decisions) | `POST` | `https://gateway.respan.ai/api/v1/systemone` | TypeSafe, OpenAI, Azure AI Foundry, OpenRouter, EmpirioLabs, Morph, DeepInfra |
| OpenAI decisions | `POST` | `https://gateway.respan.ai/openai/v1/decisions` | TypeSafe, OpenAI, Azure AI Foundry, OpenRouter, EmpirioLabs, Morph, DeepInfra |
| Gemini decisions | `POST` | `https://gateway.respan.ai/v1beta/decisions` | TypeSafe, OpenAI, Azure AI Foundry, OpenRouter, EmpirioLabs, Morph, DeepInfra |

## Batches and files

Batches and files are on `https://api.respan.ai`, not the gateway host. See [Create a batch](/docs/apis/gateway/create-batch).
