---
title: MediaPipe Eyes Mesh | Runware Docs
url: https://runware.ai/docs/models/mediapipe-eyes-mesh
description: Specialized eye mask generation from facial landmarks
---
# MediaPipe Eyes Mesh

MediaPipe Eyes Mesh is an image masking model specialized for generating black-and-white masks over the eye regions using MediaPipe facial landmarks. It is suited to selective edits, makeup-style retouching, and targeted eye-area enhancement workflows.

- **ID**: `runware:35@15`
- **Status**: live
- **Release Date**: September 25, 2020
- **Capabilities**: Image to Image, Mask

## Request Parameters

**API Options**

Platform-level options for task execution and delivery.

### [taskType](https://runware.ai/docs/models/mediapipe-eyes-mesh#request-tasktype)

- **Type**: `string`
- **Required**: true
- **Value**: `imageMasking`

Identifier for the type of task being performed

### [taskUUID](https://runware.ai/docs/models/mediapipe-eyes-mesh#request-taskuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.

### [outputType](https://runware.ai/docs/models/mediapipe-eyes-mesh#request-outputtype)

- **Type**: `string`
- **Default**: `URL`

Image output type.

**Allowed values**: `URL` `base64Data` `dataURI`

### [outputFormat](https://runware.ai/docs/models/mediapipe-eyes-mesh#request-outputformat)

- **Type**: `string`
- **Default**: `JPG`

Specifies the file format of the generated output. The available values depend on the task type and the specific model's capabilities.

- \`JPG\`: Best for photorealistic images with smaller file sizes (no transparency).
- \`PNG\`: Lossless compression, supports high quality and transparency (alpha channel).
- \`WEBP\`: Modern format providing superior compression and transparency support.

> [!NOTE]
> \*\*Transparency\*\*: If you are using features like background removal or LayerDiffuse that require transparency, you must select a format that supports an alpha channel (e.g., \`PNG\`, \`WEBP\`, \`TIFF\`). \`JPG\` does not support transparency.

**Allowed values**: `JPG` `PNG` `WEBP`

### [webhookURL](https://runware.ai/docs/models/mediapipe-eyes-mesh#request-webhookurl)

- **Type**: `string`
- **Format**: `URI`

Specifies a webhook URL where JSON responses will be sent via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.

**Learn more** (1 resource):

- [Webhooks](https://runware.ai/docs/platform/webhooks) (platform)

### [deliveryMethod](https://runware.ai/docs/models/mediapipe-eyes-mesh#request-deliverymethod)

- **Type**: `string`
- **Default**: `sync`

Determines how the API delivers task results.

**Allowed values**:

- `sync` Returns complete results directly in the API response.
- `async` Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse.

**Learn more** (1 resource):

- [Task Polling](https://runware.ai/docs/platform/task-polling) (platform)

### [uploadEndpoint](https://runware.ai/docs/models/mediapipe-eyes-mesh#request-uploadendpoint)

- **Type**: `string`
- **Format**: `URI`

Specifies a URL where the generated content will be automatically uploaded using the HTTP PUT method. The raw binary data of the media file is sent directly as the request body. For secure uploads to cloud storage, use presigned URLs that include temporary authentication credentials.

**Common use cases:**

- **Cloud storage**: Upload directly to S3 buckets, Google Cloud Storage, or Azure Blob Storage using presigned URLs.
- **CDN integration**: Upload to content delivery networks for immediate distribution.

```text
// S3 presigned URL for secure upload
https://your-bucket.s3.amazonaws.com/generated/content.mp4?X-Amz-Signature=abc123&X-Amz-Expires=3600

// Google Cloud Storage presigned URL
https://storage.googleapis.com/your-bucket/content.jpg?X-Goog-Signature=xyz789

