ProviderPreferencesMaxPrice - TypeScript SDK

ProviderPreferencesMaxPrice type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.

Example Usage

1import { ProviderPreferencesMaxPrice } from "@openrouter/sdk/models";
2
3let value: ProviderPreferencesMaxPrice = {};

Fields

FieldTypeRequiredDescriptionExample
promptstringâž–Price per million prompt tokens1000
completionstringâž–N/A1000
imagestringâž–N/A1000
audiostringâž–N/A1000
requeststringâž–N/A1000