cURL
curl --request GET \
--url https://api.ttapi.io/sora/fetch \
--header 'Content-Type: application/json' \
--header 'TT-API-KEY: <api-key>' \
--data '
{
"jobId": "<string>"
}
'import requests
url = "https://api.ttapi.io/sora/fetch"
payload = { "jobId": "<string>" }
headers = {
"TT-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'TT-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({jobId: '<string>'})
};
fetch('https://api.ttapi.io/sora/fetch', 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.ttapi.io/sora/fetch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'jobId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"TT-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.ttapi.io/sora/fetch"
payload := strings.NewReader("{\n \"jobId\": \"<string>\"\n}")
req, _ := http.NewRequest("GET", url, payload)
req.Header.Add("TT-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
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.ttapi.io/sora/fetch")
.header("TT-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"jobId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ttapi.io/sora/fetch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["TT-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"jobId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"message": "",
"jobId": "c679a92e-dae0-462d-b70f-dcfeaf2189fa",
"data": {
"model": "sora-2",
"prompt": "Style: Modern advertising, photorealism, iPhone photography. Scene: A coffee shop in downtown. A man in a light-colored shirt opens his laptop and drinks coffee. Camera: Close-up, slight zoom. Lighting: Soft light from the window, reflections on the table. Action: Looking up, smiling, typing",
"referImages": null,
"videoUrl": "https://cdn.ttapi.io/other/2025-10-10/35f50ab8-6f98-493d-94c4-5587ca246bb3.mp4",
"quota": "3",
"finishTime": "2025-10-10 07:24:42",
"hookUrl": null
}
}{
"status": "FAILED",
"message": "\"prompt\" cannot be empty.",
"data": {}
}{
"status": "FAILED",
"message": "Wrong TT-API-KEY or email is not activated."
}Sora Result Fetch
deprecated
Query current video generation results by jobId
GET
/
sora
/
fetch
cURL
curl --request GET \
--url https://api.ttapi.io/sora/fetch \
--header 'Content-Type: application/json' \
--header 'TT-API-KEY: <api-key>' \
--data '
{
"jobId": "<string>"
}
'import requests
url = "https://api.ttapi.io/sora/fetch"
payload = { "jobId": "<string>" }
headers = {
"TT-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'TT-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({jobId: '<string>'})
};
fetch('https://api.ttapi.io/sora/fetch', 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.ttapi.io/sora/fetch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'jobId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"TT-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.ttapi.io/sora/fetch"
payload := strings.NewReader("{\n \"jobId\": \"<string>\"\n}")
req, _ := http.NewRequest("GET", url, payload)
req.Header.Add("TT-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
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.ttapi.io/sora/fetch")
.header("TT-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"jobId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ttapi.io/sora/fetch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["TT-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"jobId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"message": "",
"jobId": "c679a92e-dae0-462d-b70f-dcfeaf2189fa",
"data": {
"model": "sora-2",
"prompt": "Style: Modern advertising, photorealism, iPhone photography. Scene: A coffee shop in downtown. A man in a light-colored shirt opens his laptop and drinks coffee. Camera: Close-up, slight zoom. Lighting: Soft light from the window, reflections on the table. Action: Looking up, smiling, typing",
"referImages": null,
"videoUrl": "https://cdn.ttapi.io/other/2025-10-10/35f50ab8-6f98-493d-94c4-5587ca246bb3.mp4",
"quota": "3",
"finishTime": "2025-10-10 07:24:42",
"hookUrl": null
}
}{
"status": "FAILED",
"message": "\"prompt\" cannot be empty.",
"data": {}
}{
"status": "FAILED",
"message": "Wrong TT-API-KEY or email is not activated."
}Authorizations
You can obtain your API key from the TTAPI Dashboard.
Body
application/json
Job ID of the generated video
Response
Video creation request successful
Task status: PENDING_QUEUE-queued, ON_QUEUE-processing, SUCCESS-success, FAILED-failed
Available options:
PENDING_QUEUE, ON_QUEUE, SUCCESS, FAILED Example:
"SUCCESS"
Response message: empty string on success, returns specific error reason on failure (e.g., 'insufficient quota', 'prompt violation')
Example:
""
Unique task identifier for querying task status or receiving callback notifications
Example:
"c679a92e-dae0-462d-b70f-dcfeaf2189fa"
Create video
- Create video
- Create character
- Remove watermark
Show child attributes
Show child attributes
Last modified on May 5, 2026
⌘I