Skip to content

Interface: OpenRouterHeaders

@providerprotocol/ai


@providerprotocol/ai / openrouter / OpenRouterHeaders

Defined in: src/providers/openrouter/types.ts:1444

OpenRouter-specific HTTP headers for API requests.

const headers: OpenRouterHeaders = {
'HTTP-Referer': 'https://myapp.example.com',
'X-Title': 'My Application',
};

[key: string]: string | undefined

optional HTTP-Referer: string

Defined in: src/providers/openrouter/types.ts:1446

Application URL for analytics and leaderboard tracking.


optional X-Title: string

Defined in: src/providers/openrouter/types.ts:1448

Application name for analytics display.