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>"
}'
{
  "status": "success",
  "generationTime": 123,
  "id": 123,
  "output": [
    "<string>"
  ],
  "proxy_links": [
    "<string>"
  ],
  "meta": {},
  "nsfw_content_detected": true
}
This endpoint does not generate new images, it returns already generated/queued images.

Request

Send a POST request to below endpoint to return the corresponding queued images.
curl
--request POST 'https://modelslab.com/api/v6/realtime/fetch/{id}' \

Body

json
{ 
    "key": ""
}

Path Parameters

id
string
required

The ID returned with the image URL in the response upon its generation.

Body

application/json
key
string
required

Your API Key used for request authorization.

Response

Fetched image response

status
enum<string>

Status of the image generation.

Available options:
success
generationTime
number

Time taken to generate the image in seconds.

id
integer

Unique identifier for the image generation request.

output
string<uri>[]

Array of generated image URLs.

Array of proxy image URLs.

meta
object

Metadata about the image generation including all parameters used.

nsfw_content_detected
boolean

Indicates if NSFW content was detected in the generated image.