Skip to content

vendor_connectors.meshy.image3d

Image-to-3D API.

Usage: from vendor_connectors.meshy import image3d

result = image3d.generate("https://example.com/image.png")
print(result.model_urls.glb)
createCreate image-to-3d task. Returns task_id.
getGet task status.
refineRefine preview to full quality. Returns new task_id.
pollPolls the status of an image-to-3D task until it completes, fails, expires, or times out.
generateGenerate a 3D model from an image.

Create image-to-3d task. Returns task_id.

Get task status.

Refine preview to full quality. Returns new task_id.

Polls the status of an image-to-3D task until it completes, fails, expires, or times out.

Args: task_id: The ID of the image-to-3D task to poll. interval: Time in seconds between polling attempts (default: 5.0). timeout: Maximum time in seconds to wait for task completion (default: 600.0).

Returns: Image3DResult: The result of the completed task.

Raises: RuntimeError: If the task fails or expires. TimeoutError: If the polling times out before the task completes.

Generate a 3D model from an image.

Args: image_url: URL to the source image topology: Mesh topology (“quad” or “triangle”) target_polycount: Target polygon count enable_pbr: Enable PBR materials wait: Wait for completion (default True)

Returns: Image3DResult if wait=True, task_id if wait=False