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

FieldTypeRequiredDescriptionExample
audiostringN/A1000
completionstringN/A1000
imagestringN/A1000
promptstringPrice per million prompt tokens1000
requeststringN/A1000