curl --request POST \
--url https://apis.viggle.ai/v1/scenes/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sessionId": "living-room-01",
"referenceBatchIds": [
"<string>"
],
"targetC2w": [
[
1,
0,
0,
0
],
[
0,
1,
0,
0
],
[
0,
0,
1,
0
],
[
0,
0,
0,
1
]
],
"targetPosition": {
"position": [
0.5,
1.2,
0
],
"yaw": 30,
"pitch": -10
},
"projection": "perspective",
"fov": 80,
"seed": 1
}
'import requests
url = "https://apis.viggle.ai/v1/scenes/generate"
payload = {
"sessionId": "living-room-01",
"referenceBatchIds": ["<string>"],
"targetC2w": [[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]],
"targetPosition": {
"position": [0.5, 1.2, 0],
"yaw": 30,
"pitch": -10
},
"projection": "perspective",
"fov": 80,
"seed": 1
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
sessionId: 'living-room-01',
referenceBatchIds: ['<string>'],
targetC2w: [[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]],
targetPosition: {position: [0.5, 1.2, 0], yaw: 30, pitch: -10},
projection: 'perspective',
fov: 80,
seed: 1
})
};
fetch('https://apis.viggle.ai/v1/scenes/generate', 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://apis.viggle.ai/v1/scenes/generate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'sessionId' => 'living-room-01',
'referenceBatchIds' => [
'<string>'
],
'targetC2w' => [
[
1,
0,
0,
0
],
[
0,
1,
0,
0
],
[
0,
0,
1,
0
],
[
0,
0,
0,
1
]
],
'targetPosition' => [
'position' => [
0.5,
1.2,
0
],
'yaw' => 30,
'pitch' => -10
],
'projection' => 'perspective',
'fov' => 80,
'seed' => 1
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://apis.viggle.ai/v1/scenes/generate"
payload := strings.NewReader("{\n \"sessionId\": \"living-room-01\",\n \"referenceBatchIds\": [\n \"<string>\"\n ],\n \"targetC2w\": [\n [\n 1,\n 0,\n 0,\n 0\n ],\n [\n 0,\n 1,\n 0,\n 0\n ],\n [\n 0,\n 0,\n 1,\n 0\n ],\n [\n 0,\n 0,\n 0,\n 1\n ]\n ],\n \"targetPosition\": {\n \"position\": [\n 0.5,\n 1.2,\n 0\n ],\n \"yaw\": 30,\n \"pitch\": -10\n },\n \"projection\": \"perspective\",\n \"fov\": 80,\n \"seed\": 1\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.post("https://apis.viggle.ai/v1/scenes/generate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"sessionId\": \"living-room-01\",\n \"referenceBatchIds\": [\n \"<string>\"\n ],\n \"targetC2w\": [\n [\n 1,\n 0,\n 0,\n 0\n ],\n [\n 0,\n 1,\n 0,\n 0\n ],\n [\n 0,\n 0,\n 1,\n 0\n ],\n [\n 0,\n 0,\n 0,\n 1\n ]\n ],\n \"targetPosition\": {\n \"position\": [\n 0.5,\n 1.2,\n 0\n ],\n \"yaw\": 30,\n \"pitch\": -10\n },\n \"projection\": \"perspective\",\n \"fov\": 80,\n \"seed\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apis.viggle.ai/v1/scenes/generate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"sessionId\": \"living-room-01\",\n \"referenceBatchIds\": [\n \"<string>\"\n ],\n \"targetC2w\": [\n [\n 1,\n 0,\n 0,\n 0\n ],\n [\n 0,\n 1,\n 0,\n 0\n ],\n [\n 0,\n 0,\n 1,\n 0\n ],\n [\n 0,\n 0,\n 0,\n 1\n ]\n ],\n \"targetPosition\": {\n \"position\": [\n 0.5,\n 1.2,\n 0\n ],\n \"yaw\": 30,\n \"pitch\": -10\n },\n \"projection\": \"perspective\",\n \"fov\": 80,\n \"seed\": 1\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"sessionId": "<string>",
"operation": "pano",
"status": "queued",
"credits": 1,
"createdAt": 123,
"completedAt": 123,
"result": {
"operation": "pano",
"sessionId": "<string>",
"spz": {
"url": "<string>"
},
"preview": {
"url": "<string>"
},
"panorama": {
"url": "<string>"
},
"outputBatch": {
"batchId": "<string>",
"createdAt": 123,
"manifest": {
"url": "<string>"
},
"kind": "initial",
"views": [
{
"index": 1,
"url": "<string>",
"c2w": [
[
1,
0,
0,
0
],
[
0,
1,
0,
0
],
[
0,
0,
1,
0
],
[
0,
0,
0,
1
]
],
"intrinsic": [
123
]
}
]
},
"referenceViewCount": 123,
"newViewCount": 123,
"seconds": {}
},
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "<string>",
"retry_after_ms": 1
}
},
"queuePosition": 1
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "<string>",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "<string>",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "<string>",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "<string>",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "<string>",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "<string>",
"retry_after_ms": 1
}
}
}Generate Scene Views
Generate new images of a scene from a camera pose you choose, as a new image batch.
curl --request POST \
--url https://apis.viggle.ai/v1/scenes/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sessionId": "living-room-01",
"referenceBatchIds": [
"<string>"
],
"targetC2w": [
[
1,
0,
0,
0
],
[
0,
1,
0,
0
],
[
0,
0,
1,
0
],
[
0,
0,
0,
1
]
],
"targetPosition": {
"position": [
0.5,
1.2,
0
],
"yaw": 30,
"pitch": -10
},
"projection": "perspective",
"fov": 80,
"seed": 1
}
'import requests
url = "https://apis.viggle.ai/v1/scenes/generate"
payload = {
"sessionId": "living-room-01",
"referenceBatchIds": ["<string>"],
"targetC2w": [[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]],
"targetPosition": {
"position": [0.5, 1.2, 0],
"yaw": 30,
"pitch": -10
},
"projection": "perspective",
"fov": 80,
"seed": 1
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
sessionId: 'living-room-01',
referenceBatchIds: ['<string>'],
targetC2w: [[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]],
targetPosition: {position: [0.5, 1.2, 0], yaw: 30, pitch: -10},
projection: 'perspective',
fov: 80,
seed: 1
})
};
fetch('https://apis.viggle.ai/v1/scenes/generate', 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://apis.viggle.ai/v1/scenes/generate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'sessionId' => 'living-room-01',
'referenceBatchIds' => [
'<string>'
],
'targetC2w' => [
[
1,
0,
0,
0
],
[
0,
1,
0,
0
],
[
0,
0,
1,
0
],
[
0,
0,
0,
1
]
],
'targetPosition' => [
'position' => [
0.5,
1.2,
0
],
'yaw' => 30,
'pitch' => -10
],
'projection' => 'perspective',
'fov' => 80,
'seed' => 1
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://apis.viggle.ai/v1/scenes/generate"
payload := strings.NewReader("{\n \"sessionId\": \"living-room-01\",\n \"referenceBatchIds\": [\n \"<string>\"\n ],\n \"targetC2w\": [\n [\n 1,\n 0,\n 0,\n 0\n ],\n [\n 0,\n 1,\n 0,\n 0\n ],\n [\n 0,\n 0,\n 1,\n 0\n ],\n [\n 0,\n 0,\n 0,\n 1\n ]\n ],\n \"targetPosition\": {\n \"position\": [\n 0.5,\n 1.2,\n 0\n ],\n \"yaw\": 30,\n \"pitch\": -10\n },\n \"projection\": \"perspective\",\n \"fov\": 80,\n \"seed\": 1\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.post("https://apis.viggle.ai/v1/scenes/generate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"sessionId\": \"living-room-01\",\n \"referenceBatchIds\": [\n \"<string>\"\n ],\n \"targetC2w\": [\n [\n 1,\n 0,\n 0,\n 0\n ],\n [\n 0,\n 1,\n 0,\n 0\n ],\n [\n 0,\n 0,\n 1,\n 0\n ],\n [\n 0,\n 0,\n 0,\n 1\n ]\n ],\n \"targetPosition\": {\n \"position\": [\n 0.5,\n 1.2,\n 0\n ],\n \"yaw\": 30,\n \"pitch\": -10\n },\n \"projection\": \"perspective\",\n \"fov\": 80,\n \"seed\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apis.viggle.ai/v1/scenes/generate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"sessionId\": \"living-room-01\",\n \"referenceBatchIds\": [\n \"<string>\"\n ],\n \"targetC2w\": [\n [\n 1,\n 0,\n 0,\n 0\n ],\n [\n 0,\n 1,\n 0,\n 0\n ],\n [\n 0,\n 0,\n 1,\n 0\n ],\n [\n 0,\n 0,\n 0,\n 1\n ]\n ],\n \"targetPosition\": {\n \"position\": [\n 0.5,\n 1.2,\n 0\n ],\n \"yaw\": 30,\n \"pitch\": -10\n },\n \"projection\": \"perspective\",\n \"fov\": 80,\n \"seed\": 1\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"sessionId": "<string>",
"operation": "pano",
"status": "queued",
"credits": 1,
"createdAt": 123,
"completedAt": 123,
"result": {
"operation": "pano",
"sessionId": "<string>",
"spz": {
"url": "<string>"
},
"preview": {
"url": "<string>"
},
"panorama": {
"url": "<string>"
},
"outputBatch": {
"batchId": "<string>",
"createdAt": 123,
"manifest": {
"url": "<string>"
},
"kind": "initial",
"views": [
{
"index": 1,
"url": "<string>",
"c2w": [
[
1,
0,
0,
0
],
[
0,
1,
0,
0
],
[
0,
0,
1,
0
],
[
0,
0,
0,
1
]
],
"intrinsic": [
123
]
}
]
},
"referenceViewCount": 123,
"newViewCount": 123,
"seconds": {}
},
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "<string>",
"retry_after_ms": 1
}
},
"queuePosition": 1
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "<string>",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "<string>",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "<string>",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "<string>",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "<string>",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "<string>",
"retry_after_ms": 1
}
}
}referenceBatchIds and renders new images as seen from the camera you give — a targetC2w matrix, or a targetPosition with yaw and pitch angles — which become a new generated batch in the session. Use them to fill in parts of the scene the existing views don’t cover, then pass the new batchId, together with the earlier ones, to Reconstruct Scene for an updated .spz.
The request is asynchronous: it answers with a queued Scene Task; poll it until it finishes.
projection: perspective, 6 credits ($0.06) with projection: pano, since a panorama counts as 6 views — reserved when it is submitted and refunded in full unless it finishes ready. See Pricing.Request parameters
Sendapplication/json, up to 1 MiB. Unknown fields are rejected.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
sessionId | string | Yes | — | The session whose scene to extend — see Sessions. |
referenceBatchIds | string[] | Yes | — | 1–35 batch IDs from this session, as returned in result.outputBatch.batchId. Lowercase UUIDs, no repeats. |
targetC2w | number[4][4] | One of targetC2w / targetPosition | — | Camera-to-world matrix to render from, in the same frame as the views’ c2w. The last row must be [0, 0, 0, 1]. |
targetPosition | object | One of targetC2w / targetPosition | — | The camera as a position and two angles instead of a matrix: {"position": [x, y, z], "yaw": degrees, "pitch": degrees} — see Target position. |
projection | string | No | perspective | perspective for regular camera images, pano for a 360° panorama at the target camera. |
fov | number | No | model default | Field of view in degrees, 20–140. |
seed | integer | No | 1 | 0–4294967295. The same inputs and seed give the same images. |
targetC2w is to start from a view’s c2w in a batch you already have and move or turn it. A camera close to the existing views gives the most consistent images.Target position
targetPosition places the camera without writing a matrix. Send exactly one of targetC2w and targetPosition; sending both, or neither, is rejected.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
position | number[3] | Yes | — | The camera’s position [x, y, z], in the same frame as the views’ c2w. |
yaw | number | No | 0 | Turn about the world’s +Y axis, in degrees. Positive turns left. |
pitch | number | No | 0 | Tilt up or down, in degrees, from -90 to 90. Positive looks up. |
null angle counts as 0. The angles use the same OpenGL convention as c2w: world +Y is up, and the camera looks down its own −Z axis with +X to its right. With yaw and pitch both 0 the camera looks down world −Z; yaw: 90 looks down −X, and pitch: 90 looks straight up.
The request is turned into the targetC2w it stands for, with rotation R = Ry(yaw) · Rx(pitch) and position as the translation:
| cos(yaw) sin(yaw)·sin(pitch) sin(yaw)·cos(pitch) x |
| 0 cos(pitch) −sin(pitch) y |
| −sin(yaw) cos(yaw)·sin(pitch) cos(yaw)·cos(pitch) z |
| 0 0 0 1 |
targetC2w for a rolled camera.
Response parameters
Returns200 OK with a queued (or already processing) Scene Task:
{
"id": "scn_0199f0c4-1b2c-7d3e-8f4a-5b6c7d8e9f0a.living-room-01",
"sessionId": "living-room-01",
"operation": "generate",
"status": "queued",
"credits": 1,
"queuePosition": 0,
"createdAt": 1791856900000,
"completedAt": null,
"result": null,
"error": null
}
ready, result.outputBatch is the new generated batch, with every new image and its camera in views, and result.newViewCount is how many there are. result.spz is null — run Reconstruct Scene to fold the new views into the scene.
Common errors
| Error | Cause |
|---|---|
400 INVALID_REQUEST | A field is missing, invalid, or unknown — for example referenceBatchIds is empty, has more than 35 IDs or a repeat, targetC2w isn’t a 4 × 4 matrix whose last row is [0, 0, 0, 1], both or neither of targetC2w and targetPosition are sent, or targetPosition has a missing position, an unknown field, or a pitch outside -90–90. |
401 UNAUTHENTICATED | Missing or invalid API key. |
402 INSUFFICIENT_CREDITS | The balance can’t cover the task’s price. Nothing is queued. |
409 INVALID_REQUEST | The session already has a task queued or processing; see error.details.running_task_id. |
429 RATE_LIMITED | Too many concurrent submissions on the same key. Retry shortly. |
503 SERVICE_BUSY | The scene model is temporarily unavailable. Retryable. |
INVALID_REQUEST.
Examples
curl -X POST https://apis.viggle.ai/v1/scenes/generate \
-H "Authorization: Bearer $VIGGLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"sessionId": "living-room-01",
"referenceBatchIds": ["3f0a6c1e-8d2b-4b7a-9e5c-1a2b3c4d5e6f"],
"targetC2w": [[1, 0, 0, 0.5], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]],
"projection": "perspective",
"fov": 75,
"seed": 7
}'
import os, requests
response = requests.post(
"https://apis.viggle.ai/v1/scenes/generate",
headers={"Authorization": f"Bearer {os.environ['VIGGLE_API_KEY']}"},
json={
"sessionId": "living-room-01",
"referenceBatchIds": ["3f0a6c1e-8d2b-4b7a-9e5c-1a2b3c4d5e6f"],
"targetC2w": [[1, 0, 0, 0.5], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]],
"projection": "perspective",
"fov": 75,
"seed": 7,
},
)
response.raise_for_status()
task = response.json()
const response = await fetch("https://apis.viggle.ai/v1/scenes/generate", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VIGGLE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
sessionId: "living-room-01",
referenceBatchIds: ["3f0a6c1e-8d2b-4b7a-9e5c-1a2b3c4d5e6f"],
targetC2w: [[1, 0, 0, 0.5], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]],
projection: "perspective",
fov: 75,
seed: 7,
}),
});
const task = await response.json();
From a position and angles
The same session, with a camera at[0.5, 1.2, 0] turned 30° to the left and tilted 10° down:
curl -X POST https://apis.viggle.ai/v1/scenes/generate \
-H "Authorization: Bearer $VIGGLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"sessionId": "living-room-01",
"referenceBatchIds": ["3f0a6c1e-8d2b-4b7a-9e5c-1a2b3c4d5e6f"],
"targetPosition": { "position": [0.5, 1.2, 0], "yaw": 30, "pitch": -10 }
}'
Quick Start: Scene Model
Authorizations
Headers
Body
Body of POST /v1/scenes/generate. Send exactly one of targetC2w and targetPosition.
Session chosen by the caller, scoped to the caller's account. A
session holds one scene and its image batches, and runs one task at
a time: a submission while a task is still processing answers
409 with that task in error.details.running_task_id.
1 - 128^[A-Za-z0-9_-]+$"living-room-01"
1–35 distinct batch IDs from the same session, as returned in result.outputBatch.batchId. A well-formed ID from another session fails the task with INVALID_REQUEST.
1 - 35 elements^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$Response
Scene task started.
A scene task (scn_ prefix), returned by every /v1/scenes
submission and by GET /v1/scenes/{task_id}. It starts queued (or
processing when a GPU slot is free); ready, failed, and
cancelled are terminal. Only a ready task keeps its credits. A task stays readable for about 72 hours
after it finishes.

