Fetch queued images (Real-Time)
curl --request POST \
--url https://modelslab.com/api/v6/realtime/fetch/{id} \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>"
}
'{
"generationTime": 123,
"id": 123,
"output": [
"<string>"
],
"proxy_links": [
"<string>"
],
"meta": {},
"nsfw_content_detected": true
}Realtime API
Fetch Image
This endpoint is used to fetch queued images.
POST
/
realtime
/
fetch
/
{id}
Fetch queued images (Real-Time)
curl --request POST \
--url https://modelslab.com/api/v6/realtime/fetch/{id} \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>"
}
'{
"generationTime": 123,
"id": 123,
"output": [
"<string>"
],
"proxy_links": [
"<string>"
],
"meta": {},
"nsfw_content_detected": true
}Request
Send aPOST request to below endpoint to return the corresponding queued images.
curl
--request POST 'https://modelslab.com/api/v1/enterprise/realtime/fetch/{id}' \
Body
json
{
"key": "enterprise_api_key"
}
Path Parameters
The ID returned with the image URL in the response upon its generation.
Body
application/json
Your API Key used for request authorization.
Response
Fetched image response
- Option 1
- Option 2
- Option 3
Status of the image generation.
Available options:
success Time taken to generate the image in seconds.
Unique identifier for the image generation request.
Array of generated image URLs.
Array of proxy image URLs.
Metadata about the image generation including all parameters used.
Indicates if NSFW content was detected in the generated image.
Was this page helpful?
⌘I

