API reference
Generate images synchronously
/v1/images/generationsSynchronous requests validate parameters by model; only image capabilities supported by selected models are available. Qwen supports up to 6 images/3 reference images; Ark limits vary by model. Venice text-to-image produces one image and does not support reference images. Ordinary API files follow the day-based storage policy and are not equivalent to persistent image tasks.
Boundaries for synchronous output
Qwen supports up to 6 outputs and 3 reference images; Ark limits vary by model, and Venice only provides single-image text-to-image generation. Select a model first, then send its corresponding fields. Do not send reference-image requests to models that do not support them.
For quote confirmation, long-term history, and disconnect recovery, use the persistent image workflow rather than automatically repeating synchronous generation requests. File archival headers in synchronous responses only describe the saving stage. Ordinary file retention differs from task reference protection; see Billing.
Authentication and permissions
Use your current GloopAPI key. Available models, capabilities and permissions depend on its catalog and the endpoint documentation.
Authorization: Bearer $GLOOP_API_KEYAuthentication schemes: BearerAuth
Request
Request body · application/json
- Type
- object
- Required fields
modelprompt
Request body required
image_urlsarrayOptionalModel-specific list of reference image URLs. Qwen/Ark have their own limits; Venice synchronous text-to-image rejects this field.
image_urls child fields (1)
[]stringOptional
modelstringRequiredPublic model ID from the current key's catalog.
promptstringRequiredGeneration prompt.
nintegerOptionalRequested output image count, still constrained by the selected model's maximum.
sizestringOptionalSize value returned by the selected image-models entry; capabilities and sizes are validated per model.
response_formatstringOptionalModel-specific output format; do not assume every model supports every format.
userunknownOptionalJSON value defined by the selected tool's schema or protocol; do not assume fixed fields.
extra_bodyunknownOptionalJSON value defined by the selected tool's schema or protocol; do not assume fixed fields.
Responses and errors
HTTP 200
Images generated synchronously successfully
application/json
- Type
- object
- Required fields
createddata
createdintegerRequiredImage response generation time in Unix seconds.
dataarrayRequiredArray of data for the current page/catalog.
data child fields (1)
[]objectOptional[] child fields (7)
file_idstringOptionalPublic ID of a managed file for the same account and key.
storage_statusstringOptionalFile archival status; managed downloads are only guaranteed after ready.
storage_errorstringOptionalPublic category for file archival failure.
expires_atintegerOptionalExpiration in Unix seconds; 0 means no fixed expiration.
urlstringOptionalAccess URL for a result or reference; signed URLs are only valid briefly.
b64_jsonstringOptionalImage Base64 string; do not request it as a URL.
revised_promptstringOptionalRevised prompt returned by the service, if any.
HTTP 400
Invalid request fields or parameters.
application/json
- Type
- object
- Required fields
error
errorobjectRequirederror child fields (4)
codestringOptionalmessagestringOptionaltypestringOptionalrequest_idstringOptional
HTTP 401
The key is missing, invalid, expired, or revoked.
application/json
- Type
- object
- Required fields
error
errorobjectRequirederror child fields (4)
codestringOptionalmessagestringOptionaltypestringOptionalrequest_idstringOptional
HTTP 403
Insufficient IP, account, model, or tool permissions.
application/json
- Type
- object
- Required fields
error
errorobjectRequirederror child fields (4)
codestringOptionalmessagestringOptionaltypestringOptionalrequest_idstringOptional
HTTP 404
Object/capability unavailable, or feature switch disabled.
application/json
- Type
- object
- Required fields
error
errorobjectRequirederror child fields (4)
codestringOptionalmessagestringOptionaltypestringOptionalrequest_idstringOptional
HTTP 409
Idempotency/quote conflict, object not ready, or still referenced.
application/json
- Type
- object
- Required fields
error
errorobjectRequirederror child fields (4)
codestringOptionalmessagestringOptionaltypestringOptionalrequest_idstringOptional
HTTP 429
Request/queue rate limit.
application/json
- Type
- object
- Required fields
error
errorobjectRequirederror child fields (4)
codestringOptionalmessagestringOptionaltypestringOptionalrequest_idstringOptional
HTTP 500
Internal authentication or data storage failure.
application/json
- Type
- object
- Required fields
error
errorobjectRequirederror child fields (4)
codestringOptionalmessagestringOptionaltypestringOptionalrequest_idstringOptional
HTTP 503
Service, pricing, or storage unavailable.
application/json
- Type
- object
- Required fields
error
errorobjectRequirederror child fields (4)
codestringOptionalmessagestringOptionaltypestringOptionalrequest_idstringOptional