Supported Providers
Inference Gateway provides a unified interface to interact with multiple LLM providers. This page details each supported provider, their configuration, and usage examples.
Available Providers
| Provider | Auth | Default URL | Vision Support |
|---|---|---|---|
| OpenAI | Bearer Token | https://api.openai.com/v1 | No |
| DeepSeek | Bearer Token | https://api.deepseek.com | No |
| Anthropic | X-Header | https://api.anthropic.com/v1 | No |
| Cohere | Bearer Token | https://api.cohere.ai | No |
| Groq | Bearer Token | https://api.groq.com/openai/v1 | No |
| Cloudflare | Bearer Token | https://api.cloudflare.com/client/v4/accounts/{ACCOUNT_ID}/ai | No |
| Ollama Cloud | Bearer Token | https://ollama.com/v1 | No |
| Ollama | Optional API key | http://ollama:8080/v1 | No |
| llama.cpp | Bearer Token | http://llamacpp:8080/v1 | No |
| Bearer Token | https://generativelanguage.googleapis.com/v1beta/openai | No | |
| Mistral | Bearer Token | https://api.mistral.ai/v1 | No |
| MiniMax | Bearer Token | https://api.minimax.io/v1 | No |
| Moonshot | Bearer Token | https://api.moonshot.ai/v1 | No |
| NVIDIA | Bearer Token | https://integrate.api.nvidia.com/v1 | No |
| Z-AI | Bearer Token | https://api.z.ai/api/coding/paas/v4 | No |
| WebWright | Bearer Token | https://webwright.ai/v1 | No |
| ElevenLabs | X-Header | https://api.elevenlabs.io/v1 | No |
| Mirelo | Bearer Token | https://api.mirelo.ai/v3 | No |
Every provider above serves /v1/chat/completions except ElevenLabs and Mirelo, which have no chat-completions API and answer the Audio API alone. ElevenLabs covers speech synthesis with elevenlabs/<model> and an ElevenLabs voice id, plus sound-effect generation through POST /v1/audio/sfx with elevenlabs/eleven_text_to_sound_v2, and music generation through POST /v1/audio/music - it is the only provider serving music today. It is also the first provider behind the Videos API: elevenlabs/creatify-aurora renders audio-driven talking avatars at 480p or 720p (chosen through the size field). Mirelo serves sound-effect generation only, through POST /v1/audio/sfx with mirelo/sfx-2.0 - no chat, speech or music. Routing a chat request to either is not supported.
local is the gateway itself, not a configurable provider: no API key, no URL and no row in the table above. While an engine's gate is on, GET /v1/models lists it as a local/<engine> model with served_by: local - local/whisper-tiny (TRANSCRIPTIONS_ENABLED), local/qwen3-tts (AUDIO_ENABLED) and local/musetalk (VIDEOS_ENABLED) - and ?provider=local lists only them. See List All Models.
OpenAI is the only provider serving the Responses API and the Decisions API (POST /v1/decisions). Sending either to another provider returns 400 Bad Request with The Decisions API is not supported by this provider yet. for decisions - use /v1/chat/completions instead.
Vision/Multimodal Support
Several providers support vision/multimodal capabilities, allowing you to process images alongside text. To have the gateway handle image content, enable it in your configuration:
VISION_ENABLED=trueNote: Vision handling is disabled by default. When disabled, the gateway does not inspect image content and forwards it to the provider untouched. When enabled, image parts are stripped only from requests to models known to accept non-image input only (the request continues with text only). Models the gateway has no modality information for are passed through. Image content never causes the gateway to reject a request.
Providers with Vision Support
Example Vision Request
curl -X POST http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-opus-4-8",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "What is in this image?"
},
{
"type": "image_url",
"image_url": {
"url": "https://example.com/image.jpg"
}
}
]
}
]
}'Using Providers
Provider Configuration
Each provider requires specific configuration through environment variables:
PROVIDER_API_URL: The base URL for the provider's APIPROVIDER_API_KEY: The authentication key for the provider
Replace "PROVIDER" with the provider name (uppercase): OPENAI, DEEPSEEK, ANTHROPIC, COHERE, GROQ, CLOUDFLARE, OLLAMA_CLOUD, OLLAMA, LLAMACPP, GOOGLE, MISTRAL, MINIMAX, MOONSHOT, NVIDIA, ZAI, WEBWRIGHT, ELEVENLABS, MIRELO.
API Endpoints
Inference Gateway offers two main approaches to interact with providers:
1. Unified Generate API
The unified API allows you to generate content with a consistent interface across all providers:
POST /v1/chat/completions
Content-Type: application/json
{
"model": "MODEL_NAME",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Hello, world!"
}
]
}2. Provider Proxy
You can also proxy requests directly to the provider's native API:
POST /proxy/{provider}/{path}
Content-Type: application/json
// Provider-specific request bodyThe proxy forwards only an allow-list of client request headers and drops the rest, including provider-specific headers. See Forwarded Request Headers.
Provider-Specific Examples
OpenAI Provider
Generate content with OpenAI models:
curl -X POST http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Hello, world!"
}
]
}'List all available models:
curl http://localhost:8080/v1/modelsDeepSeek Provider
Generate content with DeepSeek models:
curl -X POST http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek/deepseek-v4-flash",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'List available models:
curl http://localhost:8080/v1/models?provider=deepseekAnthropic Provider
Generate content with Anthropic Claude models:
curl -X POST http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-opus-4-8",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Explain quantum computing in simple terms."
}
]
}'List available models:
curl http://localhost:8080/v1/models?provider=anthropicCohere Provider
Generate content with Cohere models:
curl -X POST http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "cohere/command-a-03-2025",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Write a short poem about AI."
}
]
}'Groq Provider
Generate content with Groq's high-performance models:
curl -X POST http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "groq/llama-3.3-70b-versatile",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "What are the benefits of quantum computing?"
}
]
}'Cloudflare Provider
Generate content with Cloudflare Workers AI:
curl -X POST http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "cloudflare/@cf/meta/llama-3.3-70b-instruct-fp8-fast",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Explain how neural networks work."
}
]
}'Ollama Provider
Generate content with locally-hosted Ollama models:
curl -X POST http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "ollama/llama3.3",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Write a function to calculate Fibonacci numbers in Python."
}
]
}'Ollama Cloud Provider
Generate content with Ollama's cloud-hosted models:
curl -X POST http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "ollama_cloud/gpt-oss:120b",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Summarize the benefits of running models in the cloud."
}
]
}'Ollama Cloud models are subscription-gated rather than metered per token. GET /v1/models?include=pricing returns a populated pricing object for every ollama_cloud/* model with subscription: true, so clients classify them as Subscription instead of Free. Models with a published pay-as-you-go rate keep non-zero input_per_token / output_per_token values for reference. The flag still decides billing. See List All Models for the full resolution order.
Google Provider
Generate content with Google's Gemini models:
curl -X POST http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-3-flash",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Explain the concept of machine learning in simple terms."
}
]
}'Note: The default Google base URL ends in
/v1beta/openai, which is Google's OpenAI-compatible endpoint. The gateway speaks the OpenAI protocol (/chat/completions,/models), so this suffix is required for routing to work. It is distinct from Google's native Gemini API at/v1, which uses a different request/response format and is not OpenAI-compatible. Keep the/v1beta/openaisuffix when overridingGOOGLE_API_URL.
Mistral Provider
Generate content with Mistral AI models:
curl -X POST http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "mistral/mistral-large-3",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Explain the differences between supervised and unsupervised learning."
}
]
}'Moonshot Provider
Generate content with Moonshot AI models:
curl -X POST http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "moonshot/kimi-k2-thinking",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "What are the key principles of clean code?"
}
]
}'Generate content with a Moonshot vision model, using an image URL:
curl -X POST http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "moonshot/kimi-latest",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "What is in this image?"
},
{
"type": "image_url",
"image_url": {
"url": "https://example.com/image.jpg"
}
}
]
}
]
}'NVIDIA Provider
Generate content with NVIDIA NIM models hosted on the build.nvidia.com API catalog:
curl -X POST http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "nvidia/meta/llama-3.1-8b-instruct",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Explain the concept of GPU acceleration."
}
]
}'List available models:
curl http://localhost:8080/v1/models?provider=nvidiaNote: NVIDIA is additive alongside Groq. Groq provides ultra-low-latency inference via LPU hardware, while NVIDIA offers a broad GPU-served catalog including Nemotron, Llama, DeepSeek, Mistral, and Qwen. They are complementary providers.
llama.cpp Provider
Generate content with self-hosted GGUF models via llama.cpp's llama-server:
curl -X POST http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "llamacpp/llama-3.2-3b-instruct",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Explain how llama.cpp works in simple terms."
}
]
}'List available models:
curl http://localhost:8080/v1/models?provider=llamacppNote:
LLAMACPP_API_KEYis optional. When yourllama-serveris started with--api-key, setLLAMACPP_API_KEYto the same value and the gateway forwards it to llama.cpp as anAuthorization: Bearer <key>header. Leave it empty or unset for local, unauthenticated servers - noAuthorizationheader is sent, so existing deployments are unaffected.
Z-AI Provider
Generate content with Z-AI models for direct access to open-weight models like GLM:
curl -X POST http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "zai/glm-5.2",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Explain the benefits of open-weight models."
}
]
}'List available models:
curl http://localhost:8080/v1/models?provider=zaiElevenLabs Provider
ElevenLabs is media-only: speech, sound effects, music, video scoring, avatar videos and image edits. It has no chat-completions API.
Video scoring shares the sound-effects endpoint with Mirelo: a multipart/form-data body with a video part and a music model (elevenlabs/music_v2_5) is scored through ElevenLabs' video-to-music API, which answers in one call and needs a paid plan. It always scores the whole clip, so preserve_speech, output=speech, start_offset_seconds and duration_seconds answer 400 Bad Request naming the field.
Image edits go through POST /v1/images/edits with the gpt-image-* (gpt-image-1, gpt-image-1.5, gpt-image-2, gpt-image-2.5-flare, gpt-image-2.5-sunburst), bytedance-seedream-5-* and gemini-*-image models under the elevenlabs/ prefix, so one ElevenLabs key covers editing a portrait, voicing it and lip-syncing it. Image generation (POST /v1/images/generations) is not served - send the source image to the edit endpoint instead.
ElevenLabs' own models endpoint lists speech models only. The gateway appends the sound-effect (eleven_text_to_sound_v2), music (music_v2, music_v2_5), video (creatify-aurora, veo-3.1-*, bytedance-seedance-v2*) and image-edit (gpt-image-*, bytedance-seedream-5-*, gemini-*-image) models to /v1/models so clients can discover them. Filter on modalities to pick the ones you need:
curl -s 'http://localhost:8080/v1/models?provider=elevenlabs&include=modalities' \
| jq '.data[] | select(.modalities.output == ["audio"]) | .id'pricing and context_window are null for every ElevenLabs model: billing is credit-based and there is no token window.
Mirelo Provider
Mirelo is sound-effects-only: it serves sound effects through POST /v1/audio/sfx with models such as mirelo/sfx-2.0. It has no chat-completions, speech or music API.
It also scores a video, as ElevenLabs does: send the same endpoint a multipart/form-data body with a video part and Mirelo generates the sound that fits the clip. Mirelo is the provider that keeps or separates the speech already in the clip and scores a window of it rather than the whole thing - those fields answer 400 Bad Request on ElevenLabs.
The same clip comes back dubbed - the generated sound laid onto the footage as its new soundtrack - from the Videos API, where Mirelo joins elevenlabs as a provider behind VIDEOS_ENABLED. Send POST /v1/videos a video part, poll the mirelo:-prefixed job and download the MP4.
List available models:
curl http://localhost:8080/v1/models?provider=mirelo