From 0a52bca70e8bc66dd28184f3c39897edd63f9395 Mon Sep 17 00:00:00 2001 From: aculeasis <42580940+Aculeasis@users.noreply.github.com> Date: Sun, 3 May 2026 08:36:49 +0300 Subject: [PATCH 1/2] feat(image-gen): add NanoGPT image generation provider MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Register NanoGPT as an image generation provider with OpenAI-compatible format. Includes 4 initial subscription-available models: Chroma, Hidream I1 Full, Qwen Image, and Z Image Turbo. NanoGPT is itself an aggregator with many more models available — these are the ones currently accessible under a standard subscription tier. --- open-sse/config/imageRegistry.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/open-sse/config/imageRegistry.ts b/open-sse/config/imageRegistry.ts index a9fc20da0e6c..dc8ccfaf9b9a 100644 --- a/open-sse/config/imageRegistry.ts +++ b/open-sse/config/imageRegistry.ts @@ -437,6 +437,20 @@ export const IMAGE_PROVIDERS: Record = { models: [{ id: "topaz-enhance", name: "topaz-enhance", inputModalities: ["image"] }], supportedSizes: ["1024x1024"], }, + nanogpt: { + id: "nanogpt", + baseUrl: "https://nano-gpt.com/api/v1/images/generations", + authType: "apikey", + authHeader: "bearer", + format: "openai", + models: [ + { id: "qwen-image", name: "Qwen Image", inputModalities: ["text", "image"] }, + { id: "z-image-turbo", name: "Z Image Turbo" }, + { id: "chroma", name: "Chroma" }, + { id: "hidream", name: "Hidream I1 Full" }, + ], + supportedSizes: ["1024x1024", "1024x1280", "1280x1024"], + }, }; /** From 01faee5bf411c7343149a9e459ab98be5370cedb Mon Sep 17 00:00:00 2001 From: aculeasis <42580940+Aculeasis@users.noreply.github.com> Date: Sun, 3 May 2026 08:56:43 +0300 Subject: [PATCH 2/2] fix(image-gen): add qwen-image to image-to-image model set --- open-sse/handlers/imageGeneration.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/open-sse/handlers/imageGeneration.ts b/open-sse/handlers/imageGeneration.ts index f0303753463c..09777ece75b1 100644 --- a/open-sse/handlers/imageGeneration.ts +++ b/open-sse/handlers/imageGeneration.ts @@ -45,6 +45,7 @@ const OPENAI_IMAGE_TO_IMAGE_MODELS = new Set([ "flux-kontext-max", "flux-kontext", "flux-kontext-pro", + "qwen-image", ]); const BFL_MODEL_ENDPOINTS = {