Changes to Generate an image based on a prompt. This is the endpoint for making generation requests to image generation models.

POST /v1/images/generations

Every recorded change to this endpoint, newest first. Back to the operation

Changed in 2 of the 9 revisions of this API.7

  1. 0b56d0413ce02
  2. 8f60142721135

What changed

    • added the new 21:9 enum value to the request property aspect_ratio/oneOf[ImageAspectRatio]/

      request-property-enum-value-added

    • added the new 5:2 enum value to the request property aspect_ratio/oneOf[ImageAspectRatio]/

      request-property-enum-value-added

    • added the optional property usage/oneOf[MediaUsage]/input_tokens to the response with the 200 status

      response-optional-property-added

    • added the optional property usage/oneOf[MediaUsage]/input_tokens_details to the response with the 200 status

      response-optional-property-added

    • added the optional property usage/oneOf[MediaUsage]/output_tokens to the response with the 200 status

      response-optional-property-added

    • added the optional property usage/oneOf[MediaUsage]/output_tokens_details to the response with the 200 status

      response-optional-property-added

    • added the optional property usage/oneOf[MediaUsage]/total_tokens to the response with the 200 status

      response-optional-property-added