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
- 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.
- 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.
- 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.
