The output must cross a delivery boundary
AISwapLab processes provider media before private storage. Images have metadata removed and dimensions checked, and video metadata is cleaned. Retrieval, sanitization or storage trouble can therefore occur after the upstream model produced something. Those processing steps do not certify visual correctness or remove every kind of information from the depicted content. Explain the pending delivery stage without exposing a raw provider route or claiming a customer file is already available.
What to do next
- 01
Keep the same job visible
Display saving as a pending state and preserve the task ID. Avoid resetting the user to an empty form that encourages a second Generate action.
- 02
Continue bounded status checks
Poll the existing route at an appropriate interval and retain safe error messages if the state changes. Do not fetch /content repeatedly before a completed result exists.
- 03
Verify the finished download
Once completed, request the authenticated content route and validate response status, MIME type and file readability. Confirm delivery separately from the user's creative approval.
A concrete example
Illustrative sequence: an image provider returns bytes, but the customer job remains saving while the private PNG is sanitized and stored. The application should wait for the same job rather than interpreting the delay as a request to regenerate.
Delivery boundary states
| Observed state | Allowed presentation | Next evidence |
|---|---|---|
| Provider finished; customer job saving | Output is still being prepared | Existing job reaches completed and offers content_url |
| Customer job completed | Ready to attempt authorized retrieval | Actual HTTP response and complete artifact |
| Local artifact validated | Technically delivered | Separate creative acceptance against the brief |
Before you call it ready
- Saving is shown as pending.
- Provider completion is not called customer delivery.
- The completed file is checked before presentation.
When to stop or choose another method
If saving remains stuck, investigate the existing job and storage condition. Repeated paid generation can create more undelivered results without resolving the delivery problem.
