Zum Inhalt
Lumean

Beschreibungen auf Englisch

Die Oberfläche des Bereichs ist in Ihre Sprache übersetzt, Beschreibungen von Operationen, Schemata und Fehlern gibt es aber nur auf Russisch und Englisch — hier wird die englische Fassung angezeigt.

payg_topup_required — top-up confirmation required

402payg_topup_requiredkein Retry-After

Was passiert ist

The order was not created and no money was charged. Instead, the server sent the top-up price. Body: reason: "payg_topup_required", shortfall_tokens, shortfall_lmc, shortfall_lmc_minor, quote_token, expires_at. This response comes only in explicit top-up confirmation mode. By default, the amount beyond the quota is charged automatically.

Warum

The order costs more than the tokens left in the subscription quota, and the service allows paying beyond the quota (Service.payg_access ≠ disabled). This is not a key refusal and not a limit. The server is asking for consent to charge the missing part to the LMC balance.

Was jetzt zu tun ist

Show the user shortfall_lmc and get explicit consent. An automatic retry here means charging money without the user knowing. The quote is short-lived: 60 seconds by default (expires_at). If it has expired, a request without confirmation returns a new 402 with a new quote_token.

Welche Anfrage als Nächstes

The same POST /orders with the same body plus "confirm_payg_topup": true and the "quote_token" from this response → 201, and the top-up is charged to the LMC balance. If the top-up got more expensive in the meantime, you get a 409 quote_mismatch with a fresh quote_token. The order later shows the actual split in tokens_from_quota and tokens_from_payg.

Diese Seite für KI

.md öffnenllm.md

API-Version 1.0.0