API Fundamentals
Authentication
Authorization: Bearer YOUR_API_KEYRequest Pattern
Request Examples
curl -X POST https://tryiton.now/api/v1/tryon/clothes \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
// endpoint-specific parameters
}'fetch('https://tryiton.now/api/v1/tryon/clothes', {
method: 'POST',
body: JSON.stringify({
// endpoint-specific parameters
}),
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
}
});import requests
response = requests.post(
"https://tryiton.now/api/v1/tryon/clothes",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
// endpoint-specific parameters
}
)Response Pattern
Initial Response
Status Polling
Error Handling
API-Level Errors
Code
Error
Cause
Solution
Runtime Errors
Credits & Billing
Credit Costs by Endpoint
Endpoint
Try-on Cost Summary
Rate Limits
Endpoint
Limit
Concurrency Limits
Last updated