feat(external): add custom OpenAI Images-compatible provider#9156
Open
BMFreed wants to merge 1 commit into
Open
feat(external): add custom OpenAI Images-compatible provider#9156BMFreed wants to merge 1 commit into
BMFreed wants to merge 1 commit into
Conversation
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
Feature PR.
Adds a Custom OpenAI Images-compatible external provider for image generation. This gives users a manual configuration path for third-party providers that expose OpenAI-compatible Images API endpoints but do not share a reliable model/capability discovery format.
The PR adds:
custom_openai_imagesexternal provider adaptercustom_openai_images_generationinvocation and frontend graph wiringThe custom provider intentionally does not implement dynamic model or capability discovery. Users add provider model IDs manually, and unsupported provider/model parameters may still be rejected by the upstream API at request time.
Related Issues / Discussions
N/A
QA Instructions
Tested locally with:
.venv/bin/python -m ruff check invokeai/app/api/dependencies.py invokeai/app/api/routers/app_info.py invokeai/app/invocations/external_image_generation.py invokeai/app/services/config/config_default.py invokeai/app/services/external_generation/providers/__init__.py invokeai/app/services/external_generation/providers/custom_openai_images.py invokeai/app/services/external_generation/providers/openai.py invokeai/backend/model_manager/starter_models.py tests/app/services/external_generation/test_external_provider_adapters.py .venv/bin/python -m pytest tests/app/services/external_generation/test_external_provider_adapters.py -q pnpm lint pnpm exec vitest run src/features/nodes/util/graph/generation/buildExternalGraph.test.ts git diff --checkManual QA:
Merge Plan
No special merge handling expected.
This PR changes external provider config, frontend API types, generated settings docs, and generated OpenAPI TypeScript types. The branch has been rebased onto current
main, andschema.tswas regenerated after the rebase.Redux slice changes only adjust selector/default handling for external custom models; no persisted state migration is required.
Checklist
What's Newcopy (if doing a release after this PR)