Skip to content

Conversation

@dancer
Copy link
Collaborator

@dancer dancer commented Oct 27, 2025

background

added a new example demonstrating how to use gateway image generation via openai models, tool for editing previously generated images with streaming. shows the generating a base image, then editing it with modifications

summary

  • created gateway-image-edit-tool.ts showing streaming image generation and editing
  • demonstrates image editing by passing generated images back to the model
  • follows existing streaming examples patterns

verification

example streams base image generation, then streams edited version with vibrant colors applied

tasks

  • created gateway-image-edit-tool.ts with generation and editing
  • used streamText for both generation and editing steps
  • tested and verified it works

references on docs:
https://ai-sdk.dev/providers/ai-sdk-providers/openai#image-generation-tool
https://ai-sdk.dev/providers/ai-sdk-providers/openai#model-capabilities-2

@dancer dancer changed the title feat(examples): add image editing example for openai feat(examples): add image editing example for gateway Oct 27, 2025
@gr2m gr2m added the backport label Oct 28, 2025
@dancer dancer merged commit 5f400a5 into main Oct 28, 2025
19 checks passed
@dancer dancer deleted the josh/edit branch October 28, 2025 08:50
@vercel-ai-sdk vercel-ai-sdk bot removed the backport label Oct 28, 2025
@vercel-ai-sdk
Copy link
Contributor

vercel-ai-sdk bot commented Oct 28, 2025

✅ Backport PR created: #9850

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants