Skip to main content
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

import { ProviderPreferencesMaxPrice } from "@openrouter/sdk/models";

let value: ProviderPreferencesMaxPrice = {};

Fields

FieldTypeRequiredDescriptionExample
promptstring:heavy_minus_sign:A value in string format that is a large number1000
completionstring:heavy_minus_sign:A value in string format that is a large number1000
imagestring:heavy_minus_sign:A value in string format that is a large number1000
audiostring:heavy_minus_sign:A value in string format that is a large number1000
requeststring:heavy_minus_sign:A value in string format that is a large number1000