Polls a Firefly async job until completion
The job result containing a statusUrl from the initial async response
Polling configuration options
The final job result when succeeded, with type automatically inferred from the job response
If max attempts or timeout is reached
If the job fails or is canceled
// Type is automatically inferred as GenerateImagesResponseV3const result = await pollJob(imageJob, { axiosRequestConfig: { headers } });// Type is automatically inferred as video result typeconst videoResult = await pollJob(videoJob, { axiosRequestConfig: { headers } }); Copy
// Type is automatically inferred as GenerateImagesResponseV3const result = await pollJob(imageJob, { axiosRequestConfig: { headers } });// Type is automatically inferred as video result typeconst videoResult = await pollJob(videoJob, { axiosRequestConfig: { headers } });
Polls a Firefly async job until completion