# Easel Avatar

> Create scenes with one or two people using just selfies and text prompt (without LoRAs)


## Overview

- **Endpoint**: `https://fal.run/easel-ai/easel-avatar`
- **Model ID**: `easel-ai/easel-avatar`
- **Category**: text-to-image
- **Kind**: inference
**Description**: Create scenes with one or two people using just selfies and text prompt (without LoRAs)

**Tags**: avatars, loras, image-generation



## Pricing

- **Price**: $0.05 per generations

For more details, see [fal.ai pricing](https://fal.ai/pricing).

## API Information

This model can be used via our HTTP API or more conveniently via our client libraries.
See the input and output schema below, as well as the usage examples.


### Input Schema

The API accepts the following input parameters:


- **`face_image_0`** (`Image`, _required_):
  The face image with which the scene is generated.
  - Examples: "https://images.easelai.com/avatar_fal/male/male.png", "https://images.easelai.com/avatar_fal/female/female.png"

- **`gender_0`** (`UsergenderEnum`, _required_):
  The gender of the person in the face image
  - Options: `"male"`, `"female"`, `"non-binary"`

- **`face_image_1`** (`Image`, _optional_):
  (Optional) The second face image used to generate a two-person scene.
  - Examples: "https://images.easelai.com/avatar_fal/female/female.png", "https://images.easelai.com/avatar_fal/male/male.png"

- **`gender_1`** (`SecondusergenderEnum`, _optional_):
  The gender of the person in the second face image Default value: `"female"`
  - Default: `"female"`
  - Options: `"male"`, `"female"`, `"non-binary"`

- **`prompt`** (`string`, _required_):
  The prompt to generate the scene
  - Examples: "at the Met Gala, dressed in very fancy outfits, captured in a full body shot"

- **`style`** (`OutputStyleEnum`, _optional_):
  The style of the generated image. Hyperrealistic-likeness: preserves more likeness including hair styles; hyperrealistic: ideal for fun and creative scenes; Realistic: photorealistic with good text rendering; Stylistic: softer, more artistic Default value: `"hyperrealistic-likeness"`
  - Default: `"hyperrealistic-likeness"`
  - Options: `"hyperrealistic-likeness"`, `"hyperrealistic"`, `"realistic"`, `"stylistic"`
  - Examples: "hyperrealistic-likeness", "hyperrealistic", "realistic", "stylistic"



**Required Parameters Example**:

```json
{
  "face_image_0": "https://images.easelai.com/avatar_fal/male/male.png",
  "gender_0": "male",
  "prompt": "at the Met Gala, dressed in very fancy outfits, captured in a full body shot"
}
```

**Full Example**:

```json
{
  "face_image_0": "https://images.easelai.com/avatar_fal/male/male.png",
  "gender_0": "male",
  "face_image_1": "https://images.easelai.com/avatar_fal/female/female.png",
  "gender_1": "female",
  "prompt": "at the Met Gala, dressed in very fancy outfits, captured in a full body shot",
  "style": "hyperrealistic-likeness"
}
```


### Output Schema

The API returns the following output format:

- **`image`** (`Image`, _required_):
  The generated avatar image
  - Examples: {"url":"https://images.easelai.com/avatars_example.jpg"}



**Example Response**:

```json
{
  "image": {
    "url": "https://images.easelai.com/avatars_example.jpg"
  }
}
```


## Usage Examples

### cURL

```bash
curl --request POST \
  --url https://fal.run/easel-ai/easel-avatar \
  --header "Authorization: Key $FAL_KEY" \
  --header "Content-Type: application/json" \
  --data '{
     "face_image_0": "https://images.easelai.com/avatar_fal/male/male.png",
     "gender_0": "male",
     "prompt": "at the Met Gala, dressed in very fancy outfits, captured in a full body shot"
   }'
```

### Python

Ensure you have the Python client installed:

```bash
pip install fal-client
```

Then use the API client to make requests:

```python
import fal_client

def on_queue_update(update):
    if isinstance(update, fal_client.InProgress):
        for log in update.logs:
           print(log["message"])

result = fal_client.subscribe(
    "easel-ai/easel-avatar",
    arguments={
        "face_image_0": "https://images.easelai.com/avatar_fal/male/male.png",
        "gender_0": "male",
        "prompt": "at the Met Gala, dressed in very fancy outfits, captured in a full body shot"
    },
    with_logs=True,
    on_queue_update=on_queue_update,
)
print(result)
```

### JavaScript

Ensure you have the JavaScript client installed:

```bash
npm install --save @fal-ai/client
```

Then use the API client to make requests:

```javascript
import { fal } from "@fal-ai/client";

const result = await fal.subscribe("easel-ai/easel-avatar", {
  input: {
    face_image_0: "https://images.easelai.com/avatar_fal/male/male.png",
    gender_0: "male",
    prompt: "at the Met Gala, dressed in very fancy outfits, captured in a full body shot"
  },
  logs: true,
  onQueueUpdate: (update) => {
    if (update.status === "IN_PROGRESS") {
      update.logs.map((log) => log.message).forEach(console.log);
    }
  },
});
console.log(result.data);
console.log(result.requestId);
```


## Additional Resources

### Documentation

- [Model Playground](https://fal.ai/models/easel-ai/easel-avatar)
- [API Documentation](https://fal.ai/models/easel-ai/easel-avatar/api)
- [OpenAPI Schema](https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=easel-ai/easel-avatar)

### fal.ai Platform

- [Platform Documentation](https://docs.fal.ai)
- [Python Client](https://docs.fal.ai/clients/python)
- [JavaScript Client](https://docs.fal.ai/clients/javascript)
