Tools
Generation
Design operations
Editing
Brand templates and autofill
Help
get-generate-image-job
Check the status of an image generation job and get the generated image.
Use get-generate-image-job to poll a job started by generate-image. Pass the jobId that generate-image returned.
Example responses
IDs below are placeholders; field names and structure are exactly as returned.
{"status": "SUCCESS","result": {"results": [ { "type": "MEDIA", "id": "MEDIA_EXAMPLE", "version": "1" } ]}}
JSON
A status of SUCCESS returns the generated image as a MEDIA reference in result.results. Use its id to refer to the image in other tools, such as in imageReferences when editing the image with generate-image.
While the job runs, the response is { "status": "PENDING" }. Continue polling with the same jobId until the status is SUCCESS or FAILURE. Don't start a new generation job just because the existing one is still pending.
If the job fails, the response contains a failureType and failureMessage:
{"status": "FAILURE","failureType": "SERVER_GENERIC","failureMessage": "Something went wrong while generating the image. Please try again."}
JSON