Skip to main content
POST
Create a scene

Authorizations

Authorization
string
header
required

Send your API key as Authorization: Bearer <API key>. Keys begin with sk-. A missing or invalid key answers 401 UNAUTHENTICATED. Never expose an API key in browser code.

Headers

X-Request-Id
string

Optional caller-supplied correlation ID, echoed as sent in the response header. Omit it and the service generates one. Use it for tracing and support.

Minimum string length: 1

Body

Body of POST /v1/scenes/pano. Send either prompt (optionally with referenceImages and quality) or panoramaUri, not both. Input URLs must be http(s), without credentials, on a host that resolves only to public addresses.

sessionId
string
required

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.

Required string length: 1 - 128
Pattern: ^[A-Za-z0-9_-]+$
Example:

"living-room-01"

prompt
string

Scene description; a 360° panorama is generated from it. Must not be blank.

Required string length: 1 - 1000
referenceImages
string<uri>[]

Image URLs that guide panorama generation. Only with prompt.

Maximum array length: 8
quality
enum<string>
default:low

Panorama generation quality. Only with prompt.

Available options:
low,
medium,
high
panoramaUri
string<uri>

URL of an existing 360° panorama to build the scene from. Not combinable with prompt, referenceImages, or quality.

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.

id
string
required

Task ID, scn_{runId}.{sessionId}.

sessionId
string
required
operation
enum<string>
required

A custom-pano task reports pano.

Available options:
pano,
generate,
reconstruct
status
enum<string>
required
Available options:
queued,
processing,
ready,
failed,
cancelled
credits
number
required

Credits this task is charged: reserved at submission (1 per view the run handles, with a panorama counting as 6), settled to the views actually counted for perspective generate and reconstruct, and 0 once a task that did not finish ready is refunded.

Required range: x >= 0
createdAt
integer<int64> | null
required

Start time, Unix milliseconds.

completedAt
integer<int64> | null
required

End time, Unix milliseconds; null while queued or processing.

result
object | null
required

Set only when ready.

error
object | null
required

Set only when failed. code is INVALID_REQUEST (not retryable — the model rejected the input, such as a batch from another session) or PROCESSING_FAILED (retryable).

queuePosition
integer

Only while queued: tasks waiting ahead of this one, 0 when it is next.

Required range: x >= 0