Connect your AI assistant to 200+ LLM models through the Model Context Protocol. Works with Claude Code, Cursor, and any MCP-compatible client.
Access models from OpenAI, Anthropic, Google & more
Generate images directly from your AI assistant
One endpoint for all providers and capabilities
Works with Claude Code, Cursor, and any MCP client
Send messages to any LLM and get responses. Supports 200+ models from OpenAI, Anthropic, Google, and more.
{
"model": "gpt-4o",
"messages": [{ "role": "user", "content": "Hello!" }]
}Generate images from text prompts using AI image models like Qwen Image. Returns images directly in the response.
{
"prompt": "A serene mountain landscape at sunset",
"model": "qwen-image-plus",
"size": "1024x1024"
}Generate images with Gemini 3 Pro Image Preview. Returns inline image data. Set UPLOAD_DIR on the server to also save images to disk.
{
"prompt": "A pixel-art cat sitting on a rainbow",
"filename": "hero-image.png",
"aspect_ratio": "16:9"
}Discover available models with their capabilities, pricing, and provider information.
{
"family": "openai",
"limit": 10
}Get a list of all available image generation models with pricing and usage examples.
// No parameters required
// Returns: qwen-image-plus, qwen-image-max, etc.claude mcp add --transport http --scope user llmgateway https://api.llmgateway.io/mcp \
--header "Authorization: Bearer YOUR_API_KEY"Run this command in your terminal to add the MCP server globally.
~/.claude/claude_desktop_config.json{
"mcpServers": {
"llmgateway": {
"url": "https://api.llmgateway.io/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}codex mcp add llmgateway --url https://api.llmgateway.io/mcp \
--bearer-token-env-var LLM_GATEWAY_API_KEYSet LLM_GATEWAY_API_KEY env var first, then run this command.
~/.codex/config.toml[mcp_servers.llmgateway]
url = "https://api.llmgateway.io/mcp"
bearer_token_env_var = "LLM_GATEWAY_API_KEY"{
"mcpServers": {
"llmgateway": {
"url": "https://api.llmgateway.io/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Add to ~/.cursor/mcp.json
curl -X POST https://api.llmgateway.io/mcp \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "chat",
"arguments": {
"model": "gpt-4o",
"messages": [{"role": "user", "content": "Hello!"}]
}
}
}'Get your API key and start using LLM Gateway with your favorite AI assistant.