Endpoints
Images
OpenAI-compatible endpoints for generating and editing images.
Generate images from a prompt, or edit existing ones. Both endpoints are OpenAI-compatible.
POST
https://api.spoofzone.com/v1/images/generationsPOST
https://api.spoofzone.com/v1/images/editsGenerate
modelstringrequirednano-banana-pro or nano-banana-2. See Models.
promptstringrequiredWhat to generate. Up to 8,000 characters.
sizestringdefault: 1K1K, 2K, or 4K.
aspect_ratiostringdefault: 1:1One of 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9.
response_formatstringdefault: b64_jsonb64_json for inline base64, or url for a hosted link.
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.