API reference
Get a persistent image quote
/v1/image-quotesOnly validates inputs and permissions; does not lock images. Quotes are valid for 60 seconds, and creation revalidates route/price/request. A disabled service switch returns 503.
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
modelpromptsize- Additional properties
- false
Request body required
modelstringRequiredPublic model ID from the current key's catalog.
- Maximum length
191
promptstringRequiredNonempty, at most 32000 UTF-8 bytes. OpenAPI maxLength counts characters, so no artificial character limit is specified.
sizestringRequiredSize value returned by the selected image-models entry; capabilities and sizes are validated per model.
nintegerOptionalOmitted or 0 values normalize to 1. The actual maximum is max_n from image-models; do not treat the global maximum as a model capability.
- Default value
1- Minimum
1- Maximum
6
referencesarrayOptionalSelect only one of file_id, asset_id, or url per item; actual quantity is governed by max_references.
- Maximum items
14
references child fields (1)
[]objectOptional[] child fields (3)
oneOf branch 1
Required in this branch: file_id
oneOf branch 2
Required in this branch: asset_id
oneOf branch 3
Required in this branch: url
source_task_idstringOptionalOptional source task belonging to the same key, for provenance only; does not replace references.
- Maximum length
64
quote_idstringOptionalMust be valid and match the request when creating a task; ignored in quote requests.
Responses and errors
HTTP 200
Persistent image quote retrieved successfully
application/json
- Type
- object
- Required fields
pricing_noteidexpires_atreserved_quotaestimated_costcurrency
pricing_notestringRequiredModel pricing description; final settlement uses confirmed metering.
idstringRequiredPublic identifier of this object, used for its corresponding detail path.
expires_atintegerRequiredExpiration in Unix seconds; 0 means no fixed expiration.
reserved_quotaintegerRequiredReserved quota in platform quota units, not a USD amount.
estimated_costnumberRequiredEstimated selling charge in the quote currency.
currencystringRequiredQuote/billing currency.
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