estimated_completion_at, the instant the
job is estimated to finish, and progress, the estimated fraction of the job
completed. Use them to tell your users how long a generation will take.
Where the estimate appears
POST /v3/models/{id}/estimate returns a price: the cost in US dollars that
submitting the same input would charge. It creates no job, so it has no
completion time. Submit the job to get one.
Poll the status endpoint
When it is null
- The job has finished. Once
statusisCOMPLETEDorFAILED,estimated_completion_atis null. A completed job reportsprogressof 1. - No estimate is available for the job. Some models publish no estimate,
such as the text-to-speech models. Their jobs report a null
estimated_completion_atfrom submission to completion, and the status endpoint reportsprogressof 0 until the job completes.
Treat it as a rough guide
- The estimate is a guide rather than a deadline. A job can finish well before it, so show an approximate time, such as “about 3 minutes”, instead of a countdown to the second.
- A job can run longer than its first estimate. Once the current time passes the first estimate you showed, tell your users that the job is taking longer than expected.
- Hedra computes
progressfrom the time since submission and the job’s completion estimate. It is only as accurate as the estimate, and it stays below 1 until the job completes.