Example Usage
import { PrivateEndpointPricing } from "@openrouter/sdk/models";
let value: PrivateEndpointPricing = {
completion: "0.00001",
prompt: "0.0000025",
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
cacheRead | string | ➖ | USD per cache-read prompt token, as a decimal string. Omit it to bill cache reads at the provider pricing strategy’s default, which for most strategies is the prompt rate. | 0.00000025 |
cacheWrite | string | ➖ | USD per cache-write prompt token, as a decimal string. Omit it to bill cache writes at the provider pricing strategy’s default. | 0.000003125 |
completion | string | ✔️ | USD per completion token, as a decimal string. | 0.00001 |
prompt | string | ✔️ | USD per prompt token, as a decimal string. | 0.0000025 |