Generate images
storage is optional and defaults to durable, which copies output to NinjaChat storage and returns a permanent URL. Set storage=provider to skip that copy for lower latency; provider mode returns either a temporary provider URL or b64_json plus mime_type.
post/images/generations
Request
- Base URL: https://www.ninjachat.ai/api/v1
- URL: https://www.ninjachat.ai/api/v1/images/generations
- Auth: HTTP bearer
Headers
Idempotency-Keystring
Safely retry the same logical write without duplicate billing or execution.
Request body
Response
Generated images and unit cost.
Changes
No recorded changes to this operation across all 1 revision of this API.