Search this portfolio

Live provider pilot

One approval, one paid job

The first status check on a paid video-generation request returned HTTP 202. The adapter put the job into review. At that moment the original request already had a provider ID, and my approval covered one generation. Submitting it again would have introduced a second paid request while the first was still unresolved.

I used one synthetic image of a lamp and requested a five-second silent clip. That kept the operational question visible. Could the adapter preserve the relationship between the request I approved, the job the provider accepted, the file it returned, and the charge?

Recovering the existing job

The correction was in the status handler. A 202 response to a status check meant the job was pending. The worker resumed polling the existing ID. The record shows one submission and two status checks against that ID. The returned clip’s SHA-256 digest matches the digest in the completion record, so a reviewer can identify the exact file the adapter received.

Reconciling the charge

The approved amount, provider-reported charge, and filtered daily usage all came to $0.11. The usage detail split that into $0.10 for video generation and $0.01 for the input image. The daily export contains no request ID. Attributing that amount to this job depended on the date, model, filtered key, and the adapter’s single recorded submission.

A small charge made this a practical live test. The consequential design decision was to retain the accepted job ID before recovery. It gave the operator a way to finish the authorized work without buying it twice.