Gateway overview
Generate chat responses and images, stream output, and create embeddings.
Gateway executes model requests using your organization's provider credentials. Begin with chat completions, then add streaming, tools and structured output, embeddings, or images.
Chat selects exactly one physical model or configured route. Embeddings select a physical model. Your key needs gateway:execute; catalog discovery separately needs model/provider read access.
Routing and fallback explains selection and failure behavior. Platform setup covers one-time credentials and route configuration. AI endpoints execute pinned prompt contracts rather than ordinary chat payloads.
Exact response caching explains supported request headers, cache scope, and response metadata. Usage, logs and traces covers execution inspection and its limits.
The SDK normalizes chat and embedding responses. See Gateway reference for contracts and errors and reliability for retries and cancellation. For a complete application, build the chatbot or fallback recipe.