> ## Documentation Index
> Fetch the complete documentation index at: https://docs.percify.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Avatar Studio

> Create, refine, and publish AI-generated avatars with Percify's Avatar Studio

## Overview

Avatar Studio is Percify's flagship feature for creating personalized AI avatars. Generate stunning portraits, characters, and artistic representations using state-of-the-art AI models, then refine and publish them to your profile or integrate them into your applications.

<CardGroup cols={2}>
  <Card title="Quick Generation" icon="bolt">
    Generate avatars in seconds with simple text prompts
  </Card>

  <Card title="Style Control" icon="palette">
    Choose from multiple AI models and artistic styles
  </Card>

  <Card title="Iterative Refinement" icon="arrows-rotate">
    Refine results with prompt engineering and variations
  </Card>

  <Card title="Publishing & Sharing" icon="share-nodes">
    Publish to public feed or keep private for personal use
  </Card>
</CardGroup>

## Generation Models

Percify offers multiple AI models optimized for different use cases:

### Flux (Standard)

* **Cost:** 2 credits per generation
* **Speed:** \~3-5 seconds
* **Best for:** Quick iterations, concept exploration, general portraits
* **Quality:** High quality with good prompt adherence

### Imagen3 (Premium)

* **Cost:** 5 credits per generation
* **Speed:** \~5-8 seconds
* **Best for:** Professional portraits, detailed characters
* **Quality:** Exceptional detail and photorealism

### Reality4 (Premium)

* **Cost:** 5 credits per generation
* **Speed:** \~6-10 seconds
* **Best for:** Ultra-realistic renders, commercial use
* **Quality:** Industry-leading photorealism

## Creating Your First Avatar

<Steps>
  <Step title="Navigate to Studio">
    From the dashboard, click "Avatar Studio" or use the quick-create button
  </Step>

  <Step title="Enter Your Prompt">
    Describe your desired avatar. Be specific about:

    * Physical features and appearance
    * Style (realistic, artistic, anime, etc.)
    * Mood and expression
    * Background and setting
    * Lighting conditions
  </Step>

  <Step title="Select Model & Settings">
    * Choose AI model (Flux, Imagen3, Reality4)
    * Set aspect ratio (1:1, 16:9, 9:16)
    * Adjust guidance scale (7-15 recommended)
    * Set seed for reproducibility (optional)
  </Step>

  <Step title="Generate">
    Click "Generate" and wait 3-10 seconds depending on model
  </Step>
</Steps>

## Prompt Engineering Tips

<AccordionGroup>
  <Accordion icon="wand-magic-sparkles" title="Structure Your Prompts">
    Use this formula for best results:

    ```
    [Subject] [Style] [Details] [Setting] [Lighting]
    ```

    Example: "Young astronaut, cinematic portrait, futuristic suit with glowing accents, nebula background, soft rim lighting"
  </Accordion>

  <Accordion icon="list-check" title="Descriptive Keywords">
    Effective descriptors:

    * **Quality:** high resolution, detailed, sharp focus, professional
    * **Style:** photorealistic, oil painting, anime style, cyberpunk, fantasy
    * **Lighting:** dramatic lighting, golden hour, neon glow, studio lighting
    * **Mood:** serene, confident, mysterious, joyful
  </Accordion>

  <Accordion icon="ban" title="Negative Prompts">
    Exclude unwanted elements:

    ```
    Negative: blurry, low quality, distorted, extra limbs, text, watermark
    ```
  </Accordion>

  <Accordion icon="arrows-spin" title="Iteration Strategy">
    1. Start with a simple, clear prompt
    2. Generate and evaluate results
    3. Add specific details to refine
    4. Adjust model or settings if needed
    5. Keep successful prompts for reuse
  </Accordion>
</AccordionGroup>

## Advanced Features

### Percify Yourself

Transform your own photos into AI avatars that maintain your likeness while applying different styles.

* **Cost:** 10 credits per generation
* **Requirements:** Clear front-facing photo, good lighting, neutral background
* **Process:** Upload photo → Select style → Generate → Refine

```bash theme={null}
curl -X POST https://api.percify.io/v1/avatars/percify-yourself \
  -H "Authorization: Bearer $PERCIFY_API_KEY" \
  -H "Content-Type: multipart/form-data" \
  -F "image=@portrait.jpg" \
  -F "style=cyberpunk" \
  -F "prompt=futuristic warrior, neon lights"
```

### Avatar Cast

Create multi-character scenes with consistent styling across characters.

* **Cost:** 30 credits per generation
* **Use cases:** Team portraits, group scenes, character lineups
* **Features:** Automatic composition, consistent lighting, style coherence

### Style Presets

Quick-start templates for common avatar types:

<CardGroup cols={3}>
  <Card title="Professional" icon="briefcase">
    LinkedIn-ready business portraits
  </Card>

  <Card title="Gaming" icon="gamepad">
    Game character designs and avatars
  </Card>

  <Card title="Fantasy" icon="dragon">
    D\&D characters, mythical beings
  </Card>

  <Card title="Anime" icon="star">
    Anime and manga style characters
  </Card>

  <Card title="Cyberpunk" icon="robot">
    Futuristic, neon-lit sci-fi
  </Card>

  <Card title="Renaissance" icon="palette">
    Classical art style portraits
  </Card>
