Skip to content

Commit

Permalink
feat: generate images at 512x512
Browse files Browse the repository at this point in the history
  • Loading branch information
agrattan0820 committed Sep 12, 2023
1 parent dd9c8af commit 582fd4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/client/src/app/api/generate/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down
2 changes: 1 addition & 1 deletion apps/client/src/app/api/replicate/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
}),
},
);
Expand Down

0 comments on commit 582fd4f

Please sign in to comment.