Python Integration Guide
Easily integrate Hydrilla 3D and 2D generation into your Python scripts, Blender add-ons, or backend services.
Installation
pip install requestsPython client implementation
Save this lightweight wrapper as hydrilla.py:
Example usage
from hydrilla import Hydrilla
client = Hydrilla(api_key="hyd_live_your_api_key_here")
# 1. Generate 3D directly from prompt
task_id = client.text_to_3d(
prompt="Cyberpunk drone quadcopter, carbon fiber frame, glowing blue LED",
resolution=1536
)
print(f"Queued 3D task: {task_id}")
# 2. Wait for GLB export
result = client.poll_task(task_id)
print(f"Success! Download GLB mesh: {result['mesh_url']}")Pair it with polling
poll_task reuses the GET /v1/3d/tasks/:taskId endpoint. See Tasks & Polling for status values and the result shape.
TypeScript SDK Guide
The same client, typed for Node.js and the browser.
Tasks & Polling
Poll progress and download completed meshes.