API documentation
AIGate API
OpenAI-compatible API for text, embeddings, image generation, and supported provider routes.
AIGate gives you one API key and one OpenAI-compatible base URL for the models enabled in your account. The same key works for chat, Responses, Anthropic Messages, embeddings, and image generation routes.
Connection
Base URL: https://api.aigate.shop/v1Auth: Authorization: Bearer sk-your-api-keyModels: provider/model-idUse exact model ids
The model value must be the exact catalog id, for example openai/gpt-5.5, anthropic/claude-opus-4.7, openai/gpt-image-2, or google/gemini-3-pro-image.Choose a route
Chat Completions
Main text endpoint: messages, streaming, tools, JSON output, and vision input.
Responses
OpenAI Responses-style input and output for compatible clients.
Images
Where to send GPT Image and Gemini image requests, and where to read image output.
Video
Generate videos with supported video models and temporary AIGate file links.
Pricing Rules
Token, cache, image, and long-context billing behavior.
Balance
Read current balance and total spend for the account and API key.
Public surface
| Endpoint | Use |
|---|---|
| GET /v1/models | List available models. API key is optional. |
| GET /v1/balance | Read account balance and spend using an API key. |
| POST /v1/chat/completions | Chat, streaming, tools, vision input, and Gemini image output. |
| POST /v1/responses | Responses API compatible generation. |
| POST /v1/messages | Anthropic Messages compatible route. |
| POST /v1/embeddings | Embedding vectors. |
| POST /v1/images/generations | OpenAI-compatible image generation, including GPT Image. |
| POST /v1/images/edits | OpenAI-compatible GPT Image editing. |
| POST /v1/video/generations | Video generation with supported video models. |