Developer Documentation

Comprehensive documentation, API references, and tutorials to help you integrate AI image generation into your applications.

Quick Example

Generate an image with just a few lines of code.

// Generate an image using fetch
const response = await fetch('https://app.apimage.org/api/v1/image-studio', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer sk_your_api_key_here',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    prompt: 'A cyberpunk city with flying cars and neon signs',
    model: 'flux-2-pro',
    aspect_ratio: '16:9',
    resolution: 'Full HD'
  })
});

const data = await response.json();
console.log(data.image_url);

Start Building Today

Get your API key and start integrating AI image generation in minutes.