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 top-level
task from submission rather than an internal processing task.
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.