Skip to content

Commit 8ad2819

Browse files
committed
3:4 images
1 parent 2432ab5 commit 8ad2819

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

product-image-generator/app/trigger/generate-images.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ export const generateImage = task({
7474
// Generate image
7575
await replicate.predictions.create({
7676
model: "google/nano-banana",
77-
input: { prompt: enhancedPrompt, image_input: [baseImageUrl] },
77+
input: {
78+
prompt: enhancedPrompt,
79+
image_input: [baseImageUrl],
80+
aspect_ratio: "3:4",
81+
},
7882
// pass the provided URL to Replicate's webhook, so they can "callback"
7983
webhook: token.url,
8084
webhook_events_filter: ["completed"],

0 commit comments

Comments
 (0)