Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

feat(image-gen): add NanoGPT image generation provider (#1899)

Aculeasis37a4a66e9375
diff --git a/open-sse/config/imageRegistry.ts b/open-sse/config/imageRegistry.ts
index a9fc20da0e..dc8ccfaf9b 100644
--- a/open-sse/config/imageRegistry.ts
+++ b/open-sse/config/imageRegistry.ts
@@ -437,6 +437,20 @@ export const IMAGE_PROVIDERS: Record<string, ImageProviderConfig> = {
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"],
+ },
};
/**
diff --git a/open-sse/handlers/imageGeneration.ts b/open-sse/handlers/imageGeneration.ts
index f030375346..09777ece75 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 = {