Repository navigation
Add support for generating images using models hosted on Together AI - #976
Merged
Merged
Conversation
…ster that with the Image Service and Image Generation Feature
…more obvious that a model needs to be selected. Also set the first model as the default if none are selected, ensuring things work out of the box without additional changes
iamdharmesh
previously approved these changes
Aug 18, 2025
iamdharmesh
left a comment
Member
There was a problem hiding this comment.
Code looks good and I have tested it using FLUX.1 [schnell] Free model and it works well. Add minor note to discuss otherwise we are good to go here.
…s.js Co-authored-by: Dharmesh Patel <dspatel44@gmail.com>
iamdharmesh
approved these changes
Aug 18, 2025
1 task done
1 of 8 tasks
2 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of the Change
This PR brings support for the Together AI platform within the Image Generation Feature. Together AI allows you to easily make API requests to lots of different models that they host, with many of these models being open source.
For image generation, they currently have 13 different models you can choose from, with one of those (FLUX.1 [schnell] Free) being completely free, though limited to I think 3 requests per minute and only a single image generated at a time. Other models will provide better quality results with fairly reasonable pricing (typically around 5 cents per image).
I envision this being the first step to integrating Together AI across all of our other Features, as they have multiple models for text generation, transcription, text to speech, moderation and embeddings. By adding this as a Provider for all of those, someone can more easily use various open source models and have better control over where their data is sent. I see this as a middle ground between someone going the completely self-hosted route (which we support using Ollama) and someone using a non-open-source solution like OpenAI.
How to test the Change
FLUX.1 [schnell] Freemodel to avoid any costsChangelog Entry
Credits
Props @dkotter
Checklist: