Skip to main content
POST
/
api
/
image
/
editing
/
ai-nail-art-pro
AI Nail Art Pro
curl --request POST \
  --url https://www.ailabapi.com/api/image/editing/ai-nail-art-pro \
  --header 'Content-Type: multipart/form-data' \
  --header 'ailabapi-api-key: <api-key>' \
  --form image='@example-file' \
  --form reference_image='@example-file' \
  --form resolution=1K
{
  "request_id": "",
  "log_id": "",
  "error_code": 0,
  "error_code_str": "",
  "error_msg": "",
  "error_detail": {
    "status_code": 200,
    "code": "",
    "code_message": "",
    "message": ""
  },
  "task_type": "async",
  "task_id": ""
}

Request

  • URL: https://www.ailabapi.com/api/image/editing/ai-nail-art-pro
  • Method: POST
  • Content-Type: multipart/form-data

API Information

FieldValue
API NameAI Nail Art Pro
API URL/api/image/editing/ai-nail-art-pro
Documentation URL/docs/ai-image/editing/ai-nail-art-pro
Unique identificationimage_fingernails_pro

Image requirements

FieldRequirements
imageImage format: JPEG/JPG/PNG/WEBP, Image size: No more than 10 MB., Image resolution: Less than 4096x4096px.
reference_imageImage format: JPEG/JPG/PNG/WEBP, Image size: No more than 10 MB., Image resolution: Less than 4096x4096px.

Headers

FieldRequiredTypeDescription
ailabapi-api-keyYESstringApplication API KEY. Get API KEY

Body

FieldRequiredTypeScopeDefaultDescription
imageYESfileSource image.
reference_imageYESfileReference image for guidance.
resolutionNOstring1K, 2K1KOutput resolution.

Response

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.

Public Response Fields

Viewing Public Response Fields and Error Codes

Business Response Fields

FieldTypeScopeDescription
task_typestringasyncTask Type. “async: Asynchronous tasks.
task_idstringAsynchronous task ID.
Please use this field when calling the Querying Async Task Results API.

Response Example

{
  "request_id": "",
  "log_id": "",
  "error_code": 0,
  "error_code_str": "",
  "error_msg": "",
  "error_detail": {
    "status_code": 200,
    "code": "",
    "code_message": "",
    "message": ""
  },
  "task_type": "async",
  "task_id": ""
}
This API is asynchronous, please keep task_id and call Querying Async Task Results to get the final results.Asynchronous task results are valid for 24 hours. It is recommended that asynchronous task results be queried every 5 seconds.

Sample Code

Authorizations

ailabapi-api-key
string
header
required

API Key for authentication

Body

multipart/form-data
image
file
required

Source image.

  • Image format: JPEG JPG PNG WEBP
  • Image size: No more than 10 MB.
  • Image resolution: Less than 4096x4096px.
reference_image
file
required

Reference image for guidance.

  • Image format: JPEG JPG PNG WEBP
  • Image size: No more than 10 MB.
  • Image resolution: Less than 4096x4096px.
resolution
enum<string>
default:1K

Output resolution.

Available options:
1K,
2K

Response

200 - application/json

Success

The response is of type object.