OpenAI image generation

Relayed to an image model as sent, apart from model. stream is refused. Settled by the tokens the provider reports for a model priced by tokens, or by the images returned for a model priced per image.

post/v1/images/generations

Request

Headers

Idempotency-Keystring

Request body

modelstring required

A model of this kind enabled for the workspace; auto is refused.

promptstring required
ninteger
sizestring
qualitystring
response_formatstring
output_formatstring
output_compressioninteger
backgroundstring
userstring

Recorded as the request's end user.

moderationstring
stylestring

Response

The images.

object required

Changes

No recorded changes to this operation across all 1 revision of this API.