Fetch face swap result
curl --request POST \
--url https://modelslab.com/api/v6/faceswap/fetch/{id} \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>"
}
'{
"generationTime": 123,
"id": 123,
"output": [
"<string>"
],
"proxy_links": [
"<string>"
],
"meta": {
"init_image": "<string>",
"target_image": "<string>",
"reference_image": "<string>",
"seed": 123,
"temp": "<string>",
"file_prefix": "<string>",
"model_save_format": "<string>",
"watermark": "<string>",
"watermark_image": "<string>"
}
}Face Swap API
Fetch Video
Fetch Queued Request API returns queued or generated videos, useful for delayed processing.
POST
/
faceswap
/
fetch
/
{id}
Fetch face swap result
curl --request POST \
--url https://modelslab.com/api/v6/faceswap/fetch/{id} \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>"
}
'{
"generationTime": 123,
"id": 123,
"output": [
"<string>"
],
"proxy_links": [
"<string>"
],
"meta": {
"init_image": "<string>",
"target_image": "<string>",
"reference_image": "<string>",
"seed": 123,
"temp": "<string>",
"file_prefix": "<string>",
"model_save_format": "<string>",
"watermark": "<string>",
"watermark_image": "<string>"
}
}Note: This endpoint does not generate new videos; it only returns already generated or queued video generations.
Request
Send aPOST request to below endpoint to return the corresponding queued videos, where {id} is the ID returned together with the URL in the response upon its generation.
curl
--request POST 'https://modelslab.com/api/v6/faceswap/fetch/{id}' \
Body
json
{
"key": ""
}
Path Parameters
The ID of the face swap generation to fetch
Body
application/json
Your API Key used for authenticating your request
Response
Fetch response
- Option 1
- Option 2
Available options:
success Time taken to generate the result in seconds
Unique identifier for the generation request
Array of URLs to the generated images
Array of proxy URLs for the generated images
Metadata about the generation process and parameters used
Show child attributes
Show child attributes
Was this page helpful?
⌘I