// Custom storage endpoint
https://storage.example.com/uploads/generated-image.jpg
```

The content data will be sent as the request body to the specified URL when generation is complete.

### [ttl](https://runware.ai/docs/models/mediapipe-eyes-mesh#request-ttl)

- **Type**: `integer`
- **Min**: `60`

Time-to-live (TTL) in seconds for generated content. Only applies when `outputType` is `URL`.

### [includeCost](https://runware.ai/docs/models/mediapipe-eyes-mesh#request-includecost)

- **Type**: `boolean`
- **Default**: `false`

Include task cost in the response.

**Inputs**

Input resources for the task (images, audio, etc). These must be nested inside the \`inputs\` object.

### [image](https://runware.ai/docs/models/mediapipe-eyes-mesh#request-inputs-image)

- **Path**: `inputs.image`
- **Type**: `string`
- **Required**: true

Image input (UUID, URL, Data URI, or Base64).

**Core Parameters**

Primary parameters that define the task output.

### [model](https://runware.ai/docs/models/mediapipe-eyes-mesh#request-model)

- **Type**: `string`
- **Required**: true
- **Value**: `runware:35@15`

Identifier of the model to use for generation.

**Settings**

Technical parameters to fine-tune the inference process. These must be nested inside the \`settings\` object.

### [confidence](https://runware.ai/docs/models/mediapipe-eyes-mesh#request-settings-confidence)

- **Path**: `settings.confidence`
- **Type**: `float`
- **Min**: `0`
- **Max**: `1`
- **Step**: `0.01`
- **Default**: `0.5`

Confidence threshold for detections. Only detections above this score are included.

### [maxDetections](https://runware.ai/docs/models/mediapipe-eyes-mesh#request-settings-maxdetections)

- **Path**: `settings.maxDetections`
- **Type**: `integer`
- **Min**: `1`
- **Max**: `100`
- **Default**: `1`

Maximum number of detections. Prioritizes highest confidence scores if exceeded.

### [maskPadding](https://runware.ai/docs/models/mediapipe-eyes-mesh#request-settings-maskpadding)

- **Path**: `settings.maskPadding`
- **Type**: `integer`
- **Min**: `0`
- **Max**: `200`
- **Default**: `10`

Pixel amount to extend (positive) or shrink (negative) the mask area.

### [maskBlur](https://runware.ai/docs/models/mediapipe-eyes-mesh#request-settings-maskblur)

- **Path**: `settings.maskBlur`
- **Type**: `integer`
- **Min**: `0`
- **Max**: `100`
- **Default**: `5`

Blur radius for mask edges, creating smooth transitions.

## Response Parameters

### [taskType](https://runware.ai/docs/models/mediapipe-eyes-mesh#response-tasktype)

- **Type**: `string`
- **Required**: true
- **Value**: `imageMasking`

Type of the task.

### [taskUUID](https://runware.ai/docs/models/mediapipe-eyes-mesh#response-taskuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID of the task.

### [maskImageURL](https://runware.ai/docs/models/mediapipe-eyes-mesh#response-maskimageurl)

- **Type**: `string`
- **Format**: `URI`

URL of the output mask image.

### [detections](https://runware.ai/docs/models/mediapipe-eyes-mesh#response-detections)

- **Path**: `detections.x_min`
- **Type**: `array of objects (4 properties)`
- **Required**: true

An array of objects containing the coordinates of each detected element in the image. Each object provides the bounding box coordinates of a detected face, hand, or person (depending on the model used).

#### [x\_min](https://runware.ai/docs/models/mediapipe-eyes-mesh#response-detections-x_min)

- **Path**: `detections.x_min`
- **Type**: `integer`
- **Required**: true

Leftmost coordinate of the detected area.

#### [y\_min](https://runware.ai/docs/models/mediapipe-eyes-mesh#response-detections-y_min)

- **Path**: `detections.y_min`
- **Type**: `integer`
- **Required**: true

Topmost coordinate of the detected area.

#### [x\_max](https://runware.ai/docs/models/mediapipe-eyes-mesh#response-detections-x_max)

- **Path**: `detections.x_max`
- **Type**: `integer`
- **Required**: true

Rightmost coordinate of the detected area.

#### [y\_max](https://runware.ai/docs/models/mediapipe-eyes-mesh#response-detections-y_max)

- **Path**: `detections.y_max`
- **Type**: `integer`
- **Required**: true

Bottommost coordinate of the detected area.

### [cost](https://runware.ai/docs/models/mediapipe-eyes-mesh#response-cost)

- **Type**: `float`

Task cost in USD. Present when `includeCost` is set to `true` in the request.

### [maskImageUUID](https://runware.ai/docs/models/mediapipe-eyes-mesh#response-maskimageuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID of the output mask image.

### [maskImageBase64Data](https://runware.ai/docs/models/mediapipe-eyes-mesh#response-maskimagebase64data)

- **Type**: `string`

Base64-encoded mask image data.

### [maskImageDataURI](https://runware.ai/docs/models/mediapipe-eyes-mesh#response-maskimagedatauri)

- **Type**: `string`
- **Format**: `URI`

Data URI of the output mask image.

### [inputImageUUID](https://runware.ai/docs/models/mediapipe-eyes-mesh#response-inputimageuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID of the input image used for masking.