API Reference
OpenResponses provides an OpenAI-compatible API that allows you to interact with multiple model providers and leverage built-in tools. This reference documents all available endpoints, request parameters, and response formats.Base URL
localhost
.
Authentication
All API requests require authentication using an API key. The API key should be provided in theAuthorization
header using the Bearer token scheme:
openai
- OpenAI models (GPT-4o, GPT-3.5 Turbo, etc.)claude
- Anthropic models (Claude 3.5 Sonnet, Claude 3 Opus, etc.)groq
- Groq models (Llama 3, etc.)
API Endpoints
Endpoint | Description |
---|---|
POST /v1/responses | Create a new model response |
GET /v1/responses/{responseId} | Retrieve a specific response |
DELETE /v1/responses/{responseId} | Delete a response |
GET /v1/responses/{responseId}/input_items | List input items for a response |
Request Format
A typical request to create a new model response looks like this:Response Format
A successful response will include:Error Handling
OpenResponses standardizes error responses across all model providers:invalid_request_error
- The request was malformed or missing required parametersauthentication_error
- Invalid API key or authentication failedrate_limit_exceeded
- You’ve exceeded the rate limit for API callsserver_error
- An internal server error occurred
SDKs and Integration
OpenResponses is designed to work with existing OpenAI SDKs:Tool Usage
OpenResponses supports both function calling and built-in tools. To use tools, include them in your request:Rate Limits
Default rate limits for the API are:- 100 requests per minute per IP address
- 1000 requests per day per API key