typetext
{
"aspect_ratio": "match_input_image",
"image_input": [
"https://replicate.delivery/pbxt/NtYtqQV9DvjHntgwL8b7rlS6t7P2nlynLnQPkERDHjLPRRdI/replicate-prediction-zvt5hxm5pnrma0csxp28v7x978%20%281%29.jpg",
"https://replicate.delivery/pbxt/NtYtrX8rFiKVQz9nROlMH42Oz1Sz5l9oSYHrsbPd68e7MWWJ/replicate-prediction-rcmejsat2xrme0csxnys1h1ay4.jpg"
],
"output_format": "jpg",
"prompt": "Add five characters onto the existing boat deck scene — do not change the boat, mast, deck, ocean, camera, or background. Do not add any new objects. Focus only on body pose and movement. Each figure is ~0.5× human scale to fit the scene. All five face away from the camera toward the ocean, absorbed in their duties.\n\nStanding on the bench (port side, mid-deck):\n\nFeet shoulder-width, one foot slightly higher on the bench slat, knees soft for balance.\n\nHips rotated a touch toward starboard, spine tall, subtle forward lean as if bracing against motion.\n\nLeft arm relaxed at side, right forearm across mid-torso as if steadying balance; fingers loosely splayed.\n\nHead angled toward horizon, chin slightly tucked; weight shifted onto the forward foot.\n\nLeaning on the mast (centerline, slightly forward of mid-deck):\n\nSide of shoulder and upper arm in light contact with the mast, torso angled 10–15° toward it.\n\nFeet staggered front-to-back, rear heel barely lifted as if ready to move; knees softly bent.\n\nOne hand resting against the mast at chest height; the other arm down with a relaxed bend.\n\nHead turned to the seaward side, neck long, gaze tracing the waterline.\n\nSitting on the deck (starboard side, forward half):\n\nSeated with one knee up and the other leg extended; planted foot angled outward for stability.\n\nElbows resting lightly—one on the raised knee, the other along the thigh—creating a compact silhouette.\n\nBack straight with a gentle forward hinge; shoulders low and calm.\n\nHead inclined toward the open water, posture composed and attentive.\n\nNear the back looking out (stern, starboard):\n\nUpright stance, feet parallel and grounded wider than hips.\n\nTorso square to the ocean with a subtle forward lean as if reading the swells.\n\nArms relaxed at sides with a slight outward angle, fingers relaxed; shoulders even.\n\nHead level, gaze set on distant water; micro-shift of weight from heel to mid-foot.\n\nNear the back looking out (stern, port), offset from #4 for depth:\n\nStaggered stance with front foot angled slightly outward; rear knee soft.\n\nTorso rotated a few degrees toward starboard, forming a gentle S-curve through spine and hips.\n\nOne arm lightly folded across mid-torso, the other hanging naturally; wrists loose.\n\nHead tilted a few degrees, eyes line following the horizon.\n\nGlobal notes:\n\nKeep spacing natural; avoid overlapping silhouettes with existing elements.\n\nMaintain existing lighting, perspective, and deck lines; only add these five figures.\n\nExpress motion through subtle weight shifts, soft knee bends, torso leans, and head angles toward the ocean.\n\nNo props or equipment adjustments; only body language and movement."
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_35j**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run google/nano-banana using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
aspect_ratio: "match_input_image",
image_input: ["https://replicate.delivery/pbxt/NtYtqQV9DvjHntgwL8b7rlS6t7P2nlynLnQPkERDHjLPRRdI/replicate-prediction-zvt5hxm5pnrma0csxp28v7x978%20%281%29.jpg","https://replicate.delivery/pbxt/NtYtrX8rFiKVQz9nROlMH42Oz1Sz5l9oSYHrsbPd68e7MWWJ/replicate-prediction-rcmejsat2xrme0csxnys1h1ay4.jpg"],
output_format: "jpg",
prompt: "Add five characters onto the existing boat deck scene — do not change the boat, mast, deck, ocean, camera, or background. Do not add any new objects. Focus only on body pose and movement. Each figure is ~0.5× human scale to fit the scene. All five face away from the camera toward the ocean, absorbed in their duties.\n\nStanding on the bench (port side, mid-deck):\n\nFeet shoulder-width, one foot slightly higher on the bench slat, knees soft for balance.\n\nHips rotated a touch toward starboard, spine tall, subtle forward lean as if bracing against motion.\n\nLeft arm relaxed at side, right forearm across mid-torso as if steadying balance; fingers loosely splayed.\n\nHead angled toward horizon, chin slightly tucked; weight shifted onto the forward foot.\n\nLeaning on the mast (centerline, slightly forward of mid-deck):\n\nSide of shoulder and upper arm in light contact with the mast, torso angled 10–15° toward it.\n\nFeet staggered front-to-back, rear heel barely lifted as if ready to move; knees softly bent.\n\nOne hand resting against the mast at chest height; the other arm down with a relaxed bend.\n\nHead turned to the seaward side, neck long, gaze tracing the waterline.\n\nSitting on the deck (starboard side, forward half):\n\nSeated with one knee up and the other leg extended; planted foot angled outward for stability.\n\nElbows resting lightly—one on the raised knee, the other along the thigh—creating a compact silhouette.\n\nBack straight with a gentle forward hinge; shoulders low and calm.\n\nHead inclined toward the open water, posture composed and attentive.\n\nNear the back looking out (stern, starboard):\n\nUpright stance, feet parallel and grounded wider than hips.\n\nTorso square to the ocean with a subtle forward lean as if reading the swells.\n\nArms relaxed at sides with a slight outward angle, fingers relaxed; shoulders even.\n\nHead level, gaze set on distant water; micro-shift of weight from heel to mid-foot.\n\nNear the back looking out (stern, port), offset from #4 for depth:\n\nStaggered stance with front foot angled slightly outward; rear knee soft.\n\nTorso rotated a few degrees toward starboard, forming a gentle S-curve through spine and hips.\n\nOne arm lightly folded across mid-torso, the other hanging naturally; wrists loose.\n\nHead tilted a few degrees, eyes line following the horizon.\n\nGlobal notes:\n\nKeep spacing natural; avoid overlapping silhouettes with existing elements.\n\nMaintain existing lighting, perspective, and deck lines; only add these five figures.\n\nExpress motion through subtle weight shifts, soft knee bends, torso leans, and head angles toward the ocean.\n\nNo props or equipment adjustments; only body language and movement."
};
const output = await replicate.run("google/nano-banana", { input });
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_35j**********************************
This is your API token. Keep it to yourself.
import replicate
Run google/nano-banana using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"google/nano-banana",
input={
"aspect_ratio": "match_input_image",
"image_input": ["https://replicate.delivery/pbxt/NtYtqQV9DvjHntgwL8b7rlS6t7P2nlynLnQPkERDHjLPRRdI/replicate-prediction-zvt5hxm5pnrma0csxp28v7x978%20%281%29.jpg","https://replicate.delivery/pbxt/NtYtrX8rFiKVQz9nROlMH42Oz1Sz5l9oSYHrsbPd68e7MWWJ/replicate-prediction-rcmejsat2xrme0csxnys1h1ay4.jpg"],
"output_format": "jpg",
"prompt": "Add five characters onto the existing boat deck scene — do not change the boat, mast, deck, ocean, camera, or background. Do not add any new objects. Focus only on body pose and movement. Each figure is ~0.5× human scale to fit the scene. All five face away from the camera toward the ocean, absorbed in their duties.\n\nStanding on the bench (port side, mid-deck):\n\nFeet shoulder-width, one foot slightly higher on the bench slat, knees soft for balance.\n\nHips rotated a touch toward starboard, spine tall, subtle forward lean as if bracing against motion.\n\nLeft arm relaxed at side, right forearm across mid-torso as if steadying balance; fingers loosely splayed.\n\nHead angled toward horizon, chin slightly tucked; weight shifted onto the forward foot.\n\nLeaning on the mast (centerline, slightly forward of mid-deck):\n\nSide of shoulder and upper arm in light contact with the mast, torso angled 10–15° toward it.\n\nFeet staggered front-to-back, rear heel barely lifted as if ready to move; knees softly bent.\n\nOne hand resting against the mast at chest height; the other arm down with a relaxed bend.\n\nHead turned to the seaward side, neck long, gaze tracing the waterline.\n\nSitting on the deck (starboard side, forward half):\n\nSeated with one knee up and the other leg extended; planted foot angled outward for stability.\n\nElbows resting lightly—one on the raised knee, the other along the thigh—creating a compact silhouette.\n\nBack straight with a gentle forward hinge; shoulders low and calm.\n\nHead inclined toward the open water, posture composed and attentive.\n\nNear the back looking out (stern, starboard):\n\nUpright stance, feet parallel and grounded wider than hips.\n\nTorso square to the ocean with a subtle forward lean as if reading the swells.\n\nArms relaxed at sides with a slight outward angle, fingers relaxed; shoulders even.\n\nHead level, gaze set on distant water; micro-shift of weight from heel to mid-foot.\n\nNear the back looking out (stern, port), offset from #4 for depth:\n\nStaggered stance with front foot angled slightly outward; rear knee soft.\n\nTorso rotated a few degrees toward starboard, forming a gentle S-curve through spine and hips.\n\nOne arm lightly folded across mid-torso, the other hanging naturally; wrists loose.\n\nHead tilted a few degrees, eyes line following the horizon.\n\nGlobal notes:\n\nKeep spacing natural; avoid overlapping silhouettes with existing elements.\n\nMaintain existing lighting, perspective, and deck lines; only add these five figures.\n\nExpress motion through subtle weight shifts, soft knee bends, torso leans, and head angles toward the ocean.\n\nNo props or equipment adjustments; only body language and movement."
}
)
# To access the file URL:
print(output.url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_35j**********************************
This is your API token. Keep it to yourself.
Run google/nano-banana using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"input": {
"aspect_ratio": "match_input_image",
"image_input": ["https://replicate.delivery/pbxt/NtYtqQV9DvjHntgwL8b7rlS6t7P2nlynLnQPkERDHjLPRRdI/replicate-prediction-zvt5hxm5pnrma0csxp28v7x978%20%281%29.jpg","https://replicate.delivery/pbxt/NtYtrX8rFiKVQz9nROlMH42Oz1Sz5l9oSYHrsbPd68e7MWWJ/replicate-prediction-rcmejsat2xrme0csxnys1h1ay4.jpg"],
"output_format": "jpg",
"prompt": "Add five characters onto the existing boat deck scene — do not change the boat, mast, deck, ocean, camera, or background. Do not add any new objects. Focus only on body pose and movement. Each figure is ~0.5× human scale to fit the scene. All five face away from the camera toward the ocean, absorbed in their duties.\\n\\nStanding on the bench (port side, mid-deck):\\n\\nFeet shoulder-width, one foot slightly higher on the bench slat, knees soft for balance.\\n\\nHips rotated a touch toward starboard, spine tall, subtle forward lean as if bracing against motion.\\n\\nLeft arm relaxed at side, right forearm across mid-torso as if steadying balance; fingers loosely splayed.\\n\\nHead angled toward horizon, chin slightly tucked; weight shifted onto the forward foot.\\n\\nLeaning on the mast (centerline, slightly forward of mid-deck):\\n\\nSide of shoulder and upper arm in light contact with the mast, torso angled 10–15° toward it.\\n\\nFeet staggered front-to-back, rear heel barely lifted as if ready to move; knees softly bent.\\n\\nOne hand resting against the mast at chest height; the other arm down with a relaxed bend.\\n\\nHead turned to the seaward side, neck long, gaze tracing the waterline.\\n\\nSitting on the deck (starboard side, forward half):\\n\\nSeated with one knee up and the other leg extended; planted foot angled outward for stability.\\n\\nElbows resting lightly—one on the raised knee, the other along the thigh—creating a compact silhouette.\\n\\nBack straight with a gentle forward hinge; shoulders low and calm.\\n\\nHead inclined toward the open water, posture composed and attentive.\\n\\nNear the back looking out (stern, starboard):\\n\\nUpright stance, feet parallel and grounded wider than hips.\\n\\nTorso square to the ocean with a subtle forward lean as if reading the swells.\\n\\nArms relaxed at sides with a slight outward angle, fingers relaxed; shoulders even.\\n\\nHead level, gaze set on distant water; micro-shift of weight from heel to mid-foot.\\n\\nNear the back looking out (stern, port), offset from #4 for depth:\\n\\nStaggered stance with front foot angled slightly outward; rear knee soft.\\n\\nTorso rotated a few degrees toward starboard, forming a gentle S-curve through spine and hips.\\n\\nOne arm lightly folded across mid-torso, the other hanging naturally; wrists loose.\\n\\nHead tilted a few degrees, eyes line following the horizon.\\n\\nGlobal notes:\\n\\nKeep spacing natural; avoid overlapping silhouettes with existing elements.\\n\\nMaintain existing lighting, perspective, and deck lines; only add these five figures.\\n\\nExpress motion through subtle weight shifts, soft knee bends, torso leans, and head angles toward the ocean.\\n\\nNo props or equipment adjustments; only body language and movement."
}
}' \
https://api.replicate.com/v1/models/google/nano-banana/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "2n6h9ke4s9rmc0csxpaag876tm",
"model": "google/nano-banana",
"version": "hidden",
"input": {
"aspect_ratio": "match_input_image",
"image_input": [
"https://replicate.delivery/pbxt/NtYtqQV9DvjHntgwL8b7rlS6t7P2nlynLnQPkERDHjLPRRdI/replicate-prediction-zvt5hxm5pnrma0csxp28v7x978%20%281%29.jpg",
"https://replicate.delivery/pbxt/NtYtrX8rFiKVQz9nROlMH42Oz1Sz5l9oSYHrsbPd68e7MWWJ/replicate-prediction-rcmejsat2xrme0csxnys1h1ay4.jpg"
],
"output_format": "jpg",
"prompt": "Add five characters onto the existing boat deck scene — do not change the boat, mast, deck, ocean, camera, or background. Do not add any new objects. Focus only on body pose and movement. Each figure is ~0.5× human scale to fit the scene. All five face away from the camera toward the ocean, absorbed in their duties.\n\nStanding on the bench (port side, mid-deck):\n\nFeet shoulder-width, one foot slightly higher on the bench slat, knees soft for balance.\n\nHips rotated a touch toward starboard, spine tall, subtle forward lean as if bracing against motion.\n\nLeft arm relaxed at side, right forearm across mid-torso as if steadying balance; fingers loosely splayed.\n\nHead angled toward horizon, chin slightly tucked; weight shifted onto the forward foot.\n\nLeaning on the mast (centerline, slightly forward of mid-deck):\n\nSide of shoulder and upper arm in light contact with the mast, torso angled 10–15° toward it.\n\nFeet staggered front-to-back, rear heel barely lifted as if ready to move; knees softly bent.\n\nOne hand resting against the mast at chest height; the other arm down with a relaxed bend.\n\nHead turned to the seaward side, neck long, gaze tracing the waterline.\n\nSitting on the deck (starboard side, forward half):\n\nSeated with one knee up and the other leg extended; planted foot angled outward for stability.\n\nElbows resting lightly—one on the raised knee, the other along the thigh—creating a compact silhouette.\n\nBack straight with a gentle forward hinge; shoulders low and calm.\n\nHead inclined toward the open water, posture composed and attentive.\n\nNear the back looking out (stern, starboard):\n\nUpright stance, feet parallel and grounded wider than hips.\n\nTorso square to the ocean with a subtle forward lean as if reading the swells.\n\nArms relaxed at sides with a slight outward angle, fingers relaxed; shoulders even.\n\nHead level, gaze set on distant water; micro-shift of weight from heel to mid-foot.\n\nNear the back looking out (stern, port), offset from #4 for depth:\n\nStaggered stance with front foot angled slightly outward; rear knee soft.\n\nTorso rotated a few degrees toward starboard, forming a gentle S-curve through spine and hips.\n\nOne arm lightly folded across mid-torso, the other hanging naturally; wrists loose.\n\nHead tilted a few degrees, eyes line following the horizon.\n\nGlobal notes:\n\nKeep spacing natural; avoid overlapping silhouettes with existing elements.\n\nMaintain existing lighting, perspective, and deck lines; only add these five figures.\n\nExpress motion through subtle weight shifts, soft knee bends, torso leans, and head angles toward the ocean.\n\nNo props or equipment adjustments; only body language and movement."
},
"logs": "Generating image with Gemini Flash...\nGenerated image in 11.21 seconds",
"output": "https://replicate.delivery/xezq/5RI19sFlb752GFGezlYkmkJVRBOMieD89ClF0VNZrOZB2rfqA/tmp69rc94pa.jpeg",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-10-16T15:12:53.962Z",
"started_at": "2025-10-16T15:12:54.10917Z",
"completed_at": "2025-10-16T15:13:05.568671Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/2n6h9ke4s9rmc0csxpaag876tm/cancel",
"get": "https://api.replicate.com/v1/predictions/2n6h9ke4s9rmc0csxpaag876tm",
"stream": "https://stream.replicate.com/v1/files/bcwr-3dve6indkdvx7euuipijlnhzp3sqoel3ybh7ab54sz6bcyiwd46a",
"web": "https://replicate.com/p/2n6h9ke4s9rmc0csxpaag876tm"
},
"metrics": {
"predict_time": 11.459500234,
"total_time": 11.606671
}
}

