How it works
1
Start the work
A
POST, like POST /api/v1/snacks, reserves the credits and returns 201 with a jobId and a pollUrl.2
Poll the job
Call
GET /api/v1/jobs/{id} every 5 to 10 seconds.3
Read the result
Stop when
status is completed, failed or cancelled. On completed, the output is in result.Start response
pollUrl is a path. Put https://www.vidguy.ai in front of it.
A few endpoints have their own poll URL instead of the jobs endpoint, for example Studio and Seedance generations, AI Edit projects and dubs. The start response always tells you where to poll.
Job states
Credits and refunds
- Reserved up front. The start call holds the credits in
creditsReserved. - Settled at the end.
creditsFinalshows what you paid. On the first poll aftercompletedit can still benull. The next poll shows the number. - Refunded on failure. A failed job gives its credits back. You do not need to do anything.
- Timeouts. A snack job still not done after 15 minutes is marked
failedand refunded. A TikTok carousel batch gets 10 minutes.

