feat: add Seedream (ByteDance Volcengine) as image generation provider#881
Open
richardds5 wants to merge 1 commit intogarrytan:mainfrom
Open
feat: add Seedream (ByteDance Volcengine) as image generation provider#881richardds5 wants to merge 1 commit intogarrytan:mainfrom
richardds5 wants to merge 1 commit intogarrytan:mainfrom
Conversation
Add multi-provider support to the design binary. Users can now choose between OpenAI (default) and ByteDance Seedream for text-to-image generation via `--provider seedream` or `GSTACK_DESIGN_PROVIDER=seedream`. - New `providers.ts`: ImageProvider interface + OpenAI/Seedream implementations - Auth: add ARK_API_KEY / ~/.gstack/ark.json resolution for Seedream - CLI: thread `--provider` flag through generate, variants, iterate, evolve - Size mapping: auto-upscale to Seedream's minimum pixel requirements - Vision tasks (check, diff, memory) remain OpenAI-only (no Seedream vision) - Default Seedream model: doubao-seedream-5-0-260128 (overridable via SEEDREAM_MODEL) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
/v3/images/generations)--provider seedreamflag orGSTACK_DESIGN_PROVIDERenv varUsage
Auth
Seedream uses Volcengine Ark API key:
ARK_API_KEYenvironment variable, or~/.gstack/ark.json:{ "api_key": "..." }Files changed
design/src/providers.tsImageProviderinterface + OpenAI/Seedream implementationsdesign/src/auth.tsresolveArkApiKey()/saveArkApiKey()design/src/cli.ts--providerflag to all image gen commandsdesign/src/commands.ts--providerto generate/variants/iterate/evolvedesign/src/generate.tsdesign/src/variants.tsdesign/src/iterate.tsdesign/src/evolve.tsTest plan
ARK_API_KEY, produced 2496x1664 JPEG dashboard mockupbun buildcompiles cleanly with all 17 modulesbun testpasses (pre-existing golden file failures unrelated)🤖 Generated with Claude Code