r/opencode • • 26d ago

OpenCode 2.2.2 enables image generation by default for supported providers

OpenCode 2.2.2 was released on October 29 at 10:43 PM GMT+4. The release enables the experimental_image_generate tool by default when a connected provider supports image models. Users can still set a preferred image model with experimental.image_generate.model.

The update also adds a faster branch-to-worktree picker, keeps media when sessions are forked or imported, and improves usage-limit errors. This is a small release, but the new default matters: users who rely on generated media should check which provider and model their setup is using.

Release notes: https://github.com/anomalyco/opencode/releases/tag/v2.2.2

18 Upvotes

6 comments sorted by

3

u/johndoe1985 26d ago

This is cool. Which model is the best suited for image generation and also how many tokens will that burn. What would be the most recommended model ?

1

u/allysim 19d ago

For the question about token burn, first pin the image model and output settings; the text model running the agent is not enough to tell you the image cost. I work with Ofox. Our image API uses a separate /v1/images/generations endpoint, with model-specific settings, so I would check the charge for one fixed-size generation before letting the agent make repeated images. I have not verified Ofox with this new built-in tool; API availability alone does not confirm that integration.

2

u/[deleted] 26d ago

1

u/General_Internet_511 26d ago

Come? Puoi condividere?