Zum Inhalt
Lumean API

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.
GET/orders/{order}/items/{item}/text

Get Order Item Text

Returns the text the chunk was generated from.

The main use is fixing a policy_flagged chunk: the provider rejected the content, and retrying the same text will be rejected again. The sequence is: fetch the text here → rephrase the problematic part → send POST /orders/{order}/items/{item}/retry with a text field.

The API does not report why the content was rejected — there is no such field. Edit the text at your own judgement.

If the text was deleted with the order's storage retention, you get 422 with reason: input_expired. It cannot be restored: create the order anew (a retry with a new text still works).

Required key permission: orders.read.

Auf dieser Seite(4)

Parameter

Die Eingabefelder liegen direkt in der Anfragezeile: Wert eintragen und die URL ist fertig. Darunter stehen Typ, Pflichtangabe und erlaubte Werte jedes Parameters.

GEThttps://api.lumean.app/api/public/orders//items//text
  • stringim Pfaderforderlich

    Order UUID — 36 characters shaped like 9f8b2c1a-4d3e-4f5a-8b9c-0d1e2f3a4b5c, not a number.

    Take it from the id field: POST /orders returns it on creation and GET /orders lists it. Someone else’s order will not open with your key — you get a 404.

    Der Wert wird direkt in die Anfragezeile oben eingesetzt.

  • stringim Pfaderforderlich

    Order chunk UUID — 36 characters; neither a number nor a position.

    Take it from an item’s id field: GET /orders/{order}/items returns the list, and the same set sits in items[] of the detailed order response. The chunk’s position is the neighbouring chunk_index field, which does not go into the path.

    Der Wert wird direkt in die Anfragezeile oben eingesetzt.

Mögliche Antworten

200

Success. The payload is in data.

Beispiel für den Body
{
  "success": true,
  "message": "Success",
  "data": {
    "text": "Welcome to our platform! This narration greets every new listener.",
    "length": 66,
    "original_text_length": 240
  }
}
Felder der Antwort
successerforderlich

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
messageerforderlich

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
dataerforderlich

The response payload.

object
texterforderlich

The fragment’s text verbatim — all tags included. This is what you send to regenerate after editing.

string
lengtherforderlich

Full text length in characters, tags included.

integer
original_text_lengtherforderlich

Alias of free_length, kept for backward compatibility.

integer
free_lengtherforderlich

The largest already-paid length of the fragment: retries within it are free, beyond it a surcharge applies.

integer
billable_lengtherforderlich

How many characters of the current text are billed. Only our own pause tags {{pause=2s}} are free; [whisper] and <break/> reach the provider and are charged.

integer
max_raw_lengtherforderlich

Technical cap on the fragment length — how much the system will hand the worker in one piece, measured in capacity_unit. Exceeding it yields 422.

integer
max_billable_lengtherforderlich

Cap on billable characters. Going over makes the regeneration more expensive or unavailable.

integer
surcharge_applieserforderlich

true means excess length carries a surcharge. Check it before calling regenerate so the charge is no surprise.

string
capacity_uniterforderlich

Unit of max_raw_length and raw_length: chars — characters, utf8_bytes — UTF-8 bytes (Fish Audio caps a request in bytes: a Cyrillic letter is 2 bytes, a Latin one is 1).

string
raw_lengtherforderlich

Length of the current text in capacity_unit — the value compared against max_raw_length.

integer
401

The key is missing, unknown, disabled or expired.

Diese Antwort analysieren
Beispiel für den Body
{
  "success": false,
  "message": "API key is missing. Provide it in the X-API-KEY header.",
  "data": null
}
Felder der Antwort
successerforderlich

Always false in error responses.

boolean
messageerforderlich

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

string
dataerforderlich

Always null when the request is rejected before processing.

darf null sein
null
403

The key lacks the required permission, or the object belongs to another user.

Diese Antwort analysieren
Beispiel für den Body
{
  "success": false,
  "message": "This API key does not have permission to perform this action."
}
Felder der Antwort
messageerforderlich

Error overview.

string
404

Not found, or not reachable with this key.

Diese Antwort analysieren
Beispiel für den Body
{
  "success": false,
  "message": "Resource not found."
}
Felder der Antwort
messageerforderlich

Error overview.

string
422

Validation error. Offending fields are listed in errors.

Diese Antwort analysieren
Beispiel für den Body
{
  "success": true,
  "message": "string",
  "reason": "string",
  "error_code": "string"
}
Felder der Antwort
successerforderlich

Always false in error responses.

boolean
messageerforderlich

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

string
reasonerforderlich

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

string
error_codeerforderlich

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

string

Ereignisse, die dabei entstehen

Der Fortschritt kommt über WebSocket: Der Auftrag muss nicht in einer Schleife abgefragt werden. Das Abonnement braucht dasselbe Recht wie das Lesen von Aufträgen.

Diese Seite einer KI geben

.md öffnenllm.md

Spezifikation 0.0.1