Files
openrouter-python-sdk-retry…/docs/components/pricesource.mdx
T
github-actions[bot]GitHubspeakeasybotspeakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
1e88de8988 chore: 🐝 Update SDK - Generate (spec change merged) 0.11.4 (#396)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
2026-07-07 14:35:05 +00:00

23 lines
588 B
Plaintext

---
title: "PriceSource"
---
Price source for the Pareto frontier cost axis. "prompt" uses catalog list price (endpoint.pricing.prompt). "weighted_avg" uses traffic-weighted effective input price from ClickHouse, falling back to prompt price for models without traffic data. Defaults to "prompt".
## Example Usage
```python
from openrouter.components import PriceSource
# Open enum: unrecognized values are captured as UnrecognizedStr
value: PriceSource = "prompt"
```
## Values
This is an open enum. Unrecognized values will not fail type checks.
- `"prompt"`
- `"weighted_avg"`