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

# Image to Face

> Create a Phoenix face from a headshot image using the Create Face and Get Face APIs.

> [!NOTE]
>
> This guide is for **training a face through the API** with `train_image_url`. If you prefer a guided flow with instant feedback on whether your image passes checks, use the [PAL Maker](https://maker.tavus.io/dev/faces/create).

## Outcome

You will `POST /v2/faces` with `train_image_url` and a voice, then poll `GET /v2/faces/{face_id}` until ready. For Phoenix-4.5 preview and tuning status, see [Phoenix-4.5 Preview and Status](https://docs.tavus.io/sections/faces/phoenix-45-preview-and-status.md).

## Prerequisites

* A headshot and composition rules in [Phoenix-4.5 Image Requirements](https://docs.tavus.io/sections/faces/phoenix-45-image-requirements.md) or [Phoenix-4 Image Requirements](https://docs.tavus.io/sections/faces/phoenix-4-image-requirements.md).
* A voice for the face. See [Voices for Image-Based Faces](https://docs.tavus.io/sections/faces/voices-for-image-based-faces.md).
* A publicly downloadable URL for the image (for example a presigned S3 GET URL). Keep it valid for at least **24 hours** after submission.

## Validate the image (optional)

Before training, use [Validate Face Image](https://docs.tavus.io/api-reference/faces/validate-face-image.md) to check your image and show users what to fix. Send the image bytes as `imageBase64`, its `mimeType`, and `model` set to the same Phoenix model you will use for training. Validation defaults to `phoenix-4`, so send `"model": "phoenix-4.5"` for the example below.

A completed check returns HTTP `200` whether the image passes or fails. Read `passed` for the overall result and show the labels of entries in `checks` whose `passed` is `false`. Validation does not create a face; submit the image URL in the next step when you are ready to train.

## 1. Create the face

Send **`"model_name": "phoenix-4.5"`** for Phoenix-4.5. To use Phoenix-4, include `"model_name": "phoenix-4"`. Image training is not available on Phoenix-3 (legacy). Pick a model and see image requirements in [Choose a Model and Training Path](https://docs.tavus.io/sections/faces/which-training-path.md).

Do **not** send `train_video_url` and `train_image_url` in the same request.

```bash theme={null}
curl --request POST \
  --url https://tavusapi.com/v2/faces \
  --header 'Content-Type: application/json' \
  --header "x-api-key: $TAVUS_API_KEY" \
  --data '{
    "callback_url": "",
    "face_name": "my_image_replica",
    "model_name": "phoenix-4.5",
    "train_image_url": "https://example.com/headshot.png",
    "voice_name": "anna",
    "auto_fix_training_image": true
  }'
```

> [!TIP]
>
> Set `auto_fix_training_image` to `true` to have Tavus's AI Image Fixer instantly adjust the uploaded image to fit the [Phoenix-4.5](https://docs.tavus.io/sections/faces/phoenix-45-image-requirements.md#image-requirements) or [Phoenix-4](https://docs.tavus.io/sections/faces/phoenix-4-image-requirements.md#image-requirements) image requirements without manual editing.

## 2. Poll face status

Use [Get Face](https://docs.tavus.io/api-reference/faces/get-face.md):

```bash theme={null}
curl --request GET \
  --url "https://tavusapi.com/v2/faces/$FACE_ID" \
  --header "x-api-key: $TAVUS_API_KEY"
```

> [!NOTE]
>
> Poll until `status` is `completed`. On Phoenix-4.5 that is the watermarked preview; check `finetune_status` for the unwatermarked version. See [Phoenix-4.5 Preview and Status](https://docs.tavus.io/sections/faces/phoenix-45-preview-and-status.md).

## 3. Start a conversation

Generate a conversation with your face using [Create Conversation](https://docs.tavus.io/api-reference/conversations/create-conversation.md)

```bash theme={null}
curl --request POST \
  --url https://tavusapi.com/v2/conversations \
  --header 'Content-Type: application/json' \
  --header "x-api-key: $TAVUS_API_KEY" \
  --data '{
    "face_id": "$FACE_ID"
  }'
```

## Related

* [Create Face](https://docs.tavus.io/api-reference/faces/create-face.md) (validation rules for `train_image_url`)
* [Phoenix-4.5 Preview and Status](https://docs.tavus.io/sections/faces/phoenix-45-preview-and-status.md)
* [Voices for Image-Based Faces](https://docs.tavus.io/sections/faces/voices-for-image-based-faces.md)
* [Phoenix-4.5 Image Requirements](https://docs.tavus.io/sections/faces/phoenix-45-image-requirements.md)
* [Phoenix-4 Image Requirements](https://docs.tavus.io/sections/faces/phoenix-4-image-requirements.md)
* [Video to Face](https://docs.tavus.io/sections/faces/video-to-face-quickstart.md) if you switch to video-based training


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.