vendor_connectors.meshy.connector
Meshy AI Connector - HTTP client for Meshy AI 3D generation API.
This connector provides Python access to Meshy AI’s 3D asset generation API, following the patterns established in the jbcom ecosystem.
Module Contents
Section titled “Module Contents”Classes
Section titled “Classes”MeshyConnector | Meshy AI 3D generation connector. |
|---|
class vendor_connectors.meshy.connector.MeshyConnector(api_key: str | None = None, base_url: str | None = None, timeout: float = 300.0, **kwargs)
Section titled “class vendor_connectors.meshy.connector.MeshyConnector(api_key: str | None = None, base_url: str | None = None, timeout: float = 300.0, **kwargs)”Bases: vendor_connectors.base.VendorConnectorBase
Meshy AI 3D generation connector.
Provides access to text-to-3D, image-to-3D, rigging, animation, and retexturing.
Initialization
Section titled “Initialization”Initialize the connector.
Args: api_key: API key (overrides environment variable) base_url: Base URL (overrides class default) timeout: HTTP timeout in seconds logger: Logger instance **kwargs: Passed to DirectedInputsClass
API_KEY_ENV
Section titled “API_KEY_ENV”‘MESHY_API_KEY’
BASE_URL
Section titled “BASE_URL”text3d_generate(prompt: str, art_style: str = ‘realistic’, negative_prompt: str = ”, target_polycount: int = 30000, enable_pbr: bool = True, wait: bool = True) → Any
Section titled “text3d_generate(prompt: str, art_style: str = ‘realistic’, negative_prompt: str = ”, target_polycount: int = 30000, enable_pbr: bool = True, wait: bool = True) → Any”Generate a 3D model from text description.
image3d_generate(image_url: str, topology: str = ‘triangle’, target_polycount: int = 15000, enable_pbr: bool = True, wait: bool = True) → Any
Section titled “image3d_generate(image_url: str, topology: str = ‘triangle’, target_polycount: int = 15000, enable_pbr: bool = True, wait: bool = True) → Any”Generate a 3D model from an image.
rig_model(model_id: str, wait: bool = True) → Any
Section titled “rig_model(model_id: str, wait: bool = True) → Any”Add skeleton/rig to a static 3D model.
apply_animation(model_id: str, animation_id: int, wait: bool = True) → Any
Section titled “apply_animation(model_id: str, animation_id: int, wait: bool = True) → Any”Apply animation to a rigged model.
retexture_model(model_id: str, texture_prompt: str, enable_pbr: bool = True, wait: bool = True) → Any
Section titled “retexture_model(model_id: str, texture_prompt: str, enable_pbr: bool = True, wait: bool = True) → Any”Apply new textures to an existing model.