Recommended endpoints
Minimal request
cURL example
Python example
Node.js example
Best practices
- Keep image generation and image editing on separate endpoints
- For iterative editing, persist the source asset IDs or previous outputs server-side
- Normalize URL and base64 handling in one backend asset layer
