Skip to content

What information should an API usage log show for a failed request?

A useful failed-request log identifies the logical job, model, timestamps, terminal or uncertain state, quoted credits and any confirmed credit return. It should help reconcile one action without exposing provider credentials or unrelated customer data. A failure label alone cannot explain whether acceptance was uncertain.

USE THE CUSTOMER API CONSOLEAISwapLab team · Editorial methodPublished 2 min read
Open API consoleExplore 67 Image Skills4.44 free welcome credits · No subscription
Article workflow: Prepare the right context; Follow the supported workflow; Verify before continuing.
Workflow diagram: Prepare the right context → Follow the supported workflow → Verify before continuing. Read the article for evidence and limits.

Understand this workflow decision

Request admission, provider processing and media saving can fail at different stages. A client timeout can also occur while the original job still exists. Those cases need different follow-up actions.

What to do next

  1. 01

    Prepare the right context

    Find the job reference associated with the original request and idempotency key. Compare its model and creation time with the action you intended.

  2. 02

    Follow the supported workflow

    Read the current state and safe error explanation. Distinguish a confirmed failed request from an unknown or still-processing task before deciding on a retry.

  3. 03

    Verify before continuing

    Compare the quote, settlement and any refund associated with that job. Report discrepancies through private support with the safe reference rather than copying an entire secret-bearing debug log.

A concrete example

Illustrative review: an unknown task after a dropped connection should remain visible as uncertain work, not be rewritten as a harmless failed request just to permit another paid submission.

Before you call it ready

  • Find the job reference associated with the original request and idempotency key.
  • Read the current state and safe error explanation.
  • Compare the quote, settlement and any refund associated with that job.

When to stop or choose another method

Do not treat every network error as proof of no charge. Reconcile the logical job before creating a new attempt.

Sources

Your video. Your characters.

Choose a scene, check the people, then add your photos.

Open API console