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.
GET/voices/{provider}/clones/quota

My Voice Clone Quota

The key owner's voice clone quota for the chosen provider (provider: cartesia or fishaudio), before trying to create one: limit is the cap (the plan's rule, otherwise the fallback cap of 2; null when the check refused before counting — a clone ban, or no_subscription on a service closed to paying from the balance), used is the clones in pending/cloning/ready/review, remaining is the free slots. The cap and the counting are separate for each provider.

When a clone cannot be created right now, can_create is false and reason is the same code creation would return: no_subscription, voice_clone_banned (the cause is in ban_reason) or voice_clone_quota_exceeded.

If the service is closed to the key owner (closed test), the answer is 404 with reason: service_not_found.

Required key permission: voices.read.

Parámetros

Los valores se escriben directamente en la línea de la solicitud y la URL se arma sola. Abajo están el tipo, la obligatoriedad y los valores permitidos de cada parámetro.

GEThttps://api.lumean.app/api/public/voices//clones/quota
  • stringen la rutaobligatorio

    Voice provider whose clones you work with: cartesia or fishaudio. Any other value does not match the route (404). The clone cap, the subscription rule and the clone ids are separate for each provider.

    El valor va directamente a la línea de solicitud de arriba.

    Valores permitidos

Respuestas posibles

200

Success. The payload is in data.

Ejemplo de cuerpo
{
  "success": true,
  "message": "Success",
  "data": {
    "limit": 2,
    "used": 1,
    "remaining": 1,
    "can_create": true,
    "reason": null,
    "ban_reason": null
  }
}
Campos de la respuesta
successobligatorio

Success flag. Branch on the HTTP status code instead: any 2xx response carries true here, while an error comes back in a different shape that need not contain this field at all.

boolean
messageobligatorio

A human-readable note in the account language. Fine to show to a user; do not parse it — the wording changes without notice and is not an error code.

string
dataobligatorio

The response payload.

object
limitobligatorio

The effective clone cap: the plan's rule, otherwise the fallback cap of 2. null when the check refused before counting (a clone ban, or no_subscription on a service closed to paying from the balance).

admite null
integer
usedobligatorio

How many clones hold a slot: those in pending, cloning and ready.

integer
remainingobligatorio

Free slots: limit - used, never below 0; null when limit is null.

admite null
integer
can_createobligatorio

Whether a clone can be created right now. false — the cause is in reason.

boolean
reasonobligatorio

The refusal code creation would return: no_subscription, voice_clone_banned or voice_clone_quota_exceeded; null when creation is possible.

admite null
string
ban_reasonobligatorio

The clone ban cause when reason is voice_clone_banned, otherwise null.

admite null
string
401

The key is missing, unknown, disabled or expired.

Analizar esta respuesta
Ejemplo de cuerpo
{
  "success": false,
  "message": "API key is missing. Provide it in the X-API-KEY header.",
  "data": null
}
Campos de la respuesta
successobligatorio

Always false in error responses.

boolean
messageobligatorio

Error text in the key's language (set through the X-Locale header).

string
dataobligatorio

Always null when the request is rejected before processing.

admite null
null
403

The key lacks the voices.read permission.

Analizar esta respuesta
Ejemplo de cuerpo
{
  "success": false,
  "message": "This API key does not have permission to perform this action."
}
Campos de la respuesta
successobligatorio

Always false in error responses.

boolean
messageobligatorio

Error text in the key's language (set through the X-Locale header).

string
404

The provider's service (Cartesia or Fish Audio) is closed to the key owner (reason: service_not_found).

Analizar esta respuesta
Ejemplo de cuerpo
{
  "success": false,
  "message": "Resource not found."
}
Campos de la respuesta
successobligatorio

Always false in error responses.

boolean
messageobligatorio

The reason for the rejection in words, in the account language. Meant for display; do not branch on it, the wording changes.

string
reasonobligatorio

Machine-readable reason of a business refusal (for example, input_expired, insufficient_balance). Branch on it, not on the message text.

string
error_codeobligatorio

The same machine-readable code as in reason — a second name for the field. The values always match.

string

Esta página para IA

Abrir .mdllm.md

versión de la API 1.0.0