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

Integrated into release/v3.7.9
This commit is contained in:
Aculeasis
2026-05-03 22:05:30 +03:00
committed by GitHub
parent 6424c82570
commit 37a4a66e93
2 changed files with 15 additions and 0 deletions

View File

@@ -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"],
},
};
/**

View File

@@ -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 = {