API Documentation

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

Image Editing API

Edit and transform your images using natural language instructions. This uses a dedicated manipulation endpoint.

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

Example response:

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

For more details and custom integrations, please refer to our full API documentation (coming soon).