Read an existing generation
GenerationResult
Variables
content field for this flow. Media visibility is
checked for the authenticated account. A null content result provides no
successful-completion proof; inspect errors and the saved receipt before taking
another action.
Interpret task status
current and total describe progress; queued indicates a waiting running
task. A full progress counter alone does not prove success. finishCode can be
absent before completion. Common finish codes are 0 (success), 1 (failure),
2 (pause), and 3 (cancel).
Use a bounded interval and waiting deadline chosen for your client. Reaching
that deadline does not cancel server-side work. Resume reading the same content
instead of repeating the creation mutation.
Read a known task
TaskById
Variables
resourceId is the content ID. Use the task ID
returned by the generation mutation.
Read the credits a task consumed
credit lists the credits the task consumed as one entry per category
(common, ultraS), using the same category and amount shape and unit as
creditBalances on the account. The entries show what
was charged when the task was created and are always positive.
- A refund for a task that did not succeed is not deducted. Read
statusandprogress.finishCodeseparately to learn whether the task succeeded. - An empty list means no credits were charged for the task.
creditisnullwhen the authenticated account does not own the task, so a task read through someone else’s public media never reveals what it cost.
Task, including the
task selection in the examples above.
Obtain download URLs
After successful completion, request a download URL for an output media ID:DownloadMedia
Variables
Reconcile your media history
When a submission receipt is missing, inspect account history rather than automatically resubmitting:PersonalMediaHistory
Variables
nextCursorId as page.previousId for the next page and stop when
hasMore is false. Keep filters unchanged across pages. Optional
filter: PersonalMediaFilter accepts modelId, mediaTypes, and fileTypes.
Omitted mediaTypes uses the personal history’s default media types; omitted
fileTypes allows all file types. An empty list matches no media. History can
help identify an existing operation, but an empty page
does not prove that an uncertain mutation was never accepted.