Skip to content
Home

Get Result

Result queries can use the response_url from the create-task response, or build the request path with BASE_URL, endpoint, and request_id.

Terminal window
curl -sS "${RESPONSE_URL}" \
"${COMMON_HEADERS[@]}"

If the task has not reached a terminal state, the result endpoint returns HTTP 202 with a body that matches status queries:

{
"status": "IN_PROGRESS",
"request_id": "mmsu_01hxyz...",
"response_url": "https://cloud.seaart.ai/model/v1/queue/nano_banana_2/requests/mmsu_01hxyz.../response"
}

After a task succeeds, the result endpoint returns a stable structure: request_id, outputs, and metadata. Every downloadable or displayable result is placed in the outputs array. Multiple result URLs are returned as multiple records in order.

{
"request_id": "mmsu_01hxyz...",
"outputs": [
{
"type": "image",
"url": "https://example.com/image.png",
"content_type": "image/png",
"file_name": "image.png",
"width": 1024,
"height": 1024
}
],
"metadata": {
"prompt": "a cinematic photo of a cat astronaut"
}
}
FieldTypeDescription
typestringResult type. Common values are image, video, audio, model3d, text, and file
urlstringDownloadable or accessible result URL. Text results may omit this field
textstringText result content, such as generated lyrics
content_typestringResource MIME type, such as image/png or video/mp4
file_namestringFile name, returned when the platform can infer it
file_sizenumberFile size in bytes, returned when the platform can obtain it
width / heightnumberImage width and height, returned when the platform can obtain them
durationnumberAudio or video duration in seconds, returned when the platform can obtain it
metadataobjectAdditional information for a single output, omitted when there is no extra information