MaxPrice - TypeScript SDK

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

Fields

FieldTypeRequiredDescription
promptanyâž–A value in string or number format that is a large number
completionanyâž–A value in string or number format that is a large number
imageanyâž–A value in string or number format that is a large number
audioanyâž–A value in string or number format that is a large number
requestanyâž–A value in string or number format that is a large number