AI Gateway now supports OpenAI's Responses API as a modern alternative to the Chat Completions API.
- •Point the OpenAI SDK to AI Gateway's base URL (https://ai-gateway.vercel.sh/v1) to route requests through any supported model
- •Supports text generation and streaming, tool calling, structured output via JSON schema, and configurable reasoning effort levels
- •Both TypeScript and Python SDKs are supported
- •Structured output can be combined with reasoning levels to get constrained JSON responses from models like Claude or GPT
- •All Responses API functionality was previously accessible via AI SDK and Chat Completions API; direct support is now added
This summary was automatically generated by AI based on the original article and may not be fully accurate.