TypeScript SDKOperations

MaxPrice - TypeScript SDK

MaxPrice 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 { MaxPrice } from "@openrouter/sdk/models/operations";
2
3let value: MaxPrice = {};

Fields

FieldTypeRequiredDescriptionExample
promptstringA value in string format that is a large number1000
completionstringA value in string format that is a large number1000
imagestringA value in string format that is a large number1000
audiostringA value in string format that is a large number1000
requeststringA value in string format that is a large number1000