Le Chat Pro, Student and Team come with a monthly Mistral Vibe budget,
which the plan's Vibe key (chat.mistral.ai/code/extensions?focus=key) is
told at Mistral's billing API, the routes Mistral's own Vibe CLI reads
(mistralai/mistral-vibe c96a6db, vibe/app_server/_billing.py and
_account.py, fixtures in tests/app_server/test_billing.py):
GET https://api.mistral.ai/v1/billing/budget and /v1/billing/subscription,
the key as a Bearer. A key on api.mistral.ai now has a plan source
(planQuotaSourceOf, not sure): vibe_budget becomes one Month window, its
usage_percentage the share used, initial_budget the limit in its currency
(EUR), reset at reset_at, and Aside while pay-as-you-go is on (the
budget's payg_enabled, else the subscription's vibe_payg_enabled), since
what goes past it is billed then rather than stopped. The plan's name is
billing's plan_name titled as Vibe titles it (EDU is Student, INDIVIDUAL
Pro), asked only of a key with a budget; the card stands without it.
A key with no Vibe budget (initial_budget 0 or none, a la Plateforme key)
has no windows and no card, and a refusal gives no card unless one was
read before. Le Chat's own message limits are told by no API.
Run (mote): go test ./internal/provider (whole package, ok), plus the
Balance/Plan/Quota/Usage/Allowance/Key tests of internal/gui and
internal/gateway; GOOS=linux and GOOS=windows go vet ./internal/provider;
gofmt -l clean.
Broken by hand: with the budget's own payg_enabled ignored,
TestMistralVibeBudget goes red.
Not tried: a real Vibe key. None was at hand. Live, both billing routes
answer 401 "Invalid API Key" to a bad key while an unknown /v1/billing
path is 404, so they exist; the bodies are Vibe's own test fixtures
("Producer: dashboard billing_api_public"), not a reply seen.
Reported-by: dhanyqaz