Fetch queued images
curl --request POST \
--url https://modelslab.com/api/v6/images/fetch \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"request_id": "<string>"
}
'{
"status": "success",
"generationTime": 123,
"id": 123,
"output": [
"<string>"
],
"proxy_links": [
"<string>"
],
"meta": {},
"nsfw_content_detected": true,
"webhook_status": "<string>",
"tip": "<string>"
}Community Models
Fetch Queued Images
Fetch Queued Images API fetches queued images.
POST
/
fetch
Fetch queued images
curl --request POST \
--url https://modelslab.com/api/v6/images/fetch \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"request_id": "<string>"
}
'{
"status": "success",
"generationTime": 123,
"id": 123,
"output": [
"<string>"
],
"proxy_links": [
"<string>"
],
"meta": {},
"nsfw_content_detected": true,
"webhook_status": "<string>",
"tip": "<string>"
}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,specified by the request_id parameter in the request body.
curl
--request POST 'https://modelslab.com/api/v6/images/fetch' \
Body
json
{
"key": "your_api_key",
"request_id": "your_request_id"
}
Body
application/json
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.
Status of the webhook notification.
Additional information or tips for the user.
Was this page helpful?
⌘I

