Content
Generate an image
Generates an image via the Brew AI image pipeline. text-to-image (default) creates from a prompt; image-editing edits image1 (required) guided by the prompt. Returns a CDN-hosted URL. Usage-metered: charges the actual image gateway cost (no fixed price).
post/v1/content/generate-image
Request
- Base URLhttps://brew.new/api
- Auth
- HTTP bearer
- or API key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Idempotency-Keystring
Optional idempotency key for safe retries. Reusing the same key with the same request body returns the original response for 24 hours.
Request body
Response
The operation result.
Changes
No recorded changes to this operation across all 1 revision of this API.