Skip to content

Interface: ResponsesProviderOptions

@providerprotocol/ai


@providerprotocol/ai / responses / 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.

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'
});

optional apiKeyEnv: string

Defined in: src/providers/responses/types.ts:59

Environment variable name containing the API key. Defaults to ‘OPENRESPONSES_API_KEY’.

'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.

'https://api.openai.com/v1'
'https://openrouter.ai/api/v1'
'http://localhost:8080/v1'