Try-On API
Use Huhu Try-on API to create virtual try on images.

Simple Integration, Powerful Results
Get started with just a few lines of code. Our API handles the heavy lifting.
cURL
curl -X POST https://api.huhu.ai/v1/try-on \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model_image": "https://example.com/model.jpg",
"garment_image": "https://example.com/garment.jpg",
"category": "upper_body",
"output_format": "png",
"quality": "high"
}'Python
import huhu
client = huhu.Client(api_key="YOUR_API_KEY")
result = client.try_on(
model_image="https://example.com/model.jpg",
garment_image="https://example.com/garment.jpg",
category="upper_body",
output_format="png",
quality="high",
)
print(result.image_url) # Generated try-on image
print(result.metadata) # Processing detailsNode.js
import { HuhuClient } from '@huhu-ai/sdk';
const client = new HuhuClient({ apiKey: 'YOUR_API_KEY' });
const result = await client.tryOn({
modelImage: 'https://example.com/model.jpg',
garmentImage: 'https://example.com/garment.jpg',
category: 'upper_body',
outputFormat: 'png',
quality: 'high',
});
console.log(result.imageUrl); // Generated try-on image
console.log(result.metadata); // Processing details
Enterprise-Grade Infrastructure
Built for production workloads. Our API runs on globally distributed infrastructure with automatic scaling, ensuring fast response times and high availability no matter where your users are.
- 99.9% uptime SLA with real-time status monitoring
- Sub-second response times from global edge locations
- Auto-scaling handles traffic spikes seamlessly
- Dedicated infrastructure available for enterprise plans

Comprehensive API Endpoints
Beyond virtual try-on, access our full suite of AI fashion tools via API: background removal, face swap, image retouching, hand correction, and more. One API key unlocks every capability.
- Virtual try-on for clothing, accessories, and jewelry
- Background removal and replacement
- Face swap and model diversification
- Image retouching and hand correction
- Image-to-video generation

Developer-Friendly SDKs and Webhooks
Official SDKs for Python, Node.js, PHP, and Ruby. Webhook support for async processing. Comprehensive documentation with interactive examples and Postman collections.
- Official SDKs: Python, Node.js, PHP, Ruby
- Webhook callbacks for async job processing
- Interactive API playground for testing endpoints
- Postman and OpenAPI collections included
Build the Future of Fashion Commerce
Integrate AI-powered virtual try-on and image generation into your platform today. Free tier available for development and testing.