/api

Developer API

REST endpoints for image generation and editing. Authenticate with an API key. Each call spends Pro credits (enforced).

Your keys

POST /api/v1/generate

5 credits. Body: prompt, optional style / aspect / negative.

curl -X POST https://aiimagesvideo.com/api/v1/generate \
  -H "X-API-Key: aiv_…" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"neon canyon astronaut","style":"Cinematic","aspect":"16:9"}'

POST /api/v1/edit

5 credits. Body: image (data URL) + instruction.

curl -X POST https://aiimagesvideo.com/api/v1/edit \
  -H "X-API-Key: aiv_…" \
  -H "Content-Type: application/json" \
  -d '{"image":"data:image/png;base64,…","instruction":"remove background"}'