zdr, data_collection) and provider-specific passthrough options
Example Usage
import { STTRequestProvider } from "@openrouter/sdk/models";
let value: STTRequestProvider = {};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
dataCollection | models.STTRequestDataCollection | ➖ | Data collection setting. If no available model provider meets the requirement, your request will return an error. - allow: (default) allow providers which store user data non-transiently and may train on it - deny: use only providers which do not collect user data. | allow |
options | models.ProviderOptions | ➖ | Provider-specific options keyed by provider slug. The provider segment is case-insensitive; an endpoint tag after / must match the endpoint slug exactly. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped. | { “openai”: { “max_tokens”: 1000 } } |
zdr | boolean | ➖ | Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used. | true |