From 582fd4f72977860c6aa287645713a28a7cb39326 Mon Sep 17 00:00:00 2001 From: GameDog9988 Date: Tue, 12 Sep 2023 19:35:50 -0400 Subject: [PATCH] feat: generate images at 512x512 --- apps/client/src/app/api/generate/route.ts | 2 +- apps/client/src/app/api/replicate/route.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/app/api/generate/route.ts b/apps/client/src/app/api/generate/route.ts index 8f8ec57c..0540c252 100644 --- a/apps/client/src/app/api/generate/route.ts +++ b/apps/client/src/app/api/generate/route.ts @@ -36,7 +36,7 @@ export async function POST(req: Request) { const images = await openai.images.generate({ prompt, n: 2, - size: "1024x1024", + size: "512x512", }); return NextResponse.json({ result: images.data }); diff --git a/apps/client/src/app/api/replicate/route.ts b/apps/client/src/app/api/replicate/route.ts index eb16d0fe..7a89f6db 100644 --- a/apps/client/src/app/api/replicate/route.ts +++ b/apps/client/src/app/api/replicate/route.ts @@ -37,7 +37,7 @@ export async function POST(req: Request) { "2b017d9b67edd2ee1401238df49d75da53c523f36e363881e057f5dc3ed3c5b2", // This is the text prompt that will be submitted by a form on the frontend - input: { prompt, num_outputs: 2 }, + input: { prompt, num_outputs: 2, width: 512, height: 512 }, }), }, );