Interface: ResponsesProviderOptions
@providerprotocol/ai / responses / ResponsesProviderOptions
Interface: ResponsesProviderOptions
Section titled “Interface: ResponsesProviderOptions”Defined in: src/providers/responses/types.ts:41
Configuration options for creating an OpenResponses model reference.
The host option allows targeting any OpenResponses-compatible server,
making this provider work with OpenAI, self-hosted servers, or any
implementation of the OpenResponses specification.
Examples
Section titled “Examples”const model = responses('gpt-5.2', { host: 'https://api.openai.com/v1'});const model = responses('llama-3.3-70b', { host: 'http://localhost:8080/v1', apiKeyEnv: 'LOCAL_API_KEY'});Properties
Section titled “Properties”apiKeyEnv?
Section titled “apiKeyEnv?”
optionalapiKeyEnv:string
Defined in: src/providers/responses/types.ts:59
Environment variable name containing the API key. Defaults to ‘OPENRESPONSES_API_KEY’.
Examples
Section titled “Examples”'OPENAI_API_KEY''OPENROUTER_API_KEY'host:
string
Defined in: src/providers/responses/types.ts:50
The base URL for the OpenResponses-compatible API.
The /responses endpoint will be appended to this URL.
Examples
Section titled “Examples”'https://api.openai.com/v1''https://openrouter.ai/api/v1''http://localhost:8080/v1'