> ## 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 Eyeshadow Try-On API

> AI Eyeshadow Try-On API applies realistic eyeshadow styles while preserving facial features, skin tone, expression, and lighting.

export const eyeshadowStyles = [{
  value: 1,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/1.jpg"
}, {
  value: 2,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/2.jpg"
}, {
  value: 3,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/3.jpg"
}, {
  value: 4,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/4.jpg"
}, {
  value: 5,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/5.jpg"
}, {
  value: 6,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/6.jpg"
}, {
  value: 7,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/7.jpg"
}, {
  value: 8,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/8.jpg"
}, {
  value: 9,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/9.jpg"
}, {
  value: 10,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/10.jpg"
}, {
  value: 11,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/11.jpg"
}, {
  value: 12,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/12.jpg"
}, {
  value: 13,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/13.jpg"
}, {
  value: 14,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/14.jpg"
}, {
  value: 15,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/15.jpg"
}, {
  value: 16,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/16.jpg"
}, {
  value: 17,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/17.jpg"
}, {
  value: 18,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/18.jpg"
}, {
  value: 19,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/19.jpg"
}, {
  value: 20,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/20.jpg"
}, {
  value: 21,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/21.jpg"
}, {
  value: 22,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/22.jpg"
}, {
  value: 23,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/23.jpg"
}, {
  value: 24,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/24.jpg"
}, {
  value: 25,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/25.jpg"
}, {
  value: 26,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/26.jpg"
}, {
  value: 27,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/27.jpg"
}, {
  value: 28,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/28.jpg"
}, {
  value: 29,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/29.jpg"
}, {
  value: 30,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/30.jpg"
}, {
  value: 31,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/31.jpg"
}, {
  value: 32,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/32.jpg"
}, {
  value: 33,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/33.jpg"
}, {
  value: 34,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/34.jpg"
}, {
  value: 35,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/35.jpg"
}, {
  value: 36,
  image: "https://ai-resource.ailabtools.com/ai-eyeshadow/eyeshadows/36.jpg"
}];

## Query Task

<Tip>
  This is an asynchronous task API. The submission request returns only `task_id`.

  Use `task_id` to call [Querying Async Task Results](/docs/ai-common/async-task-results/api) and retrieve the final result. Async task results remain available for 24 hours. Query every 5 seconds.
</Tip>

| Field             | Type     | Description        |
| :---------------- | :------- | :----------------- |
| `data`            | `object` | Final result data. |
| +`result_urls`    | `array`  | Result image URLs. |
| ++`result_urls[]` | `string` | Result image URL.  |

```json theme={null}
{
  "data": {
    "result_urls": [""]
  }
}
```

<Tip>
  `result_urls` are temporary and remain valid for 24 hours. Download the files to your own storage before the URLs expire if you need long-term storage.
</Tip>

## Submit Task

### `eyeshadow_style`

The following enum values are supported for `eyeshadow_style`.

<Expandable title="Available Eyeshadows">
  <div className="mt-2 grid grid-cols-2 lg:grid-cols-4 align-center gap-2">
    {eyeshadowStyles.map((item) => (
            <div key={item.value} className="rounded-xl">
              <img className="w-full mt-0 mb-2 aspect-square object-contain rounded-xl" src={item.image} alt={item.value} />
              <code className="block break-all text-center text-xs">{item.value}</code>
            </div>
          ))}
  </div>
</Expandable>


## OpenAPI

