BenchmarkPricing - TypeScript SDK

BenchmarkPricing type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

OpenRouter pricing per token for this model. Null if pricing is unavailable.

Example Usage

1import { BenchmarkPricing } from "@openrouter/sdk/models";
2
3let value: BenchmarkPricing = {
4 completion: "0.000015",
5 prompt: "0.000003",
6};

Fields

FieldTypeRequiredDescriptionExample
completionstring✔️Cost per output token (USD, decimal string).0.000015
promptstring✔️Cost per input token (USD, decimal string).0.000003