Generate a failed speech again, without paying twice

A speech that failed after the payment settled charged nothing, so the payment is still on the wallet's balance. POST here with the failed run's claim ticket to try again on that balance, with the same settings it was sold with. Send {"text": "..."} to reword it (the fix for prompt_refused), or no body to use the original. Each failed run can be retried once. Waits and streams like the paid POST; "async": true or Prefer: respond-async answers at once (200, status running).

post/api/x402/speech/retry

Request

  • Base URL: https://www.trezalabs.com
  • URL: https://www.trezalabs.com/api/x402/speech/retry
  • Auth: HTTP bearer

Query parameters

runIdstring required

The failed run, from its status response.

tokenstring required

Signed claim ticket. The retryUrl carries both.

Headers

Preferstring

Optional. respond-async answers at once (200, status running) with a statusUrl to poll, like "async": true. wait=N sets how long the call waits, in seconds (default 45, at most 720), before it ends with status running and the statusUrl. Echoed in Preference-Applied.

Request body

textstring

A reworded input. Omit to use the original.

asyncboolean

true answers at once (200, status running) with a statusUrl to poll.

Response

The retry started and the response waited for it, streamed the same way as the paid POST. Same shape as the paid POST 200, plus retryOf and paidUsd 0.

Changes

No recorded changes to this operation across all 1 revision of this API.