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.

401 — key rejected

401sin Retry-After

Qué pasó

The request was rejected before processing: nothing was done and nothing was charged. Body: {"success": false, "message": "API key is missing. Provide it in the X-API-KEY header.", "data": null}. The message depends on the cause: Invalid or inactive API key. for an unknown or disabled key, This API key has expired. for an expired one. The public API accepts no requests without a key.

Por qué

The X-API-KEY header was not sent, its name has a typo, or the value was cut off when copied. The key may also be unknown, disabled, or expired. The same response comes back when the key owner's account is blocked or deleted. The public API does not accept the web dashboard Bearer token, and an API key does not open dashboard endpoints.

Qué hacer ahora mismo

Check that the header is named exactly X-API-KEY, not Authorization or Api-Key, and that the full value is sent. If the key is correct, open the developer section and check that the key is active and has not expired. A retry with the same key returns the same 401.

Qué solicitud enviar a continuación

GET /key is a good key check: it creates nothing, charges nothing and needs no scope. 200 means the key works, and the response lists its scopes and limits. Another 401 confirms that the key itself is the problem.

Esta página para IA

Abrir .mdllm.md

versión de la API 1.0.0