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

# AI Breast Expansion API

> AI Breast Expansion API enlarges the bust area in portraits while preserving face, clothing, background, and body proportions.

## Request

* **URL**: `https://www.ailabapi.com/api/portrait/editing/ai-big-tits`
* **Method**: `POST`
* **Content-Type**: `multipart/form-data`

### Image requirements

* **Image format**: `JPEG` `JPG` `PNG` `BMP`
* **Image size**: No more than 3 MB.
* **Image resolution**: Larger than 32x32px, smaller than 5000x5000px.

### Headers

| Field              | Required | Type     | Description                                           |
| :----------------- | :------- | :------- | :---------------------------------------------------- |
| `ailabapi-api-key` | YES      | `string` | Application API KEY. [Get API KEY](/docs/get-api-key) |

### Body

| Field          | Required | Type     | Description                                            |
| :------------- | :------- | :------- | :----------------------------------------------------- |
| `person_image` | YES      | `file`   | Portrait image for ai breast expansion processing.     |
| `task_type`    | NO       | `string` | Set to `async` (default) to process in the background. |

## Response

<Warning>
  **Response Field Handling Flow**

  1. **Handle `Public Response Fields`**

     Parse and validate the `Public Response Fields`, checking the status code or response message to ensure the request is successful and error-free.

  2. **Handle `Business Response Fields`**

     If the `Public Response Fields` are valid and error-free, proceed with processing the business logic in the `Business Response Fields`.
</Warning>

### Public Response Fields

<a href="/docs/response-description" target="_blank">Viewing Public Response Fields and Error Codes</a>

### Business Response Fields

| Field    | Type     | Description                              |
| :------- | :------- | :--------------------------------------- |
| `data`   | `object` | The content of the result data returned. |
| +`image` | `string` | Resulting image URL address.             |

<Tip>
  All result URLs are temporarily available and will expire after 24 hours.
</Tip>

### Response Example

```json theme={null}
{
  "request_id":   "",
  "log_id":       "",
  "error_code":   0,
  "error_msg":    "",
  "error_detail": {
    "status_code": 200,
    "code":        "",
    "code_message":"",
    "message":     ""
  },
  "data": {
    "image": "https://***.jpg"
  }
}
```
