# AI 年齡模擬器

# 概述
AI 年齡模擬器運用生成式 AI 模型，從單張自拍照片生成從年輕到年長的一系列照片。借助 AI 技術，它不僅能量測您目前的年齡，也能讓您看見未來或過去的自己。
![AI Aging Generator](https://bcw-media.s3.ap-northeast-1.amazonaws.com/f42f1504_79e3_461c_a3f1_a254623d113b_b068736afb.jpg)
AI 年齡模擬器可根據單張輸入的自拍照片生成一系列照片。下方展示生成的範例照片，作為此功能的快速參考。
![AI Aging Generator](https://bcw-media.s3.ap-northeast-1.amazonaws.com/U_2024_04_17_cr_12112b83e2.png)
## 檔案規格與錯誤
* 支援的格式與尺寸

| AI 功能 | 支援的尺寸 | 支援的檔案大小 | 支援的格式 |
|  --- | --- | --- | --- |
| AI 老化 | 長邊 <= 4096，僅限單人。臉部姿勢限制：yaw 在 ±30° 內、roll 在 ±20° 內、pitch 在 ±20° 內。 | < 10MB | jpg/jpeg |

* 錯誤代碼

| 錯誤代碼 | 說明 |
|  --- | --- |
| error_below_min_image_size | 來源圖片尺寸必須至少為 320 像素。 |
| error_face_position_invalid | 臉部必須完全可見、面向前方，並位於圖片中央。 |
| error_face_position_too_small | 偵測到的臉部太小，無法分析。 |
| error_face_position_out_of_boundary | 臉部超出圖片邊界。 |
| error_face_not_forward_facing | 臉部必須正對鏡頭。 |
| error_face_angle_upward | 臉部向上偏轉過多—請稍微低頭。 |
| error_face_angle_downward | 臉部向下偏轉過多—請稍微抬頭。 |
| error_face_angle_leftward | 臉部向左轉轉過多—請稍微向右轉頭。 |
| error_face_angle_rightward | 臉部向右轉過多—請稍微向左轉頭。 |
| error_face_angle_left_tilt | 臉部向左傾斜過多—請輕輕向右傾頭。 |
| error_face_angle_right_tilt | 臉部向右傾斜過多—請輕輕向左傾頭。 |



---

## 點數消耗
| AI 功能 | 消耗的點數 |
|  --- | --- |
| AI 年齡模擬器 V1.0 | 2 |



---

License: Privacy policy

## Servers

```
https://yce-api-01.makeupar.com
```

## Security

### BearerAuthenticationV2

使用標準的 'Bearer authentication'。請在標頭中放入您的 'API Key'：`Authorization:Bearer YOUR_API_KEY`。請注意 'Bearer' 與 'YOUR_API_KEY' 之間有一個空格。

Type: http
Scheme: bearer

## Download OpenAPI description

 - [AI 年齡模擬器](https://docs.perfectcorp.com/_bundle/@l10n/zh-TW/reference/ai_aging_simulation.yaml)

## V1.0

 - [POST /s2s/v2.0/task/aging](https://docs.perfectcorp.com/zh-tw/reference/ai_aging_simulation/v1.0/paths/~1s2s~1v2.0~1task~1aging/post.md): 這個端點啟動年齡模擬流程。您必須提供來源檔案（透過網址或檔案 ID）。任務會以非同步方式處理，您可以使用這個回應回傳的 task_id 查詢其狀態。
 - [GET /s2s/v2.0/task/aging/{task_id}](https://docs.perfectcorp.com/zh-tw/reference/ai_aging_simulation/v1.0/paths/~1s2s~1v2.0~1task~1aging~1%7Btask_id%7D/get.md)
