media
Get an AI generation Running, succeeded (with the media file) or failed (credits given back). wait_seconds (55 at most) waits for it to finish. Kept 7 days.
GET /v1/sites/{site_id}/media/generations/{generation_id}
Requires sites:read. Costs no credits.
status is running, succeeded (with media, its path and type) or failed (with error and credits_refunded: the credits were given back). wait_seconds, 55 at most, waits for it to finish before answering. A generation can be read back for 7 days.
Authorizations Authorizationbearer in header required
Path parameters site_idstring required
The site's id, or its slug (the address before .atelier201.page).
generation_idstring required
Query parameters wait_secondsinteger range: 0–55
dataRecord<string, object> required
Show child attributes data. idstring
The generation's id: GET it until status is succeeded or failed.
data. statusenum<string> one of: running, succeeded, failed
data. mediaobject | null
Show child attributes data.media. pathstring required
data.media. url_pathstring required
data.media. mimestring required
data.media. sizeinteger required range: -9007199254740991–9007199254740991
data.media. altstringnull required
data.media. creditstringnull required
Who made it, where a licence asks for it: "Photo by Jane Doe on Pixabay", "Generated with Seedream 5 Lite (ByteDance)". Null for an upload.
data.media. keep_originalboolean required
Stored exactly as uploaded, and never re-encoded by a build. Otherwise a picture over 200 KB is compressed when it arrives (2000 px at most, towards 150 KB, quality 75 or more, metadata removed).
data. creditsinteger | null
data. credits_refundedinteger | null
Given back after a failure.
data. estimated_creditsinteger range: -9007199254740991–9007199254740991
estimate_only: the exact price it would cost.
data. balancenumber
estimate_only: the workspace's credits now.
data. next_actionstringnull required
Possible codes: invalid_request, unknown_field, invalid_parameter, invalid_cursor
errorobject required
Show child attributes error. messagestring required
error. docs_urlstring required
error. action_urlstring<uri>
error. detailsRecord<string, object>
Possible codes: authentication_required, invalid_api_key, api_key_expired, api_key_revoked
errorobject required
Show child attributes error. messagestring required
error. docs_urlstring required
error. action_urlstring<uri>
error. detailsRecord<string, object>
Possible codes: insufficient_credits
errorobject required
Show child attributes error. messagestring required
error. docs_urlstring required
error. action_urlstring<uri>
error. detailsRecord<string, object>
Possible codes: insufficient_scope, feature_not_available, admin_required
errorobject required
Show child attributes error. messagestring required
error. docs_urlstring required
error. action_urlstring<uri>
error. detailsRecord<string, object>
Possible codes: resource_not_found
errorobject required
Show child attributes error. messagestring required
error. docs_urlstring required
error. action_urlstring<uri>
error. detailsRecord<string, object>
Possible codes: conflict, result_not_ready, idempotency_key_reused
errorobject required
Show child attributes error. messagestring required
error. docs_urlstring required
error. action_urlstring<uri>
error. detailsRecord<string, object>
Possible codes: result_expired
errorobject required
Show child attributes error. messagestring required
error. docs_urlstring required
error. action_urlstring<uri>
error. detailsRecord<string, object>
Possible codes: request_too_large
errorobject required
Show child attributes error. messagestring required
error. docs_urlstring required
error. action_urlstring<uri>
error. detailsRecord<string, object>
Possible codes: request_too_large_for_plan
errorobject required
Show child attributes error. messagestring required
error. docs_urlstring required
error. action_urlstring<uri>
error. detailsRecord<string, object>
Possible codes: rate_limited
errorobject required
Show child attributes error. messagestring required
error. docs_urlstring required
error. action_urlstring<uri>
error. detailsRecord<string, object>
Possible codes: internal_error
errorobject required
Show child attributes error. messagestring required
error. docs_urlstring required
error. action_urlstring<uri>
error. detailsRecord<string, object>
Possible codes: service_unavailable
errorobject required
Show child attributes error. messagestring required
error. docs_urlstring required
error. action_urlstring<uri>
error. detailsRecord<string, object>