Art to XML API

Convert artwork, images, and creative content into structured XML formats with precise metadata control.

How It Works

Input Art

Upload or provide a link to any art file (PNG, JPEG, SVG, etc.).

Process

Our AI analyzes colors, shapes, and metadata to generate XML elements.

Output

Receive structured XML content with tags for shapes, colors, and metadata.

Example XML Output


  SVG
  
    Anonymous
    2025-09-12
  
  
    
    
  

                    

Endpoints

POST /art2xml/convert

Convert an uploaded artwork file or image URL to structured XML format with customizable output settings.

curl -X POST "https://elnhna.com/art2xml/convert" \ -H "Authorization: Bearer YOUR_API_KEY" \ -F "file=@/path/to/artwork.jpg" \ -F "format=vector"
Parameters:
  • file: (required) Art file to convert (PNG/JPG/SVG)
  • format: Output XML format (vector, shape-data, etc.)
  • include_metadata: (optional) Boolean to include artist info

POST /art2xml/batch

Process multiple artworks simultaneously with advanced optimization settings and format control.

curl -X POST "https://elnhna.com/art2xml/batch" \ -H "Authorization: Bearer YOUR_API_Key" \ -F "files[]=@art1.png" \ -F "files[]=@art2.svg" \ -F "output=xml_array"
Parameters:
  • files[]: (required) Multiple art files to convert
  • output: Result format (xml_array, zip, json)
  • optimize: (optional) Enable geometric simplification

Authentication

Bearer Token Required

  1. Request a token via POST /api/v1/auth/token
  2. Include in requests using Authorization: Bearer [token]
  3. Tokens expire in 24 hours

Rate Limits

100 requests/minute for free tier | 1000 requests/minute for enterprise plans.