Responses API Beta
OpenAI-compatible Responses API (Beta)
OpenAI-compatible Responses API (Beta)
This API is in beta stage and may have breaking changes. Use with caution in production environments.
This API is stateless - each request is independent and no conversation state is persisted between requests. You must include the full conversation history in each request.
OpenRouter’s Responses API Beta provides OpenAI-compatible access to multiple AI models through a unified interface, designed to be a drop-in replacement for OpenAI’s Responses API. This stateless API offers enhanced capabilities including reasoning, tool calling, and web search integration, with each request being independent and no server-side state persisted.
All requests require authentication using your OpenRouter API key:
Learn the fundamentals of making requests with simple text input and handling responses.
Access advanced reasoning capabilities with configurable effort levels and encrypted reasoning chains.
Integrate function calling with support for parallel execution and complex tool interactions.
Enable web search capabilities with real-time information retrieval and citation annotations.
The API returns structured error responses:
For comprehensive error handling guidance, see Error Handling.
Standard OpenRouter rate limits apply. See API Limits for details.