AI Nail Art
curl --request POST \
--url https://www.ailabapi.com/api/image/editing/ai-nail-art \
--header 'Content-Type: multipart/form-data' \
--header 'ailabapi-api-key: <api-key>' \
--form image='@example-file' \
--form 'nail_name=Golden Butterfly Glow' \
--form 'nail_desc=Champagne nude shimmer with gold butterfly accents for a soft, luxe finish.'import requests
url = "https://www.ailabapi.com/api/image/editing/ai-nail-art"
files = { "image": ("example-file", open("example-file", "rb")) }
payload = {
"nail_name": "Golden Butterfly Glow",
"nail_desc": "Champagne nude shimmer with gold butterfly accents for a soft, luxe finish."
}
headers = {"ailabapi-api-key": "<api-key>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('image', '<string>');
form.append('nail_name', 'Golden Butterfly Glow');
form.append('nail_desc', 'Champagne nude shimmer with gold butterfly accents for a soft, luxe finish.');
const options = {method: 'POST', headers: {'ailabapi-api-key': '<api-key>'}};
options.body = form;
fetch('https://www.ailabapi.com/api/image/editing/ai-nail-art', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.ailabapi.com/api/image/editing/ai-nail-art",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"image\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"nail_name\"\r\n\r\nGolden Butterfly Glow\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"nail_desc\"\r\n\r\nChampagne nude shimmer with gold butterfly accents for a soft, luxe finish.\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Content-Type: multipart/form-data",
"ailabapi-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.ailabapi.com/api/image/editing/ai-nail-art"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"image\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"nail_name\"\r\n\r\nGolden Butterfly Glow\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"nail_desc\"\r\n\r\nChampagne nude shimmer with gold butterfly accents for a soft, luxe finish.\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("ailabapi-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://www.ailabapi.com/api/image/editing/ai-nail-art")
.header("ailabapi-api-key", "<api-key>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"image\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"nail_name\"\r\n\r\nGolden Butterfly Glow\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"nail_desc\"\r\n\r\nChampagne nude shimmer with gold butterfly accents for a soft, luxe finish.\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.ailabapi.com/api/image/editing/ai-nail-art")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["ailabapi-api-key"] = '<api-key>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"image\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"nail_name\"\r\n\r\nGolden Butterfly Glow\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"nail_desc\"\r\n\r\nChampagne nude shimmer with gold butterfly accents for a soft, luxe finish.\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"request_id": "",
"log_id": "",
"error_detail": {
"code": "",
"code_message": "",
"message": ""
},
"task_type": "async",
"task_id": ""
}AI Nail Art
AI Nail Art API
AI Nail Art API applies prompt-based nail designs to real nail photos, creating realistic manicure previews for beauty apps.
POST
/
api
/
image
/
editing
/
ai-nail-art
AI Nail Art
curl --request POST \
--url https://www.ailabapi.com/api/image/editing/ai-nail-art \
--header 'Content-Type: multipart/form-data' \
--header 'ailabapi-api-key: <api-key>' \
--form image='@example-file' \
--form 'nail_name=Golden Butterfly Glow' \
--form 'nail_desc=Champagne nude shimmer with gold butterfly accents for a soft, luxe finish.'import requests
url = "https://www.ailabapi.com/api/image/editing/ai-nail-art"
files = { "image": ("example-file", open("example-file", "rb")) }
payload = {
"nail_name": "Golden Butterfly Glow",
"nail_desc": "Champagne nude shimmer with gold butterfly accents for a soft, luxe finish."
}
headers = {"ailabapi-api-key": "<api-key>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('image', '<string>');
form.append('nail_name', 'Golden Butterfly Glow');
form.append('nail_desc', 'Champagne nude shimmer with gold butterfly accents for a soft, luxe finish.');
const options = {method: 'POST', headers: {'ailabapi-api-key': '<api-key>'}};
options.body = form;
fetch('https://www.ailabapi.com/api/image/editing/ai-nail-art', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.ailabapi.com/api/image/editing/ai-nail-art",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"image\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"nail_name\"\r\n\r\nGolden Butterfly Glow\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"nail_desc\"\r\n\r\nChampagne nude shimmer with gold butterfly accents for a soft, luxe finish.\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Content-Type: multipart/form-data",
"ailabapi-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.ailabapi.com/api/image/editing/ai-nail-art"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"image\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"nail_name\"\r\n\r\nGolden Butterfly Glow\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"nail_desc\"\r\n\r\nChampagne nude shimmer with gold butterfly accents for a soft, luxe finish.\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("ailabapi-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://www.ailabapi.com/api/image/editing/ai-nail-art")
.header("ailabapi-api-key", "<api-key>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"image\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"nail_name\"\r\n\r\nGolden Butterfly Glow\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"nail_desc\"\r\n\r\nChampagne nude shimmer with gold butterfly accents for a soft, luxe finish.\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.ailabapi.com/api/image/editing/ai-nail-art")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["ailabapi-api-key"] = '<api-key>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"image\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"nail_name\"\r\n\r\nGolden Butterfly Glow\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"nail_desc\"\r\n\r\nChampagne nude shimmer with gold butterfly accents for a soft, luxe finish.\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"request_id": "",
"log_id": "",
"error_detail": {
"code": "",
"code_message": "",
"message": ""
},
"task_type": "async",
"task_id": ""
}Request
- URL:
https://www.ailabapi.com/api/image/editing/ai-nail-art - Method:
POST - Content-Type:
multipart/form-data
Image requirements
- Image format:
JPEGJPGPNGWEBP - Image size: No more than 10 MB.
- Image resolution: Less than 4096x4096px.
Headers
| Field | Required | Type | Description |
|---|---|---|---|
ailabapi-api-key | YES | string | Application API KEY. Get API KEY |
Body
| Field | Required | Type | Scope | Default | Description |
|---|---|---|---|---|---|
image | YES | file | Original image. | ||
nail_name | YES | string | Nail name (English only). Max 500 characters; extra text will be automatically truncated. Use standard vocabulary to pass review. | ||
nail_desc | YES | string | Nail description (English only). Max 1000 characters; extra text will be automatically truncated. Use standard vocabulary to pass review. |
Response
Response Field Handling Flow
-
Handle
Public Response FieldsParse and validate thePublic Response Fields, checking the status code or response message to ensure the request is successful and error-free. -
Handle
Business Response FieldsIf thePublic Response Fieldsare valid and error-free, proceed with processing the business logic in theBusiness Response Fields.
Public Response Fields
Viewing Public Response Fields and Error CodesBusiness Response Fields
| Field | Type | Scope | Description |
|---|---|---|---|
task_type | string | async | Task Type. “async: Asynchronous tasks. |
task_id | string | Asynchronous 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.Authorizations
API Key for authentication
Body
multipart/form-data
Original image.
- Image format:
JPEGJPGPNGWEBP - Image size: No more than 10 MB.
- Image resolution: Less than 4096x4096px.
Nail Name (English only). Max 500 characters; extra text will be automatically truncated. Use standard vocabulary to pass review.
Maximum string length:
500Example:
"Golden Butterfly Glow"
Nail Description (English only). Max 1000 characters; extra text will be automatically truncated. Use standard vocabulary to pass review.
Maximum string length:
1000Example:
"Champagne nude shimmer with gold butterfly accents for a soft, luxe finish."
Response
200 - application/json
Success
The response is of type object.
⌘I

