# Pic10x Developer & Agent Specification (llms-full.txt) Version: 1.0.0 Base URL: https://pic10x.com ## 1. System Architecture Pic10x combines community crowd wisdom with algorithmic computer vision evaluation: - Community Rating: 1–10 discrete votes aggregated with Bayesian dampening to prevent small-sample bias. - Elo Duel Engine: Head-to-head pairwise matchups using standard Elo rating (K-factor = 32, base = 1500). - AI Photo Diagnostic Engine: Analyzes contrast, exposure histograms, edge frequency (sharpness), aspect ratio, rule-of-thirds focal points, and facial clarity to produce a 6-factor aesthetic score and 3 actionable 10x improvement directives. ## 2. API Reference ### 2.1 GET /api/photos Parameters: - `category` (optional): "all", "profile", "professional", "fashion", "creative", "pets" - `sort` (optional): "top", "trending", "recent" - `limit` (optional, default 20, max 100) - `offset` (optional, default 0) Response JSON: ```json { "total": 42, "photos": [ { "id": "pic-001", "title": "Golden Hour Rooftop Portrait", "category": "profile", "author": "Elena Rostova", "imageUrl": "/photos/pic-001.webp", "communityScore": 8.7, "totalVotes": 1420, "eloRating": 1685, "aiScore": 8.9, "dimensions": { "lighting": 9.2, "composition": 8.5, "charisma": 9.4, "sharpness": 8.6, "wardrobe": 8.8 }, "feedback": [ "Warm backlight creates cinematic rim effect on shoulders", "Subject eye line aligns precisely with the upper third", "Slight background glare on bottom-right could be softened" ] } ] } ``` ### 2.2 POST /api/photos/:id/vote Request Body: ```json { "score": 9, "voterId": "session-uuid-or-agent-token" } ``` Validation: `score` must be an integer between 1 and 10. Rate limited to 30 votes/minute per IP/voter. Response JSON: ```json { "success": true, "photoId": "pic-001", "score": 9, "newCommunityScore": 8.71, "totalVotes": 1421, "distribution": [2, 1, 4, 12, 45, 110, 230, 480, 390, 147] } ``` ### 2.3 POST /api/evaluate Upload photo data (base64 image, data URL, or image metadata) to receive immediate AI evaluation. Request Body: ```json { "imageData": "data:image/jpeg;base64,...", "title": "My LinkedIn Headshot", "category": "professional" } ``` Response JSON: ```json { "photoId": "eval-preview", "overallScore": 8.4, "dimensions": { "lighting": 8.8, "composition": 7.8, "charisma": 9.0, "sharpness": 8.5, "wardrobe": 8.1 }, "feedback": [ "Increase camera elevation by 10-15° for more defined chin contour", "Add fill reflection on left cheek to balance 2:1 key ratio", "Replace textured blazer pattern to minimize digital moire" ], "benchmark": "Top 12% in Professional category" } ``` ### 2.4 GET /api/duel & POST /api/duel Fetches two evenly matched photos for side-by-side comparison. Submit winner: ```json { "photoAId": "pic-001", "photoBId": "pic-004", "winnerId": "pic-001" } ``` Calculates delta Elo using: $E_A = 1 / (1 + 10^{(R_B - R_A)/400})$ $\Delta R_A = K \times (S_A - E_A)$ where $K = 32$.