Poll a generation
curl --request GET \
--url https://api.creatorline.io/v1/generations/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.creatorline.io/v1/generations/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.creatorline.io/v1/generations/{id}', 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.creatorline.io/v1/generations/{id}",
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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.creatorline.io/v1/generations/{id}"
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.creatorline.io/v1/generations/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.creatorline.io/v1/generations/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "generation",
"id": "3f6c1a2b-8d4e-4c11-9a77-2b8f0e5d1c93",
"status": "succeeded",
"tool": "ugc-video",
"model": "bytedance-seedance-2-0-reference-to-video-fast",
"output": [
{
"object": "asset",
"id": "9b2f7c10-4f3a-4a2b-9f10-77c3d2e1a8b4",
"file_type": "video",
"ratio": "9:16",
"duration_sec": 5,
"url": "https://cdn.creatorline.io/media/9b2f7c10/clip.mp4"
}
]
}{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "Missing or invalid API key."
},
"request_id": "req_8fQ2mRxK1pLd"
}{
"error": {
"type": "not_found_error",
"code": "resource_missing",
"message": "No such generation."
},
"request_id": "req_8fQ2mRxK1pLd"
}Generations
Poll a generation
queued → processing → succeeded | failed.
On success output[] carries the assets with resolved media URLs. Those URLs are
time-limited for stored objects — download the bytes rather than caching the link.
On failure, error explains why and the credits have already been refunded.
Poll every few seconds; a photo takes ~30s, a video several minutes.
GET
/
v1
/
generations
/
{id}
Poll a generation
curl --request GET \
--url https://api.creatorline.io/v1/generations/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.creatorline.io/v1/generations/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.creatorline.io/v1/generations/{id}', 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.creatorline.io/v1/generations/{id}",
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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.creatorline.io/v1/generations/{id}"
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.creatorline.io/v1/generations/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.creatorline.io/v1/generations/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "generation",
"id": "3f6c1a2b-8d4e-4c11-9a77-2b8f0e5d1c93",
"status": "succeeded",
"tool": "ugc-video",
"model": "bytedance-seedance-2-0-reference-to-video-fast",
"output": [
{
"object": "asset",
"id": "9b2f7c10-4f3a-4a2b-9f10-77c3d2e1a8b4",
"file_type": "video",
"ratio": "9:16",
"duration_sec": 5,
"url": "https://cdn.creatorline.io/media/9b2f7c10/clip.mp4"
}
]
}{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "Missing or invalid API key."
},
"request_id": "req_8fQ2mRxK1pLd"
}{
"error": {
"type": "not_found_error",
"code": "resource_missing",
"message": "No such generation."
},
"request_id": "req_8fQ2mRxK1pLd"
}Authorizations
bearerAuthapiKeyHeader
Your organization's API key, from Settings → MCP. Authorization: Bearer crl_sk_live_…
Path Parameters
Response
The generation.
Available options:
generation Available options:
queued, processing, succeeded, failed Show child attributes
Show child attributes
Present on failed. The credits were refunded.