Texturing | Overview
AI texture generation API overview. Apply and edit textures on 3D models using Tencent Hunyuan and Tripo. PBR material output from text, image, or style reference.
Overview
The Texturing API lets you generate and apply high-quality textures to existing 3D models using AI. Provide a 3D model file and either a reference image or a text prompt, and receive the model back with AI-generated textures. Supports PBR material output when using text prompts.
Available Providers
| Provider | Capabilities | Credits |
|---|---|---|
| Tencent Hunyuan | AI texture generation from text prompts or reference images. PBR texture support in prompt mode. Input format: FBX. | 80 credits |
| Tripo | AI texture generation from text prompts, reference images, or style transfer. PBR support. Accepts any model format via URL or file upload. | 20–50 credits |
How It Works
Submit a texture edit request with a model URL and either a reference image or a text prompt. Then poll the status endpoint for results.
Request
# 1. Submit a texture edit request
curl -X POST https://api.3daistudio.com/v1/3d-models/tencent/texture-edit/ \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"file_url": "https://example.com/model.fbx",
"prompt": "wood grain texture with natural finish"
}'
# 2. Poll for results
curl https://api.3daistudio.com/v1/generation-request/TASK_ID/status/ \
-H "Authorization: Bearer YOUR_API_KEY"Errors
Common errors for texturing endpoints.
| Status | Error Code | Description |
|---|---|---|
| 402 | insufficient_credits | Not enough credits. Purchase more credits. |
| 429 | rate_limited | Rate limit exceeded. Wait and retry. |
| 400 | validation_failed | Missing or invalid parameters. |