Depth to RGB
Generate an RGB panorama from a depth panorama.
Provide a depth panorama and a text prompt describing the desired appearance. The depth map supplies the scene geometry; the model synthesizes textures that match that geometry and returns a panoramic RGB image.
Accepted depth inputs:
- EXR: float depth values. Omit
z_minandz_max. - PNG: depth values normalized to [0, 1].
Provide both
z_minandz_maxso the service can decode the PNG correctly.
For a complete PNG-based workflow, see the web-chisel-depth-png example.
Returns a long-running Operation. Poll
GET /operations/{operation_id} until
done is true, then read the generated
panorama URL from response.pano_url.
Raises: HTTPException: 400 if invalid request HTTPException: 402 if insufficient credits HTTPException: 500 if generation could not start
depth_pano_image must be a full 360° equirectangular depth panorama with a
2:1 width-to-height aspect ratio. Inputs that are not 2:1 are center-cropped to
that ratio before generation, which discards content at the edges.Authorizations
API key for authentication. Get your key from the developer portal.
Body
Request to generate an RGB panorama from a depth panorama.
Provide a depth panorama and a text prompt describing the desired appearance. The depth map supplies the scene geometry; the model synthesizes textures that loosely adhere to that geometry and returns a panoramic RGB image.
Accepted depth inputs:
- EXR: float depth values. Omit
z_minandz_max. - PNG: depth values normalized to [0, 1].
Provide both
z_minandz_maxso the service can decode the PNG correctly.
For a complete PNG-based workflow, see the
web-chisel-depth-png example <https://github.com/worldlabsai/worldlabs-api-examples/tree/main/web-chisel-depth-png>.
This endpoint returns a long-running Operation.
Poll GET /operations/{operation_id} until
done is true, then read the generated
panorama URL from response.pano_url.
Reference to a previously uploaded MediaAsset.
- MediaAssetReference
- UriReference
- DataBase64Reference
Text description of the desired appearance.
Random seed for reproducible generation.
0 <= x <= 4294967295Maximum depth. Required for PNG depth maps (normalized to [0, 1]). Must be provided together with z_min and must be greater than z_min. Omit for EXR depth maps.
x > 0Minimum depth. Required for PNG depth maps (normalized to [0, 1]). Must be provided together with z_max. Omit for EXR depth maps.
x > 0Response
Successful Response
True if the operation is completed
Operation identifier
Settled credit cost for the operation. Populated only on successful completion.
Creation timestamp
Error information if the operation failed
Expiration timestamp
Service-specific metadata, such as progress percentage
Result payload when done=true and no error. Structure depends on operation type.
Last update timestamp