XFitYou API Documentation
Integrate powerful AI-driven fashion analysis into your applications with our comprehensive API.
POST/api/analyze-outfit
Analyze uploaded outfit images and provide style scores, color harmony, and improvement suggestions.
Request Example
POST https://api.xfityou.com/api/analyze-outfit
Content-Type: application/json
Authorization: Bearer $API_KEY
{
"image_url": "https://example.com/outfit.jpg",
"analysis_type": "comprehensive",
"include_recommendations": true,
"language": "en"
}Response Example
{
"code": 0,
"message": "success",
"data": {
"task_id": "xfit_12345",
"analysis": {
"style_score": 8.5,
"color_harmony": "excellent",
"fit_assessment": "well-fitted",
"occasion_suitability": "business casual"
},
"recommendations": [
{
"item_type": "shoes",
"suggestion": "Brown leather loafers",
"reason": "Complements the business casual style"
}
],
"status": "completed"
}
}Request Parameters
image_urlrequiredanalysis_typeoptionalinclude_recommendationsoptionallanguageoptionalResponse Fields
task_id - Unique task identifieranalysis - Analysis resultsrecommendations - Recommendationsstatus - Processing statusError Codes
Possible error codes returned by the API and their meanings.
0Success400Bad Request401Invalid API Key402Insufficient Credits429Rate Limit Exceeded500Internal Server ErrorSupport
If you encounter any issues while using the API, please feel free to contact our technical support team.
