You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1d7d817
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: devlog/_plan/260818_fastwire_b2_xai/evidence/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ that exercise every branch of the new pricing path:
7
7
| --- | --- | --- |
8
8
|`req-standard`| no Fast requested |`~$0.0300`|
9
9
|`req-priority`| response-confirmed priority, prompt under the long-context threshold |`~$0.0600` — exactly the documented 2x premium over the row above |
10
-
|`req-longctx-priority`| response-confirmed priority, prompt above 200k |`≥$0.8760` — the published long-context rate, marked a lower bound because xAI publishes no combined price |
10
+
|`req-longctx-priority`| response-confirmed priority, prompt at or above 200k |`≥$0.8760` — the published long-context rate, marked a lower bound because xAI publishes no combined price |
11
11
12
12
The `≥` prefix is the visible change: a cost that is a known floor rather than an
13
13
estimate now says so instead of rendering as `~$`. The detail drawer explains why
Copy file name to clipboardExpand all lines: docs-site/src/content/docs/reference/configuration/providers.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,14 +154,15 @@ Explicit capability `false` and Responses caller-tier forwarding retain their ex
154
154
### xAI Priority Processing
155
155
156
156
The built-in `xai` preset advertises and injects Fast only when its effective transport uses
157
-
`authMode: "key"`. It sends `service_tier: "priority"` to xAI's public Chat Completions or
158
-
Responses API. `ocx login xai` uses the separate Grok CLI subscription gateway, so OAuth remains
159
-
unclassified: its catalog rows do not advertise Fast and the proxy does not inject a tier.
157
+
`authMode: "key"`. API-key mode uses the key transport at `https://api.x.ai/v1` and sends
158
+
`service_tier: "priority"` to xAI's public Chat Completions or Responses API. `ocx login xai`
159
+
instead stores OAuth credentials for the separate Grok CLI subscription-gateway flow, so OAuth
160
+
remains unclassified: its catalog rows do not advertise Fast and the proxy does not inject a tier.
160
161
161
162
xAI charges Priority Processing at 2× the standard token price for input, output, cached, and
162
163
reasoning tokens; cache discounts are applied before the multiplier. Cost estimates use that premium
163
-
only when xAI echoes `service_tier: "priority"` (or when an adapter explicitly records an assumed
164
-
priority outcome). An echoed `default` is a downgrade and stays at the standard price.
164
+
only when xAI's response confirms `service_tier: "priority"`. A missing or unparsed response tier is
165
+
not confirmation, and an echoed `default` is a downgrade; all three stay at the standard price.
165
166
166
167
For `grok-4.6`, the standard rate per 1M tokens is $2.00 input, $0.50 cached input, and $6.00
167
168
output. A prompt of at least 200,000 tokens reprices the whole request at $4.00 / $1.00 / $12.00.
"logs.metric.tokPerSecTitle": "Jetons de sortie par seconde sur toute la durée de la requête",
675
678
"logs.metric.estimatedCostTitle": "Équivalent au tarif catalogue de l’API, et non montant réellement facturé ; aucun tarif n’est disponible en l’absence de correspondance",
676
679
"usage.cost.total": "Équivalent au tarif catalogue de l’API (cette période)",
"logs.metric.tokPerSecTitle": "Выходные токены в секунду за полную длительность запроса",
678
681
"logs.metric.estimatedCostTitle": "Эквивалент стоимости по прайс-листу API, а не фактическое списание; если цену не удалось сопоставить, значение недоступно",
679
682
"usage.cost.total": "Эквивалент стоимости по прайс-листу API (за этот период)",
0 commit comments