feat: adapt image tuning by engine
This commit is contained in:
@@ -31,6 +31,7 @@ export async function POST(request: Request) {
|
||||
min_ratio?: number;
|
||||
max_ratio?: number;
|
||||
force_single?: boolean;
|
||||
quality?: string;
|
||||
}>(request);
|
||||
const capability = body.capability || "image.generate";
|
||||
const assembled = body.promptAssembly
|
||||
@@ -49,7 +50,8 @@ export async function POST(request: Request) {
|
||||
height: asNumber(body.height),
|
||||
min_ratio: asNumber(body.min_ratio),
|
||||
max_ratio: asNumber(body.max_ratio),
|
||||
force_single: Boolean(body.force_single)
|
||||
force_single: Boolean(body.force_single),
|
||||
quality: typeof body.quality === "string" ? body.quality : undefined
|
||||
}, requestOrigin(request));
|
||||
return jsonOk({ job: await getGenerationJob(job.id) }, { status: 202 });
|
||||
} catch (error) {
|
||||
|
||||
@@ -120,8 +120,9 @@ export async function GET(request: Request) {
|
||||
},
|
||||
width: { type: "integer", example: 1440 },
|
||||
height: { type: "integer", example: 2560 },
|
||||
scale: { type: "number", minimum: 1, maximum: 100 },
|
||||
scale: { type: "number", minimum: 1, maximum: 100, description: "Jimeng text influence for image.generate and detail strength for image.upscale." },
|
||||
force_single: { type: "boolean" },
|
||||
quality: { type: "string", enum: ["low", "medium", "high"], description: "EvoLink image quality for image.generate and image.inpaint." },
|
||||
resolution: { type: "string", enum: ["4k", "8k"], description: "Upscale resolution for image.upscale." },
|
||||
seed: { type: "integer" },
|
||||
priority: { type: "integer", minimum: -100, maximum: 100 },
|
||||
|
||||
Reference in New Issue
Block a user