Skip to main content
Base class for interacting with providers that implement the Open Responses API specification. This provides a foundation for multi-provider, interoperable LLM interfaces based on the OpenAI Responses API. Providers that implement this spec include Ollama (v0.13.3+) and OpenRouter. Provider reference pages document only their own defaults and additions. Every parameter below is available on all of them.

Key Differences from OpenAI Responses

  • Configurable base_url for pointing to different API endpoints
  • Stateless by default (no previous_response_id chaining)
  • Flexible api_key handling for providers that don’t require authentication

Parameters

Request parameters

Client parameters

Caching parameters

Retry parameters

Usage

For most use cases, prefer the provider-specific classes: