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 Stable Diffusion
Fetch Image
Fetch Queued Images API fetches queued images from stable diffusion.
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
}Documentation Index
Fetch the complete documentation index at: https://docs.modelslab.com/llms.txt
Use this file to discover all available pages before exploring further.
This endpoint does not generate new images, it returns already generated/queued images.
Request
Send aPOST request to below endpoint to return the corresponding queued images.
curl
--request POST 'https://modelslab.com/api/v6/realtime/fetch/{id}' \
Body
json
{
"key": "your_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

