Imagia AI

Imagia AI API

Integrate our powerful AI image editing capabilities into your own applications.

Enhance Image API
Automatically improve image quality using AI. This endpoint sharpens, denoises, and improves the overall visual appeal of an image.

HTTP Request

POST /api/enhance

Request Body (JSON)

  • photoDataUri (string, required): A data URI of the image to enhance.

Example

Code (JavaScript Fetch)

fetch('https://ai-image-editor-eta.vercel.app/api/enhance', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    photoDataUri: 'data:image/jpeg;base64,...' // Your base64 encoded image data URI
  }),
})
.then(response => response.json())
.then(data => console.log(data));

Success Response (200)

{
  "enhancedPhotoDataUri": "data:image/png;base64,..."
}

Error Response (500)

{
  "error": "Failed to enhance image"
}

API Tester

Drag & Drop Your Image

or click below to select a file from your computer

Supports: PNG, JPG, GIF

API response will be displayed here