feat(krea): allow Krea via managed Nous Subscription gateway - #52647
Merged
Conversation
Contributor
🔎 Lint report:
|
1 task
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
Portal/Nous-Subscription users can now use Krea image generation without a BYO
KREA_API_KEY— Krea routes through the managed Nous gateway like FAL already does.Salvage of #52128 by @rob-maron, cherry-picked onto current
mainwith authorship preserved.Changes
plugins/image_gen/krea: managed Nous gateway path (mirrors_resolve_managed_fal_gateway);is_available()now true via gateway when no direct key; newkrea-2-medium-turbomodel; style-ref URL strings coerced to{url, strength}objects (was a 422); LoRAs/moodboards fail fast with actionable errors on the managed tier; managed 4xx/429 remediation hints.tools/image_generation_tool.py: managed-mode routing for nativekrea-2-*ids → Krea plugin gateway;fal-ai/krea/v2/*stays on FAL; BYO/direct pipeline untouched.Validation
test_krea_provider.py,test_image_generation.py)x-idempotency-key(random uuid4 per request, managed path → Nous's own gateway, billing boundary). No attribution/telemetry tag.User-Agentis pre-existing.krea-2-*AND managed gateway resolvableCloses #52128.
Infographic