获取任务详情(支持批量)
curl --request GET \
--url https://api.clipzap.ai/v1/faceswap-opanpai/listbyids \
--header 'X-ClipZap-Apikey: <x-clipzap-apikey>'import requests
url = "https://api.clipzap.ai/v1/faceswap-opanpai/listbyids"
headers = {"X-ClipZap-Apikey": "<x-clipzap-apikey>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-ClipZap-Apikey': '<x-clipzap-apikey>'}};
fetch('https://api.clipzap.ai/v1/faceswap-opanpai/listbyids', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.clipzap.ai/v1/faceswap-opanpai/listbyids",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-ClipZap-Apikey: <x-clipzap-apikey>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.clipzap.ai/v1/faceswap-opanpai/listbyids"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-ClipZap-Apikey", "<x-clipzap-apikey>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.clipzap.ai/v1/faceswap-opanpai/listbyids")
.header("X-ClipZap-Apikey", "<x-clipzap-apikey>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.clipzap.ai/v1/faceswap-opanpai/listbyids")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-ClipZap-Apikey"] = '<x-clipzap-apikey>'
response = http.request(request)
puts response.read_body{
"list": [
{
"id": {},
"imageUrl": "<string>",
"videoUrl": "<string>",
"userId": 123,
"objectId": "<string>",
"title": "<string>",
"status": "<string>",
"taskId": "<string>",
"footageId": "<string>",
"videoId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>",
"publishStatus": 123,
"duration": 123,
"error": "<string>",
"Footage": {
"id": 123,
"type": "<string>",
"name": "<string>",
"card": "<string>",
"cardId": "<string>",
"workflowId": "<string>",
"status": "<string>",
"cover": "<string>",
"objectId": "<string>",
"userId": 123,
"webId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"trashedAt": "<string>",
"removedAt": "<string>",
"videoQty": 123
},
"Video": {
"id": 123,
"userId": 123,
"objectId": "<string>",
"footageId": "<string>",
"name": "<string>",
"width": 123,
"height": 123,
"size": 123,
"duration": 123,
"suffix": "<string>",
"webId": "<string>",
"status": "<string>",
"originUrl": "<string>",
"videoUrl": "<string>",
"coverUrl": "<string>",
"audioUrl": "<string>",
"avatars": "<string>",
"audioText": "<string>",
"uploadAt": "<string>"
}
}
]
}Endpoint Examples
Fetch Face-Swap Task
GET
/
v1
/
faceswap-opanpai
/
listbyids
获取任务详情(支持批量)
curl --request GET \
--url https://api.clipzap.ai/v1/faceswap-opanpai/listbyids \
--header 'X-ClipZap-Apikey: <x-clipzap-apikey>'import requests
url = "https://api.clipzap.ai/v1/faceswap-opanpai/listbyids"
headers = {"X-ClipZap-Apikey": "<x-clipzap-apikey>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-ClipZap-Apikey': '<x-clipzap-apikey>'}};
fetch('https://api.clipzap.ai/v1/faceswap-opanpai/listbyids', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.clipzap.ai/v1/faceswap-opanpai/listbyids",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-ClipZap-Apikey: <x-clipzap-apikey>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.clipzap.ai/v1/faceswap-opanpai/listbyids"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-ClipZap-Apikey", "<x-clipzap-apikey>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.clipzap.ai/v1/faceswap-opanpai/listbyids")
.header("X-ClipZap-Apikey", "<x-clipzap-apikey>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.clipzap.ai/v1/faceswap-opanpai/listbyids")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-ClipZap-Apikey"] = '<x-clipzap-apikey>'
response = http.request(request)
puts response.read_body{
"list": [
{
"id": {},
"imageUrl": "<string>",
"videoUrl": "<string>",
"userId": 123,
"objectId": "<string>",
"title": "<string>",
"status": "<string>",
"taskId": "<string>",
"footageId": "<string>",
"videoId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>",
"publishStatus": 123,
"duration": 123,
"error": "<string>",
"Footage": {
"id": 123,
"type": "<string>",
"name": "<string>",
"card": "<string>",
"cardId": "<string>",
"workflowId": "<string>",
"status": "<string>",
"cover": "<string>",
"objectId": "<string>",
"userId": 123,
"webId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"trashedAt": "<string>",
"removedAt": "<string>",
"videoQty": 123
},
"Video": {
"id": 123,
"userId": 123,
"objectId": "<string>",
"footageId": "<string>",
"name": "<string>",
"width": 123,
"height": 123,
"size": 123,
"duration": 123,
"suffix": "<string>",
"webId": "<string>",
"status": "<string>",
"originUrl": "<string>",
"videoUrl": "<string>",
"coverUrl": "<string>",
"audioUrl": "<string>",
"avatars": "<string>",
"audioText": "<string>",
"uploadAt": "<string>"
}
}
]
}⌘I