Skip to content

Can model failover create duplicate paid image requests?

Failover must distinguish a rejected request from an accepted request whose response was lost. The current image submission logic advances only after specific confirmed admission rejections; it does not blindly retry timeouts or 5xx responses. Your client should also keep a stable idempotency key and job reference.

CHOOSE SUPPORTED MODEL WORKFLOWSAISwapLab team · Editorial methodPublished 2 min read
Open PlaygroundExplore 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

A second key or route is not permission to duplicate uncertain work. Exactly-once accounting at the site and provider-side acceptance are related but different concerns, so uncertainty must remain visible.

What to do next

  1. 01

    Prepare the right context

    Create one logical request identity and save its payload with the returned job reference. Do not generate a new idempotency key after every connection problem.

  2. 02

    Follow the supported workflow

    If the response is ambiguous, inspect the existing task and usage record. Avoid running an additional paid request through another alias as an improvised fallback.

  3. 03

    Verify before continuing

    Reconcile the final state and credit record before a deliberate new attempt. When reporting a possible duplicate, provide safe job references rather than API keys.

A concrete example

Illustrative failure: the connection drops after submission. A fresh request through another model could create a second output even if the first provider accepted the original task.

Before you call it ready

  • Create one logical request identity and save its payload with the returned job reference.
  • If the response is ambiguous, inspect the existing task and usage record.
  • Reconcile the final state and credit record before a deliberate new attempt.

When to stop or choose another method

Stop automatic retries when acceptance is unknown. A backup route is useful only when the admission and accounting rules can justify using it.

Sources

Your video. Your characters.

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

Open Playground