````yaml POST /api/portrait/editing/ai-eyeshadow
openapi: 3.0.0
info:
  title: AILabAPI
  description: >-
    [<b>AILabTools</b>](https://www.ailabtools.com) is an advanced tool that
    offers a vast array of simple and flexible API endpoints to suit your
    specific needs. With just one [<b>API
    KEY</b>](https://www.ailabtools.com/doc/get-api-key), you can easily call
    any of the endpoints and integrate them quickly into your application or
    workflow, allowing for smooth and efficient operations.


    [<b>AILabTools</b>](https://www.ailabtools.com) is continuously evolving,
    and you can anticipate even more API endpoints being added in the future,
    further enhancing its capabilities and usefulness for your artificial
    intelligence and machine learning requirements.
  version: 1.0.0
servers:
  - url: https://www.ailabapi.com
    description: Production server
security:
  - apiKeyAuth: []
tags:
  - name: AI IMAGE
  - name: AI IMAGE > Image Enhancement
  - name: AI IMAGE > Image Effects
  - name: AI IMAGE > Image Editing
  - name: AI IMAGE > Image Scoring
  - name: AI BACKGROUND REMOVAL
  - name: AI BACKGROUND REMOVAL > Portrait
  - name: AI BACKGROUND REMOVAL > General
  - name: AI PORTRAIT
  - name: AI PORTRAIT > Portrait Effects
  - name: AI PORTRAIT > Portrait Enhance
  - name: AI PORTRAIT > Portrait Editing
  - name: AI PORTRAIT > Portrait Analysis
  - name: AI COMMON
paths:
  /api/portrait/editing/ai-eyeshadow:
    post:
      tags:
        - AI PORTRAIT > Portrait Editing
      summary: AI Eyeshadow Try-On
      description: >-
        AI Eyeshadow Try-On API applies realistic eyeshadow styles while
        preserving facial features, skin tone, expression, and lighting.
      requestBody:
        description: >-
          Provide `eyeshadow_style` or `image_template`. If both are provided,
          `eyeshadow_style` takes precedence.
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - image
              anyOf:
                - required:
                    - eyeshadow_style
                - required:
                    - image_template
              properties:
                image:
                  type: string
                  description: |-
                    Source image. 
                    - Image format: `JPEG` `JPG` `PNG` `WEBP` 
                    - Image size: No more than 10 MB. 
                    - Image resolution: Less than 4096x4096px.
                  format: binary
                eyeshadow_style:
                  type: string
                  description: >-
                    Built-in eyeshadow preset. Provide this field or
                    `image_template`. If both are provided, `eyeshadow_style`
                    takes precedence. See [Supported eyeshadow
                    styles](/docs/ai-portrait/editing/ai-eyeshadow/api#eyeshadow_style).
                  enum:
                    - 1
                    - 2
                    - 3
                    - 4
                    - 5
                    - 6
                    - 7
                    - 8
                    - 9
                    - 10
                    - 11
                    - 12
                    - 13
                    - 14
                    - 15
                    - 16
                    - 17
                    - 18
                    - 19
                    - 20
                    - 21
                    - 22
                    - 23
                    - 24
                    - 25
                    - 26
                    - 27
                    - 28
                    - 29
                    - 30
                    - 31
                    - 32
                    - 33
                    - 34
                    - 35
                    - 36
                image_template:
                  type: string
                  description: >-
                    Reference image for eyeshadow transfer. Provide this field
                    or `eyeshadow_style`. If both are provided, `image_template`
                    is ignored. 

                    - Image format: `JPEG` `JPG` `PNG` `WEBP` 

                    - Image size: No more than 10 MB. 

                    - Image resolution: Less than 4096x4096px.
                  format: binary
                aspect_ratio:
                  type: string
                  description: Output Image Aspect Ratio.
                  enum:
                    - auto
                    - '1:1'
                    - '3:4'
                    - '4:3'
                    - '9:16'
                    - '16:9'
                  default: auto
      responses:
        '200':
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/PublicResponseFields'
                  - type: object
                    required:
                      - task_id
                    properties:
                      task_id:
                        $ref: '#/components/schemas/AsyncTaskId'
              example:
                request_id: ''
                log_id: ''
                error_detail:
                  code: ''
                  code_message: ''
                  message: ''
                task_id: ''
          description: Success
components:
  schemas:
    PublicResponseFields:
      type: object
      required:
        - request_id
        - log_id
        - error_detail
      properties:
        request_id:
          type: string
          description: Request ID for debugging.
        log_id:
          type: string
          description: Log ID for debugging.
        error_detail:
          $ref: '#/components/schemas/ErrorDetail'
    AsyncTaskId:
      type: string
      description: >-
        Task ID for querying [Querying Async Task
        Results](/docs/ai-common/async-task-results/api).
    ErrorDetail:
      type: object
      required:
        - code
        - code_message
        - message
      properties:
        code:
          type: string
          description: >-
            Error Code. See [Error
            Codes](/docs/response-description#error-codes).
        code_message:
          type: string
          description: Error summary.
        message:
          type: string
          description: Detailed error message.
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: ailabapi-api-key
      description: API Key for authentication

````