生成场景视图
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
}
}
}场景模型
生成场景视图
从你选定的相机位姿生成场景的新图像,作为新的图像批次。
POST
/
v1
/
scenes
/
generate
生成场景视图
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
}
}
}从你放置的相机生成会话场景的新视图。模型读取
不接受其他字段,值为
无法表示横滚:相机的地平线始终保持水平。需要横滚的相机请使用
任务
格式正确但不属于本会话的批次 ID 由模型检查:任务会先开始,随后以
referenceBatchIds 中列出的图像批次,渲染出从你给定的相机——targetC2w 矩阵,或带偏航角和俯仰角的 targetPosition——看到的新图像,这些图像成为会话中一个新的 generated 批次。可以用它们补全现有视图没有覆盖到的场景部分,再把新的 batchId 连同之前的批次一起传给重建场景,得到更新后的 .spz。
接口是异步的:返回 queued 状态的场景任务,轮询直到任务结束。
计费(1 积分 = $0.01):每个新视角 1 积分($0.01):
projection: perspective 为 1 积分,projection: pano 算 6 个视角,为 6 积分($0.06);提交时预扣,任务未以 ready 结束则全额退回。见计费。请求参数
使用application/json,最大 1 MiB。不接受未知字段。
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
sessionId | string | 是 | — | 要扩展其场景的会话,见创建场景中的“会话”一节。 |
referenceBatchIds | string[] | 是 | — | 1–35 个本会话的批次 ID,即 result.outputBatch.batchId 中返回的值。小写 UUID,不能重复。 |
targetC2w | number[4][4] | targetC2w / targetPosition 二选一 | — | 渲染所用的相机到世界矩阵(c2w),与视图的 c2w 处于同一坐标系。最后一行必须为 [0, 0, 0, 1]。 |
targetPosition | object | targetC2w / targetPosition 二选一 | — | 用位置和两个角度代替矩阵描述相机:{"position": [x, y, z], "yaw": 度, "pitch": 度},见下方“目标位置”一节。 |
projection | string | 否 | perspective | perspective 生成普通相机图像,pano 生成位于目标相机处的 360° 全景图。 |
fov | number | 否 | 模型默认值 | 视场角,单位为度,20–140。 |
seed | integer | 否 | 1 | 0–4294967295。相同输入和 seed 会得到相同图像。 |
获得有效
targetC2w 最简单的方法,是从已有批次中某个视图的 c2w 出发,对其平移或旋转。相机离现有视图越近,生成的图像越一致。目标位置
targetPosition 无需写矩阵即可放置相机。targetC2w 和 targetPosition 必须且只能发送其中一个;两者都发送或都不发送都会被拒绝。
| 字段 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
position | number[3] | 是 | — | 相机位置 [x, y, z],与视图的 c2w 处于同一坐标系。 |
yaw | number | 否 | 0 | 绕世界 +Y 轴的偏航角,单位为度。正值向左转。 |
pitch | number | 否 | 0 | 俯仰角,单位为度,范围 -90 到 90。正值向上看。 |
null 的角度按 0 处理。角度采用与 c2w 相同的 OpenGL 约定:世界 +Y 轴朝上,相机沿自身 −Z 轴方向看,+X 轴指向右侧。yaw 和 pitch 都为 0 时相机朝世界 −Z 方向看;yaw: 90 朝 −X 方向看,pitch: 90 垂直向上看。
请求会被转换为对应的 targetC2w:旋转为 R = Ry(yaw) · Rx(pitch),平移为 position:
| 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。
响应参数
返回200 OK 和 queued(或已经是 processing)状态的场景任务:
{
"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 即新的 generated 批次,views 中包含每张新图像及其相机,result.newViewCount 为新图像数量。result.spz 为 null——请运行重建场景把新视图并入场景。
常见错误
| 错误 | 原因 |
|---|---|
400 INVALID_REQUEST | 字段缺失、不合法或未知,例如 referenceBatchIds 为空、超过 35 个 ID 或有重复,targetC2w 不是最后一行为 [0, 0, 0, 1] 的 4 × 4 矩阵,targetC2w 和 targetPosition 都发送或都未发送,或 targetPosition 缺少 position、包含未知字段或 pitch 超出 -90–90。 |
401 UNAUTHENTICATED | 缺少或无效的 API 密钥。 |
402 INSUFFICIENT_CREDITS | 余额不足以支付该任务,任务不会进入队列。 |
409 INVALID_REQUEST | 该会话已有任务处于 queued 或 processing,见 error.details.running_task_id。 |
429 RATE_LIMITED | 同一密钥的并发提交过多,请稍后重试。 |
503 SERVICE_BUSY | 场景模型暂时不可用,可重试。 |
INVALID_REQUEST 失败。
示例
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();
使用位置和角度
同一会话中,相机位于[0.5, 1.2, 0],向左转 30°、向下倾斜 10°:
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 }
}'
快速入门:场景模型
在完整的构建、生成和重建流程中查看生成视图。
请求头
请求体
application/json
POST /v1/scenes/generate 的请求体。targetC2w 与 targetPosition 必须且只能发送其一。
响应
场景任务已启动。
场景任务(以 scn_ 开头),所有 /v1/scenes 提交接口和 GET /v1/scenes/{task_id} 都返回它。任务以 queued 开始(有空闲 GPU 时直接为 processing),ready、failed、cancelled 为终态。只有 ready 的任务保留扣费。任务结束后约 72 小时内可查询。

