Skip to content
✨ agentgateway has joined the Agentic AI Foundation (AAIF) — Learn more

For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.

Page as Markdown

API types

Supported LLM API endpoint types and route configurations

Agentgateway supports multiple LLM API endpoint types, called route types, that determine how clients interact with the gateway and how requests are routed to backends. In the simplified llm configuration, agentgateway maps standard endpoint paths to these route types automatically. In the binds/listeners/routes configuration, you set the route type explicitly in the policies.ai.routes map.

The following API types have dedicated guides:

  • Chat completions — The OpenAI /v1/chat/completions endpoint. This is the most widely used API type for text generation and chat applications.
  • Responses — The OpenAI /v1/responses endpoint for stateful, multi-step model interactions.
  • Messages — The Anthropic /v1/messages endpoint for Claude models.
  • Realtime — The OpenAI Realtime API for low-latency, streaming voice and text interactions over WebSockets.
  • Passthrough — Forwards requests directly to the backend provider without transformation.

Agentgateway also recognizes additional route types for specific endpoints, including embeddings (/v1/embeddings), models (/v1/models), and anthropicTokenCount (/v1/messages/count_tokens).

Was this page helpful?
Agentgateway assistant

Ask me anything about agentgateway configuration, features, or usage.

Note: AI-generated content might contain errors; please verify and test all returned information.

Tip: one topic per conversation gives the best results. Use the + button in the chat header to start a new conversation.

Switching topics? Starting a new conversation improves accuracy.
↑↓ navigate select esc dismiss

What could be improved?

Your feedback helps us improve assistant answers and identify docs gaps we should fix.

Need more help? Join us on Discord: https://discord.gg/y9efgEmppm

Want to use your own agent? Add the Solo MCP server to query our docs directly. Get started here: https://search.solo.io/.