From 0cc0da37f3764bf1db3d07f2369b41844bba8dc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9raud=20Le=20Falher?= Date: Fri, 25 Apr 2025 17:50:12 +0200 Subject: [PATCH] Update image_generation.md (#10312) Copy parameters `size` and `quality` from [OpenAI API page](https://platform.openai.com/docs/api-reference/images/create) --- docs/my-website/docs/image_generation.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/my-website/docs/image_generation.md b/docs/my-website/docs/image_generation.md index 5fe0bfb7d4..454b1cd7ce 100644 --- a/docs/my-website/docs/image_generation.md +++ b/docs/my-website/docs/image_generation.md @@ -108,11 +108,15 @@ Any non-openai params, will be treated as provider-specific params, and sent in - `n`: *int (optional)* The number of images to generate. Must be between 1 and 10. For dall-e-3, only n=1 is supported. -- `quality`: *string (optional)* The quality of the image that will be generated. hd creates images with finer details and greater consistency across the image. This param is only supported for dall-e-3. - +- `quality`: *string (optional)* The quality of the image that will be generated. + * `auto` (default value) will automatically select the best quality for the given model. + * `high`, `medium` and `low` are supported for `gpt-image-1`. + * `hd` and `standard` are supported for `dall-e-3`. + * `standard` is the only option for `dall-e-2`. + - `response_format`: *string (optional)* The format in which the generated images are returned. Must be one of url or b64_json. -- `size`: *string (optional)* The size of the generated images. Must be one of 256x256, 512x512, or 1024x1024 for gpt-image-1. Must be one of 1024x1024, 1792x1024, or 1024x1792 for dall-e-3 models. +- `size`: *string (optional)* The size of the generated images. Must be one of `1024x1024`, `1536x1024` (landscape), `1024x1536` (portrait), or `auto` (default value) for `gpt-image-1`, one of `256x256`, `512x512`, or `1024x1024` for `dall-e-2`, and one of `1024x1024`, `1792x1024`, or `1024x1792` for `dall-e-3`. - `timeout`: *integer* - The maximum time, in seconds, to wait for the API to respond. Defaults to 600 seconds (10 minutes).