ProviderPreferencesMaxPrice - TypeScript SDK

ProviderPreferencesMaxPrice method reference

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âž–A value in string format that is a large number1000
completionstringâž–A value in string format that is a large number1000
imagestringâž–A value in string format that is a large number1000
audiostringâž–A value in string format that is a large number1000
requeststringâž–A value in string format that is a large number1000