API Reference

Generate AI art from image

Transform a photo into AI-generated art using various styles. The style list and preview images are in this link.

The styles can be divided into two categories: v1 (global image transformation) and v2 (avatar-oriented transformation). v1 is preferred for images with multiple subjects, while v2 is designed for a single person.

Model:fairy-ai-art-gen
Credit:6
post/v1/images/generates/art

AuthorizationThis endpoint requires an API key. Pass it in the api-key header on every request. Learn more

Parameters

NameTypeStatusDescription
input_image
fileRequiredImage file or URL to transform into art.
style
stringRequiredArt style to apply.

Responses

Art image generated successfullySingleImageResponse

FieldTypeDescription
createdintegerUnix timestamp of when the response was created
dataobject[]
urlstringURL to download the result image
curl -X POST "https://api.snapedit.app/v1/images/generates/art" \
  -H "api-key: YOUR_API_KEY" \
  -F "input_image=@./image.jpg" \
  -F "style=value"
Response
{
  "created": 1745827200,
  "data": [
    {
      "url": "https://outputs.snapedit.app/outputs/abc123.png"
    }
  ]
}

Examples (1 example)

Input

Input 1

Output

Output