curl --request GET \
--url https://api.fiveapi.ai/v1/models/{brand}/{version}/{task} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fiveapi.ai/v1/models/{brand}/{version}/{task}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fiveapi.ai/v1/models/{brand}/{version}/{task}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fiveapi.ai/v1/models/{brand}/{version}/{task}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.fiveapi.ai/v1/models/{brand}/{version}/{task}")
.header("Authorization", "Bearer <token>")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fiveapi.ai/v1/models/{brand}/{version}/{task}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}Get a model
Returns one model by id, for example GET /v1/models/wan/v3.0-spark/image-to-video. An unknown id answers
404 model_not_found; a model that exists but is not available answers 400 unsupported_model.
Scope: any valid key.
curl --request GET \
--url https://api.fiveapi.ai/v1/models/{brand}/{version}/{task} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fiveapi.ai/v1/models/{brand}/{version}/{task}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fiveapi.ai/v1/models/{brand}/{version}/{task}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fiveapi.ai/v1/models/{brand}/{version}/{task}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.fiveapi.ai/v1/models/{brand}/{version}/{task}")
.header("Authorization", "Bearer <token>")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fiveapi.ai/v1/models/{brand}/{version}/{task}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}Authorizations
Your API key from the developer console, sent as Authorization: Bearer sk_live_....
The x-api-key: sk_live_... header is accepted as an alternative.
Path Parameters
First segment of the model id.
video-fast, wan "wan"
Second segment of the model id.
v1.0, v1.1, v3.0-spark, v3.0-prime-spark "v3.0-spark"
Third segment of the model id, the task type.
text-to-video, image-to-video, reference-to-video, video-extend "image-to-video"
Response
The model.
{brand}/{version}/{task}, also the path of its create endpoint.
"wan/v3.0-spark/image-to-video"
"model""Wan 3.0 Spark — image to video"
text-to-video, image-to-video, reference-to-video, video-extend enabled, disabled JSON Schema of the request body. x-max-input-bytes gives the largest accepted input file.
Reserved for a public price view. Omitted today; prices are listed in the developer console, and every task shows its price as credits.estimated.