Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/sixty-spiders-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@ai-sdk/gateway': patch
'ai': patch
---

feat(provider/gateway): add support for image models
14 changes: 14 additions & 0 deletions examples/ai-core/src/generate-image/gateway.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { experimental_generateImage as generateImage } from 'ai';
import { presentImages } from '../lib/present-image';
import 'dotenv/config';

async function main() {
const { images } = await generateImage({
model: 'bfl/flux-kontext-pro',
prompt:
'A cat wearing an intricate robe while gesticulating wildly, in the style of 80s pop art',
});
await presentImages(images);
}

main().catch(console.error);
Loading
Loading