Saltar al contenido
Lumean

Descripciones en inglés

La interfaz de la sección está traducida a su idioma, pero las descripciones de operaciones, esquemas y errores solo existen en ruso y en inglés: aquí se muestra la versión en inglés.

402 — payment required

402sin Retry-After

Qué pasó

The order was not created and no money was charged. POST /orders and POST /orders/{order}/retry return this code: both are paid for the same way. Chunk retry and regeneration also return 402 when an extra charge cannot be paid: insufficient_balance, insufficient_allowance, and for retry also insufficient_funds (the order's reserved remainder is not enough). The reason field names the cause.

Por qué

insufficient_balance means the subscription quota is used up and the balance does not have enough LMC to pay beyond it. insufficient_allowance means the quota is used up and paying beyond the quota is disabled for this service. payg_topup_required comes only when explicit top-up confirmation mode is on. By default, the amount beyond the quota is charged to the balance automatically.

Qué hacer ahora mismo

Branch on reason, not on message: the message text can change without notice. For insufficient_balance, top up the balance. For insufficient_allowance, wait for the next quota or change the plan. Until then, the same request keeps returning the same 402.

Qué solicitud enviar a continuación

GET /subscriptions shows the remaining quota in items[].tokens_remaining.

Esta página para IA

Abrir .mdllm.md

versión de la API 1.0.0