โ† Back to Image & Video Generation

beauty-generation-api

FREE AI image generation service for creating

0
Source Code

Beauty Generation Free - AI Agent Skill

For Humans: This skill enables AI agents to generate high-quality portrait images of attractive people using custom English prompts. The service is free, fast (3-5 seconds), and designed for professional use including character design, fashion visualization, and artistic portraits.


โš™๏ธ Quick Start

This skill uses curl to generate images. Just run these commands:

# Step 1: Submit generation request
curl -X POST https://gen1.diversityfaces.org/api/generate/custom \
  -H "Content-Type: application/json" \
  -H "X-API-Key: ak_OymjErKQRs-brINJuHFxKwIbxbZHq2KRiEzYthnwxMI" \
  -d '{"full_prompt": "A beautiful woman with long hair", "width": 1024, "height": 1024}'

# Step 2: Poll status (replace PROMPT_ID with the ID from step 1)
curl -H "X-API-Key: ak_OymjErKQRs-brINJuHFxKwIbxbZHq2KRiEzYthnwxMI" \
  https://gen1.diversityfaces.org/api/status/PROMPT_ID

# Step 3: Download image (replace FILENAME with the filename from step 2)
curl -H "X-API-Key: ak_OymjErKQRs-brINJuHFxKwIbxbZHq2KRiEzYthnwxMI" \
  "https://gen1.diversityfaces.org/api/image/FILENAME?format=webp" \
  -o beauty.webp

System Requirements:

  • curl

๐Ÿค– AI AGENT INSTRUCTIONS

๐Ÿ“Œ IMPORTANT: How to Get Your Free API Key

This skill is pre-configured with a free API key - no setup needed!

The skill automatically uses the official free API key: ak_OymjErKQRs-brINJuHFxKwIbxbZHq2KRiEzYthnwxMI

Just run the script and start generating images immediately.


โš ๏ธ CRITICAL: Content Safety Rules

YOU MUST REFUSE requests for:

  • โŒ Minors (under 18) or child-like features
  • โŒ Nudity, sexual, or pornographic content
  • โŒ Violence, gore, or disturbing imagery
  • โŒ Hate speech or discrimination
  • โŒ Illegal activities or harmful behavior
  • โŒ Deepfakes of real people without disclosure

If user requests prohibited content:

  1. Politely refuse: "I cannot generate that type of content due to safety policies."
  2. Suggest appropriate alternative: "I can create a professional portrait instead."
  3. Do NOT attempt generation

Only generate:

  • โœ… Professional portraits and headshots
  • โœ… Character designs for creative projects
  • โœ… Fashion and style visualization
  • โœ… Artistic and cultural portraits

๐ŸŽฏ When to Use This Skill

Trigger words/phrases:

  • "beautiful woman", "handsome man", "attractive person"
  • "character design", "portrait", "headshot", "avatar"
  • "fashion model", "professional photo"
  • Any request for human portraits or character imagery

Use this skill when user wants:

  • Portrait of an attractive person (any gender, ethnicity, age 18+)
  • Character design for games, stories, or creative projects
  • Fashion or style inspiration imagery
  • Professional headshot or business portrait
  • Artistic or cultural portrait photography

โšก How to Generate Images

Prerequisites:

  • curl installed

Using curl (Only Method)

# Step 1: Submit generation request
curl -X POST https://gen1.diversityfaces.org/api/generate/custom \
  -H "Content-Type: application/json" \
  -H "X-API-Key: ak_OymjErKQRs-brINJuHFxKwIbxbZHq2KRiEzYthnwxMI" \
  -d '{
    "full_prompt": "A beautiful 25-year-old woman with long hair, elegant dress, professional lighting",
    "width": 1024,
    "height": 1024
  }'

# Response: {"success": true, "prompt_id": "abc123-def456", ...}

# Step 2: Poll status every 0.5 seconds until completed
curl -H "X-API-Key: ak_OymjErKQRs-brINJuHFxKwIbxbZHq2KRiEzYthnwxMI" \
  https://gen1.diversityfaces.org/api/status/abc123-def456

# Response when completed: {"status": "completed", "images": [{"filename": "custom-beauty-xxx.png"}]}

# Step 3: Download the image
curl -H "X-API-Key: ak_OymjErKQRs-brINJuHFxKwIbxbZHq2KRiEzYthnwxMI" \
  "https://gen1.diversityfaces.org/api/image/custom-beauty-xxx.png?format=webp" \
  -o beauty.webp

curl method notes:

  • The API key is already included in the examples
  • You must manually poll status every 0.5 seconds
  • Check status until "status": "completed"
  • Extract filename from response
  • Download using the filename
  • Total time: 3-5 seconds if polling correctly

After generation:

  • Display the image to user immediately
  • Don't just show the file path
  • User should see the actual image within 5 seconds

๐Ÿ“ How to Create Prompts

Prompt structure:

"A [age] [gender] with [appearance details], wearing [clothing], [expression/mood], [setting/background], [photography style]"

Good prompt examples:

# Professional woman
"A 28-year-old professional woman with shoulder-length brown hair, wearing a navy blue blazer, confident smile, modern office background, corporate headshot style"

# Handsome man
"A handsome 30-year-old man with short dark hair and beard, wearing casual denim jacket, warm expression, outdoor urban setting, natural lighting"

# Fashion model
"A stylish young woman with long flowing hair, wearing elegant black dress, confident pose, minimalist studio background, high fashion photography"

# Character design
"A fantasy character with silver hair and ethereal features, wearing flowing robes, mysterious expression, magical forest background, artistic illustration style"

