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 | :heavy_minus_sign: | 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 | :heavy_minus_sign: | Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped. | { “openai”: { “max_tokens”: 1000 } } |
zdr | boolean | :heavy_minus_sign: | Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used. | true |