POST /v1/images/generations
Generate an image from a text prompt using an image-capable model, with the standard OpenAI images request shape plus a few Openference extensions for diffusion controls.Models
All models below cost 25 plan requests per successful image. See Image generation models for per-model parameters and examples.
These models appear on the models page and in
GET /v1/models.
Common parameters
Diffusion extensions (Stable Diffusion / Cloudflare image models)
These fields are supported in addition to the OpenAI-shaped parameters above:Notes
- Generated image URLs are hosted by Openference and remain valid — you can hot-link or download them.
- Image models cannot be used on the chat, responses, or embeddings endpoints (you’ll get HTTP 400
model_not_supported_on_endpoint), and chat models cannot be used here. - Image requests consume your plan’s request quota using each model’s multiplier (currently 25 plan requests per image for the CF models above).