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. When omitted, inherited from the public endpoint of the same model and provider: scaled by its cache-read to prompt ratio, or left at the pricing strategy default when it publishes no cache-read rate. Required when there is no such endpoint and the provider bills cache reads. | 0.00000025 |
cacheWrite | string | ➖ | USD per cache-write prompt token, as a decimal string. When omitted, inherited from the public endpoint of the same model and provider: scaled by its cache-write to prompt ratio, or left at the pricing strategy default when it publishes no cache-write rate. Required when there is no such endpoint and the provider bills cache writes. | 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 |