Skip to content

Commit

Permalink
small readme update with image generation example
Browse files Browse the repository at this point in the history
  • Loading branch information
vulus98 committed Jul 17, 2024
1 parent f3155e9 commit b3e0b99
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions plugins/openai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b3e0b99

Please sign in to comment.