vendor_fabric.meshy.text3d¶
Text-to-3D API.
Usage: from vendor_fabric.meshy import text3d
result = text3d.generate("a medieval sword")
print(result["model_urls"]["glb"])
Module Contents¶
Functions¶
API¶
- vendor_fabric.meshy.text3d.create(request: vendor_fabric.meshy.models.Text3DRequest) extended_data.containers.ExtendedString¶
Create text-to-3d task. Returns task_id.
- vendor_fabric.meshy.text3d.get(task_id: str) extended_data.containers.ExtendedDict¶
Get task status.
- vendor_fabric.meshy.text3d.refine(task_id: str) extended_data.containers.ExtendedString¶
Refine preview to full quality. Returns new task_id.
- vendor_fabric.meshy.text3d.poll(task_id: str, interval: float = 5.0, timeout: float = 600.0) extended_data.containers.ExtendedDict¶
Poll until complete or failed.
- vendor_fabric.meshy.text3d.generate(prompt: str, *, art_style: vendor_fabric.meshy.models.ArtStyle | str = ArtStyle.REALISTIC, negative_prompt: str = '', target_polycount: int = 15000, enable_pbr: bool = True, wait: bool = True) extended_data.containers.ExtendedDict | extended_data.containers.ExtendedString¶
Generate a 3D model from text.
Args: prompt: Text description art_style: Style (realistic, sculpture, cartoon, low-poly) negative_prompt: Things to avoid target_polycount: Target polygon count enable_pbr: Enable PBR materials wait: Wait for completion (default True)
Returns: Extended result payload if wait=True, extended task_id if wait=False.