Represent acceptance, processing, delivery and approval as different milestones
A generic green badge for any 2xx response hides important states. The job schema includes queued, submitting, running, unknown, saving, completed and failed. Unknown is an unconfirmed outcome, not an instruction to create replacement work. Saving is delivery preparation, not proof that the user's file is ready. Even completed establishes technical result handling rather than likeness, accurate text or stable motion. Keep those distinctions in your application and its support record.
What to do next
- 01
Parse and retain the durable response
Record the returned object kind, job ID and poll_url where provided, associated with the approved application task. A response code alone is not enough to choose the UI. Preserve an uncertain chat job too; do not display it as a confirmed blank answer or discard it because no completion text arrived immediately.
- 02
Follow the existing lifecycle
Observe the documented job route on a bounded schedule and keep errors separate from the last confirmed state. Retain unknown outcomes for reconciliation; follow the documented support route when no provider outcome can be established. Do not create a new idempotency key because a task has not reached completed yet.
- 03
Validate delivery and user acceptance
When media is completed and a content route exists, retrieve it with the required authentication and validate the expected artifact. Then let the user inspect the actual still or entire clip. For a confirmed text completion, review returned content and usage without inferring unsupported browsing, tool use or factual correctness.
A concrete example
Illustrative replay: a lost creation response leads the client to recover with the same request identity. It receives HTTP 200 and the original job with status=running. The correct display remains processing, not finished. Later completed provides a content route, whose downloaded video still requires identity and motion review. A different 200 response containing a confirmed chat completion follows the text-review path instead of being forced into a media-job parser.
Observed state and next action
| Observation | What to do |
|---|---|
| 202 job or 200 job replay | Save ID; read actual job state |
| running / saving | Observe existing work |
| unknown | Preserve uncertainty; reconcile outcome |
| completed + content_url | Privately download and review |
| 200 confirmed chat completion | Review text and measured usage |
Before you call it ready
- HTTP code, object kind and job state are stored separately.
- Unknown work keeps its original identity.
- File availability and creative or factual acceptance are verified after technical completion.
When to stop or choose another method
Stop labeling all successful HTTP responses finished. If the client cannot represent an unfinished or uncertain job, repair that lifecycle handling before enabling paid creation for users.
