AI Image Generation API

Arcane-style superhero portrait generator

POST/scaleup2026/generate

Generate AI Image

Upload a photo and generate an Arcane-style superhero portrait.

Request (multipart/form-data):

  • * photo: File (JPEG, PNG, WEBP, max 2MB)
  • * name: string
  • * email: string (valid email format)
  • * phone_no: string (10-15 digits)
  • * designation: string

Response (200 OK):

{
  "success": true,
  "user_id": "uuid",
  "name": "John Doe",
  "designation": "Developer",
  "aws_key": "uploads/1234567890/upload-1234567890.jpg",
  "photo_url": "https://...",
  "generated_image_url": "https://...",
  "final_image_url": "https://..."
}

Note: Processing takes 30-60 seconds

GET/scaleup2026/user/:userId

Get User Details

Retrieve user information by user ID.

Request:

GET /api/user/{uuid}

Response (200 OK):

{
  "success": true,
  "user": {
    "id": "uuid",
    "name": "John Doe",
    "email": "john@example.com",
    "phone_no": "+1234567890",
    "designation": "Developer",
    "aws_key": "uploads/1234567890/upload-1234567890.jpg",
    "photo_url": "https://...",
    "generated_image_url": "https://...",
    "created_at": "2026-02-02T..."
  }
}

Example cURL Commands

Generate Image:

curl -X POST http://localhost:3000/api/generate \
  -F "photo=@/path/to/image.jpg" \
  -F "name=John Doe" \
  -F "email=john@example.com" \
  -F "phone_no=+1234567890" \
  -F "designation=Developer"

Get User Details:

curl -X GET http://localhost:3000/api/user/YOUR_USER_ID

📋 Validations

  • ✓ Image Format: JPEG, PNG, WEBP only
  • ✓ Image Size: Maximum 10MB
  • ✓ Email: Valid email format required
  • ✓ Phone: 10-15 digits (optional + prefix)
  • ✓ Required Fields: photo, name, email, phone_no, designation