Skip to main content
The Gateway runs a Model Context Protocol server on FastMCP. Agents such as Pydantic AI, LangChain, Mastra, the OpenAI Agents SDK, and Claude Code call the same pipeline as chat/completions. Authentication, billing, and metering match the REST API. Tiers are on Authentication and Rate Limits.

Quickstart

1

Add the server

To click through the tools, run npx @modelcontextprotocol/inspector. Set the transport to Streamable HTTP and point it at the same URL.
2

Ask the agent to parse a document

The agent picks read_document on its own.
3

Inspect the response

Every read_* tool returns text like this, plus a typed ReadResult with the model that ran and its cost.

In this section

Chat Completions API

The REST surface behind the same pipeline.

List models

The live model catalog and capabilities.

Authentication

Bearer tokens, tiers, and anonymous access.

Supported Inputs

Content part types, document limits, and video knobs.