Tools

Tool Depth Pro

Performs high-precision depth estimation using the Depth-Pro model to generate detailed depth maps with focal length estimation.

Args: data (BaseMediaRequest): The form data containing the following fields: - image (UploadFile): The image file to analyze for depth estimation. Required field for depth map generation. - video (UploadFile, optional): Video file input (not used for Depth-Pro). baseten_inference_sender: Dependency Injection for sending inference requests to the Baseten model server for Depth-Pro processing.

Returns: DepthProResponse | JSONResponse Success: DepthProResponse containing depth map data and processing metadata. Error: JSONResponse with error details and appropriate status code.

post/v1/tools/depth-pro

Query parameters

timeoutinteger nullable

Response

Successful Response

dataobject nullable required

Changes