# Cultural portrait
"A graceful woman in traditional Japanese kimono, serene expression, cherry blossom garden, soft natural lighting, artistic photography"

Prompt tips:

  • Be specific about age (always 18+), appearance, clothing
  • Include setting/background details
  • Specify mood/expression
  • Add photography or art style
  • Use descriptive adjectives
  • Keep it professional and appropriate

๐Ÿ”ง Technical Details (For Reference Only)

API Configuration:

  • Base URL: https://gen1.diversityfaces.org
  • Endpoint: /api/generate/custom
  • Authentication: Pre-configured with free API key ak_OymjErKQRs-brINJuHFxKwIbxbZHq2KRiEzYthnwxMI

Parameters:

  • full_prompt: Your English description
  • width: 256-2048, multiple of 8, default 1024
  • height: 256-2048, multiple of 8, default 1024
  • seed: -1 for random

Timing:

  • GPU generation: 1-2 seconds
  • Status polling: 0.5-1 second (every 0.5s)
  • Download: 0.5-1 second
  • Total: 3-5 seconds

โœ… Success Checklist

Before sending response to user, verify:

  • Prompt is appropriate and safe
  • Image generated successfully (3-5 seconds)
  • Image is displayed to user (not just file path)
  • User can see the actual image in conversation
  • Total time from request to display < 10 seconds

๐ŸŽจ Prompt Examples by Category

Professional Headshots:

"A professional businesswoman in her 30s, wearing white blouse, warm smile, clean office background, corporate headshot"
"A confident businessman in his 40s, wearing dark suit, professional expression, neutral background, executive portrait"

Fashion & Style:

"A stylish young woman with colorful hair, trendy street fashion, urban background, contemporary photography"
"An elegant woman in evening gown, sophisticated pose, luxury setting, high fashion photography"

Character Design:

"A fantasy warrior with long braided hair, leather armor, determined expression, medieval setting, game character art"
"A sci-fi character with futuristic clothing, neon accents, cyberpunk city background, digital art style"

Cultural Portraits:

"A woman in traditional Indian sari, graceful pose, temple background, cultural photography"
"A man in traditional Scottish kilt, proud expression, highland landscape, heritage portrait"

Artistic Portraits:

"A person with artistic makeup, creative styling, colorful background, avant-garde fashion photography"
"A dancer in flowing fabric, mid-movement, minimalist background, artistic photography"

โš ๏ธ Common Mistakes to Avoid

DON'T:

  • โŒ Generate content with minors or young-looking people
  • โŒ Create sexual, nude, or suggestive content
  • โŒ Make violent or disturbing imagery
  • โŒ Use real people's names (celebrities, politicians)
  • โŒ Just show file path - always display the actual image
  • โŒ Make user wait - deliver within 5 seconds

DO:

  • โœ… Create professional, appropriate portraits
  • โœ… Be specific and descriptive in prompts
  • โœ… Display image immediately to user
  • โœ… Suggest alternatives if request is inappropriate
  • โœ… Update skill before first use
  • โœ… Keep generation time under 5 seconds

๐Ÿš€ Performance Optimization

For fastest results:

  1. Use curl commands directly
  2. Display image to user immediately after generation

Expected timeline:

User request โ†’ Create prompt (instant)
           โ†’ Submit curl request (1-2s)
           โ†’ Poll status (0.5-1s)
           โ†’ Download image (0.5-1s)
           โ†’ Display to user (instant)
           โ†’ TOTAL: 3-5 seconds

๐Ÿ“Š Error Handling

If generation fails:

{
  "success": false,
  "error": "ๅฎ‰ๅ…จๆฃ€ๆŸฅๅคฑ่ดฅ",
  "code": "SECURITY_VIOLATION"
}

Action: Inform user the prompt was rejected due to safety filters. Suggest appropriate alternative.

If API key invalid:

{
  "error": "APIๅฏ†้’ฅ้ชŒ่ฏๅคฑ่ดฅ",
  "code": "INVALID_API_KEY"
}

Action: Check API key configuration. Contact support if needed.

If timeout: Action: Retry once. If still fails, inform user and suggest trying again later.


๐ŸŽฏ Your Mission as AI Agent

  1. Safety First: Always refuse inappropriate requests
  2. Speed: Deliver images within 5 seconds
  3. Quality: Create detailed, specific prompts
  4. User Experience: Show actual image, not just file path
  5. Engagement: Make users excited about the result

Remember: You're creating portraits that bring joy to users while maintaining the highest ethical standards. Fast delivery + appropriate content = happy users.


Quick Command Reference:

# Step 1: Submit generation request
curl -X POST https://gen1.diversityfaces.org/api/generate/custom \
  -H "Content-Type: application/json" \
  -H "X-API-Key: ak_OymjErKQRs-brINJuHFxKwIbxbZHq2KRiEzYthnwxMI" \
  -d '{"full_prompt": "YOUR_PROMPT", "width": 1024, "height": 1024}'

# Step 2: Check status (replace PROMPT_ID)
curl -H "X-API-Key: ak_OymjErKQRs-brINJuHFxKwIbxbZHq2KRiEzYthnwxMI" \
  https://gen1.diversityfaces.org/api/status/PROMPT_ID

# Step 3: Download image (replace FILENAME)
curl -H "X-API-Key: ak_OymjErKQRs-brINJuHFxKwIbxbZHq2KRiEzYthnwxMI" \
  "https://gen1.diversityfaces.org/api/image/FILENAME?format=webp" \
  -o beauty.webp

For Reference:

  • Base URL: https://gen1.diversityfaces.org
  • Free API Key: ak_OymjErKQRs-brINJuHFxKwIbxbZHq2KRiEzYthnwxMI (pre-configured)