When an AI Image Job Times Out, Should Retry Create a New Job?

●2 ●20 ●58
calendar_today ago • schedule1 min read

A photographer submits a batch of property photos for AI enhancement. The browser times out before it receives a job ID. Clicking Retry could recover the existing job, or create another paid batch while the first is still running.

The timeout only tells the client it did not receive a usable response. It does not prove the server did nothing.

Stripe’s idempotent-request documentation provides a concrete example of reusing an operation key to avoid duplicate work after a connection error. An image-processing service would need its own explicit contract; a payment API’s behavior should not be assumed to apply automatically.

For a proposed image-job API, I would separate:

  • Retry this submission: same operation key and unchanged inputs, recover its status or result.
  • Generate another version: new operation, with any credit cost visible before submission.
  • Change the inputs: explicitly create a new request rather than silently reusing the old key.

The difficult case is an unknown outcome: no response, no job ID in the browser, and credits possibly reserved. How would your API let the user recover that job safely? Would you require the client to save an operation ID before submitting, and how would you handle key expiry?

This is a design scenario, not a claim that a named platform currently double-charges. Disclosure: I work with Pixel Perfects Solutions LLC / EstateAI.

4 Comments

1 vote
1
1 vote
0
🔥 Join developers growing publicly
Share your knowledge, build in public, and grow your developer presence with a global community.

More Posts

The Zero-Net-Loss Fleet & The Mercenary Squad: A Live AI Economy

DEVPlank - Aug 4

Local-First: The Browser as the Vault

Pocket Portfolio - Apr 20

The Sovereign Vault — A Comprehensive Guide to Protocol-Driven AI

Ken W. Algerverified - Jun 4

Merancang Backend Bisnis ISP: API Pelanggan, Paket Internet, Invoice, dan Tiket Support

Masbadar - Mar 13

Should an AI Listing Draft Be Allowed to Overwrite Newer Agent Edits?

WAQAS AHMAD - Oct 20
chevron_left
2k Points • 80 Badges
Faisal Town Lahore B Block • dotera.co
29Posts
30Comments
28Connections
Waqas Ahmad is a Content Creator and Software Engineer passionate about building brands through cont... Show more

Related Jobs

View all jobs →

Commenters (This Week)

2 comments
1 comment
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!