Beschreibungen auf Englisch
policy_flagged — chunk rejected by the content policy
Was passiert ist
This is not an HTTP error. The code comes as the value of OrderItem.status and as the reason in the skipped[] array of the 202 response to POST /orders/{order}/items/retry-failed. The order then moves to partially_completed. This status is not final: finished chunks stay in place, and rejected ones wait for action.
Warum
The generation provider rejected the chunk text under its content policy. Bulk retry skips such chunks: the same text would be rejected again. Chunks in failed (a technical failure), on the other hand, it picks up all at once.
Was jetzt zu tun ist
Fetch the current chunk text, rephrase the disputed fragment, and retry that chunk on its own with the new text. The API does not report the rejection reason, so edit at your discretion. Retry limits: no more than 5 attempts, and chunk retry is not available for sfx and music. GET /orders/{order}/items/{item}/text returns the length limits: within free_length a retry is free, up to max_billable_length it comes with a surcharge. POST /orders/{order}/retry does not fit here: it does not accept orders in partially_completed.
Welche Anfrage als Nächstes
GET /orders/{order}/items/{item}/text, then POST /orders/{order}/items/{item}/retry with the body {"text": "<corrected text>"} → 201 with the updated OrderItem. Within free_length, the retry uses the amount already held for the order and does not use the key token quota. A surcharge for extra length counts toward the key token quota.
Wohin als Nächstes
Diese Seite für KI
API-Version 1.0.0