You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For more on `generateImage()` see [Image Generation](/docs/ai-sdk-core/image-generation).
1410
1410
1411
-
OpenAI's image models may return a revised prompt for each image. It can be access at `providerMetadata.openai.images[0]?.revisedPrompt`.
1411
+
OpenAI's image models return additional metadata in the response that can be
1412
+
accessed via `providerMetadata.openai`. The following OpenAI-specific metadata
1413
+
is available:
1414
+
1415
+
-**images**_Array<object>_
1416
+
1417
+
Array of image-specific metadata. Each image object may contain:
1418
+
1419
+
-`revisedPrompt`_string_ - The revised prompt that was actually used to generate the image (OpenAI may modify your prompt for safety or clarity)
1420
+
-`created`_number_ - The Unix timestamp (in seconds) of when the image was created
1421
+
-`size`_string_ - The size of the generated image. One of `1024x1024`, `1024x1536`, or `1536x1024`
1422
+
-`quality`_string_ - The quality of the generated image. One of `low`, `medium`, or `high`
1423
+
-`background`_string_ - The background parameter used for the image generation. Either `transparent` or `opaque`
1424
+
-`outputFormat`_string_ - The output format of the generated image. One of `png`, `webp`, or `jpeg`
1412
1425
1413
1426
For more information on the available OpenAI image model options, see the [OpenAI API reference](https://platform.openai.com/docs/api-reference/images/create).
0 commit comments