Nara Lens/Docs

Image Processing

Learn how to work with images in Nara Lens.

Supported Formats

  • JPEG / JPG
  • PNG
  • WebP
  • GIF (first frame only)
  • BMP

Input Methods

You can provide images in three ways:

1. URL

JSON
{
  "image": "https://example.com/photo.jpg"
}

2. Base64

JSON
{
  "image": "data:image/jpeg;base64,/9j/4AAQSkZJRg..."
}

3. Direct Upload

Bash
curl -X POST https://api.naralens.com/v1/analyze \
  -H "Authorization: Bearer $NARA_API_KEY" \
  -F "image=@/path/to/image.jpg" \
  -F "perception=detect:person"

Size Limits

DimensionLimit
Max file size20 MB
Max dimensions4096 x 4096 px
Min dimensions32 x 32 px