Endpoints

Images

OpenAI-compatible endpoints for generating and editing images.

Generate images from a prompt, or edit existing ones. Both endpoints are OpenAI-compatible.

POSThttps://api.spoofzone.com/v1/images/generations
POSThttps://api.spoofzone.com/v1/images/edits

Generate

modelstringrequired

nano-banana-pro or nano-banana-2. See Models.

promptstringrequired

What to generate. Up to 8,000 characters.

sizestringdefault: 1K

1K, 2K, or 4K.

aspect_ratiostringdefault: 1:1

One of 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9.

response_formatstringdefault: b64_json

b64_json for inline base64, or url for a hosted link.

curl https://api.spoofzone.com/v1/images/generations \
-H "x-api-key: $SPOOF_API_KEY" \
-H "content-type: application/json" \
-d '{
  "model": "nano-banana-pro",
  "prompt": "a neon koi drifting through violet storm clouds",
  "size": "1K",
  "aspect_ratio": "1:1"
}'
bash · 9 lines

Edit

/v1/images/edits accepts multipart/form-data with the same scalar fields plus one to fourteen reference images (field name image). Use it for edits, style transfer, and multi-image blends.

You only pay for images that are successfully delivered.

Images | Spoof