</CardGroup>

## Publishing & Visibility

### Visibility Options

* **Public:** Appears in explore feed, discoverable by all users
* **Unlisted:** Accessible via direct link only
* **Private:** Only visible to you, usable in your projects

### Publishing Process

```typescript theme={null}
const response = await fetch('https://api.percify.io/v1/avatars/publish', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${process.env.PERCIFY_API_KEY}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    avatarId: 'avatar_123',
    visibility: 'public',
    tags: ['cyberpunk', 'portrait', 'character-design'],
    description: 'Futuristic explorer character concept'
  })
});
```

### Metadata & Tagging

Organize and discover avatars with:

* Custom tags (up to 10 per avatar)
* Descriptions (up to 500 characters)
* Collections (group related avatars)
* Favorites (bookmark for quick access)

## Studio Interface

### Key Controls

| Control         | Function                                |
| --------------- | --------------------------------------- |
| Prompt Box      | Enter/edit generation prompt            |
| Model Selector  | Choose AI model (Flux/Imagen3/Reality4) |
| Aspect Ratio    | Set output dimensions                   |
| Guidance Scale  | Control prompt adherence (7-15)         |
| Seed            | Fix randomness for reproducibility      |
| Batch Size      | Generate multiple variations (1-4)      |
| Negative Prompt | Exclude unwanted elements               |

### Generation History

All your generations are saved and accessible:

* View thumbnails in timeline
* Compare variations side-by-side
* Restore previous prompts
* Track credit usage per generation

## Best Practices

<Tip>
  **Optimize Credit Usage:** Start with Flux (2 credits) for exploration, switch to premium models when you've refined your prompt.
</Tip>

<Warning>
  **Content Policy:** Avatars must comply with Percify's content guidelines. Prohibited content includes violence, hate speech, explicit content, and impersonation of real individuals without consent.
</Warning>

<Info>
  **Performance Tips:**

  * Generate during off-peak hours for faster processing
  * Use batch generation sparingly (costs multiply)
  * Save successful prompts as templates
  * Reuse seeds for consistent character designs
</Info>

## API Integration

### Generate Avatar Image

```javascript theme={null}
// Node.js/JavaScript
const percify = require('@percify/sdk');

const client = new percify.Percify({
  apiKey: process.env.PERCIFY_API_KEY
});

const avatar = await client.avatars.generate({
  prompt: 'ethereal forest guardian, glowing eyes, mystical atmosphere',
  model: 'imagen3',
  aspectRatio: '1:1',
  guidanceScale: 10,
  negativePrompt: 'blurry, low quality'
});

console.log(`Avatar ID: ${avatar.id}, Status: ${avatar.status}`);
```

```python theme={null}
# Python
from percify import Percify

client = Percify(api_key=os.environ['PERCIFY_API_KEY'])

avatar = client.avatars.generate(
    prompt='ethereal forest guardian, glowing eyes, mystical atmosphere',
    model='imagen3',
    aspect_ratio='1:1',
    guidance_scale=10,
    negative_prompt='blurry, low quality'
)

print(f"Avatar ID: {avatar.id}, Status: {avatar.status}")
```

### Check Generation Status

```bash theme={null}
curl -X GET https://api.percify.io/v1/avatars/avatar_123 \
  -H "Authorization: Bearer $PERCIFY_API_KEY"
```

Response:

```json theme={null}
{
  "id": "avatar_123",
  "status": "completed",
  "imageUrl": "https://cdn.percify.io/avatars/avatar_123.png",
  "thumbnailUrl": "https://cdn.percify.io/avatars/avatar_123_thumb.png",
  "prompt": "ethereal forest guardian...",
  "model": "imagen3",
  "creditCost": 5,
  "createdAt": "2025-11-25T05:30:00Z",
  "completedAt": "2025-11-25T05:30:08Z"
}
```

## Troubleshooting

| Issue                            | Cause                        | Solution                                                       |
| -------------------------------- | ---------------------------- | -------------------------------------------------------------- |
| Generation stuck in "processing" | Server queue or timeout      | Wait 30s, check status endpoint, contact support if >2 minutes |
| Poor quality results             | Weak prompt or low guidance  | Strengthen prompt details, increase guidance scale to 12-15    |
| Unexpected elements              | Model interpretation         | Add negative prompts, be more specific in main prompt          |
| Insufficient credits             | Balance below model cost     | Purchase credits or switch to lower-cost model                 |
| 429 Rate limit                   | Too many concurrent requests | Reduce request frequency, implement exponential backoff        |

## Next Steps

<CardGroup cols={3}>
  <Card title="Image to Video" icon="film" href="/percify/image-to-video">
    Animate your avatars
  </Card>

  <Card title="Voice Cloning" icon="microphone" href="/percify/voice-cloning">
    Add voice to characters
  </Card>

  <Card title="Credits System" icon="coins" href="/percify/credits">
    Understand pricing
  </Card>
</CardGroup>

## Support

Need help with Avatar Studio? Check the [FAQ](/percify/faq) or reach out to [support@percify.io](mailto:support@percify.io).
