From b3e0b997c2b6cefca696e3e2ae2f7735ea5096f7 Mon Sep 17 00:00:00 2001 From: Vukasin Bozic Date: Wed, 17 Jul 2024 10:21:50 +0200 Subject: [PATCH] small readme update with image generation example --- plugins/openai/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/plugins/openai/README.md b/plugins/openai/README.md index dffc450b..88472744 100644 --- a/plugins/openai/README.md +++ b/plugins/openai/README.md @@ -79,6 +79,22 @@ const response = await generate({ console.log(await response.text()); ``` +### Image Generation + +```typescript +const response = await generate({ + model: DallE3, + prompt: 'A cartoon image of a dog in a cyberpunk setting', + config: { + size: "1024x1024", + }, + output: { + format: "media", + }, +}); +``` + + ### Within a flow ```typescript