Skip to content

Commit fdeb5fa

Browse files
openrouter-docs-sync[bot]OpenRouter SDK Bot
andauthored
chore: update OpenAPI spec from monorepo (#512)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
1 parent acc4319 commit fdeb5fa

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.speakeasy/in.openapi.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18074,7 +18074,7 @@ components:
1807418074
example:
1807518075
enabled: true
1807618076
id: 'pareto-router'
18077-
min_coding_score: 0.8
18077+
max_price: 5
1807818078
price_source: 'prompt'
1807918079
properties:
1808018080
enabled:
@@ -18084,15 +18084,21 @@ components:
1808418084
enum:
1808518085
- 'pareto-router'
1808618086
type: 'string'
18087+
max_price:
18088+
description: 'Maximum input price in USD per million tokens. When set, quality-tier selection (min_coding_score) is bypassed: the router computes the Pareto frontier over the top coding models and routes to the best-scoring frontier model priced at or below this cap, falling back through cheaper frontier models, then non-frontier models. Enforced against the price source given by price_source. Returns 404 when no candidate satisfies the cap.'
18089+
example: 5
18090+
format: 'double'
18091+
minimum: 0
18092+
type: 'number'
1808718093
min_coding_score:
18088-
description: 'Minimum coding quality score between 0 and 1. Maps to internal quality tiers: >= 0.66 → high (top coding models), >= 0.33 → medium (strong modern flagships), < 0.33 → low (capable coders above the median). Omit to default to the highest tier (equivalent to >= 0.66).'
18094+
description: 'Minimum coding quality score between 0 and 1. Maps to internal quality tiers: >= 0.66 → high (top coding models), >= 0.33 → medium (strong modern flagships), < 0.33 → low (capable coders above the median). Omit to default to the highest tier (equivalent to >= 0.66). Not used when max_price is set (price-based selection takes over).'
1808918095
example: 0.8
1809018096
format: 'double'
1809118097
maximum: 1
1809218098
minimum: 0
1809318099
type: 'number'
1809418100
price_source:
18095-
description: '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".'
18101+
description: 'Price source for the Pareto frontier cost axis and for enforcing max_price. "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".'
1809618102
enum:
1809718103
- 'prompt'
1809818104
- 'weighted_avg'

0 commit comments

Comments
 (0)