google
/
imagen-3
Google's highest quality text-to-image model, capable of generating images with detail, rich lighting and beauty
- Public
- 377K runs
-
$0.05 per image
-
Commercial use
- Paper
Prediction
google/imagen-3Official modelID8mx1ewfnynrmc0cmtzatrpxdq0StatusSucceededSourceWebTotal durationCreatedInput
- prompt
- A close-up, macro photography stock photo of a strawberry intricately sculpted into the shape of a hummingbird in mid-flight, its wings a blur as it sips nectar from a vibrant, tubular flower. The backdrop features a lush, colorful garden with a soft, bokeh effect, creating a dreamlike atmosphere. The image is exceptionally detailed and captured with a shallow depth of field, ensuring a razor-sharp focus on the strawberry-hummingbird and gentle fading of the background. The high resolution, professional photographers style, and soft lighting illuminate the scene in a very detailed manner, professional color grading amplifies the vibrant colors and creates an image with exceptional clarity. The depth of field makes the hummingbird and flower stand out starkly against the bokeh background.
- aspect_ratio
- 1:1
- safety_filter_level
- block_medium_and_above
{ "prompt": "A close-up, macro photography stock photo of a strawberry intricately sculpted into the shape of a hummingbird in mid-flight, its wings a blur as it sips nectar from a vibrant, tubular flower. The backdrop features a lush, colorful garden with a soft, bokeh effect, creating a dreamlike atmosphere. The image is exceptionally detailed and captured with a shallow depth of field, ensuring a razor-sharp focus on the strawberry-hummingbird and gentle fading of the background. The high resolution, professional photographers style, and soft lighting illuminate the scene in a very detailed manner, professional color grading amplifies the vibrant colors and creates an image with exceptional clarity. The depth of field makes the hummingbird and flower stand out starkly against the bokeh background.", "aspect_ratio": "1:1", "safety_filter_level": "block_medium_and_above" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run google/imagen-3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "A close-up, macro photography stock photo of a strawberry intricately sculpted into the shape of a hummingbird in mid-flight, its wings a blur as it sips nectar from a vibrant, tubular flower. The backdrop features a lush, colorful garden with a soft, bokeh effect, creating a dreamlike atmosphere. The image is exceptionally detailed and captured with a shallow depth of field, ensuring a razor-sharp focus on the strawberry-hummingbird and gentle fading of the background. The high resolution, professional photographers style, and soft lighting illuminate the scene in a very detailed manner, professional color grading amplifies the vibrant colors and creates an image with exceptional clarity. The depth of field makes the hummingbird and flower stand out starkly against the bokeh background.", aspect_ratio: "1:1", safety_filter_level: "block_medium_and_above" }; const output = await replicate.run("google/imagen-3", { input }); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run google/imagen-3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "google/imagen-3", input={ "prompt": "A close-up, macro photography stock photo of a strawberry intricately sculpted into the shape of a hummingbird in mid-flight, its wings a blur as it sips nectar from a vibrant, tubular flower. The backdrop features a lush, colorful garden with a soft, bokeh effect, creating a dreamlike atmosphere. The image is exceptionally detailed and captured with a shallow depth of field, ensuring a razor-sharp focus on the strawberry-hummingbird and gentle fading of the background. The high resolution, professional photographers style, and soft lighting illuminate the scene in a very detailed manner, professional color grading amplifies the vibrant colors and creates an image with exceptional clarity. The depth of field makes the hummingbird and flower stand out starkly against the bokeh background.", "aspect_ratio": "1:1", "safety_filter_level": "block_medium_and_above" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run google/imagen-3 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": { "prompt": "A close-up, macro photography stock photo of a strawberry intricately sculpted into the shape of a hummingbird in mid-flight, its wings a blur as it sips nectar from a vibrant, tubular flower. The backdrop features a lush, colorful garden with a soft, bokeh effect, creating a dreamlike atmosphere. The image is exceptionally detailed and captured with a shallow depth of field, ensuring a razor-sharp focus on the strawberry-hummingbird and gentle fading of the background. The high resolution, professional photographers style, and soft lighting illuminate the scene in a very detailed manner, professional color grading amplifies the vibrant colors and creates an image with exceptional clarity. The depth of field makes the hummingbird and flower stand out starkly against the bokeh background.", "aspect_ratio": "1:1", "safety_filter_level": "block_medium_and_above" } }' \ https://api.replicate.com/v1/models/google/imagen-3/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-05T20:38:35.738312Z", "created_at": "2025-02-05T20:38:31.157000Z", "data_removed": false, "error": null, "id": "8mx1ewfnynrmc0cmtzatrpxdq0", "input": { "prompt": "A close-up, macro photography stock photo of a strawberry intricately sculpted into the shape of a hummingbird in mid-flight, its wings a blur as it sips nectar from a vibrant, tubular flower. The backdrop features a lush, colorful garden with a soft, bokeh effect, creating a dreamlike atmosphere. The image is exceptionally detailed and captured with a shallow depth of field, ensuring a razor-sharp focus on the strawberry-hummingbird and gentle fading of the background. The high resolution, professional photographers style, and soft lighting illuminate the scene in a very detailed manner, professional color grading amplifies the vibrant colors and creates an image with exceptional clarity. The depth of field makes the hummingbird and flower stand out starkly against the bokeh background.", "aspect_ratio": "1:1", "safety_filter_level": "block_medium_and_above" }, "logs": "Moderating content...\nModeration complete in 0.23sec\nGenerated image in 4.00sec", "metrics": { "image_count": 1, "predict_time": 4.569352509, "total_time": 4.581312 }, "output": "https://replicate.delivery/xezq/fp7FAY10OsyMcqf80C9YfbnDT9ewjZ5ghuun2Q9CRdiskfihC/tmp6ty8ezoy.png", "started_at": "2025-02-05T20:38:31.168960Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-7c5br2pi44qu45fyivi5esoqq7xogj5rtwwie2pzv4udc2ojfebq", "get": "https://api.replicate.com/v1/predictions/8mx1ewfnynrmc0cmtzatrpxdq0", "cancel": "https://api.replicate.com/v1/predictions/8mx1ewfnynrmc0cmtzatrpxdq0/cancel" }, "version": "hidden" }
Generated inModerating content... Moderation complete in 0.23sec Generated image in 4.00sec
Prediction
google/imagen-3Official modelID5s6t0jcn91rma0cmtzb9fghffmStatusSucceededSourceWebTotal durationCreatedInput
- prompt
- A close-up shot captures a winter wonderland scene - soft snowflakes fall on a snow-covered forest floor. Behind a frosted pine branch, a red squirrel sits, its bright orange fur a splash of color against the white. It holds a small hazelnut. As it enjoys its meal, it seems oblivious to the falling snow.
- aspect_ratio
- 1:1
- safety_filter_level
- block_medium_and_above
{ "prompt": "A close-up shot captures a winter wonderland scene - soft snowflakes fall on a snow-covered forest floor. Behind a frosted pine branch, a red squirrel sits, its bright orange fur a splash of color against the white. It holds a small hazelnut. As it enjoys its meal, it seems oblivious to the falling snow.", "aspect_ratio": "1:1", "safety_filter_level": "block_medium_and_above" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run google/imagen-3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "A close-up shot captures a winter wonderland scene - soft snowflakes fall on a snow-covered forest floor. Behind a frosted pine branch, a red squirrel sits, its bright orange fur a splash of color against the white. It holds a small hazelnut. As it enjoys its meal, it seems oblivious to the falling snow.", aspect_ratio: "1:1", safety_filter_level: "block_medium_and_above" }; const output = await replicate.run("google/imagen-3", { input }); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run google/imagen-3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "google/imagen-3", input={ "prompt": "A close-up shot captures a winter wonderland scene - soft snowflakes fall on a snow-covered forest floor. Behind a frosted pine branch, a red squirrel sits, its bright orange fur a splash of color against the white. It holds a small hazelnut. As it enjoys its meal, it seems oblivious to the falling snow.", "aspect_ratio": "1:1", "safety_filter_level": "block_medium_and_above" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run google/imagen-3 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": { "prompt": "A close-up shot captures a winter wonderland scene - soft snowflakes fall on a snow-covered forest floor. Behind a frosted pine branch, a red squirrel sits, its bright orange fur a splash of color against the white. It holds a small hazelnut. As it enjoys its meal, it seems oblivious to the falling snow.", "aspect_ratio": "1:1", "safety_filter_level": "block_medium_and_above" } }' \ https://api.replicate.com/v1/models/google/imagen-3/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-05T20:39:16.994095Z", "created_at": "2025-02-05T20:39:11.944000Z", "data_removed": false, "error": null, "id": "5s6t0jcn91rma0cmtzb9fghffm", "input": { "prompt": "A close-up shot captures a winter wonderland scene - soft snowflakes fall on a snow-covered forest floor. Behind a frosted pine branch, a red squirrel sits, its bright orange fur a splash of color against the white. It holds a small hazelnut. As it enjoys its meal, it seems oblivious to the falling snow.", "aspect_ratio": "1:1", "safety_filter_level": "block_medium_and_above" }, "logs": "Moderating content...\nModeration complete in 0.23sec\nGenerated image in 4.40sec", "metrics": { "image_count": 1, "predict_time": 5.039552804, "total_time": 5.050095 }, "output": "https://replicate.delivery/xezq/iwN5atioJTYgGVzVonhdDfbQZznTSBFTqmfh5WY84gP05XMUA/tmp7k57elxf.png", "started_at": "2025-02-05T20:39:11.954542Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-jtdbzhvhp7c6wuyceqsxphzeno5ximwb7cyyygdahucriwzla6ra", "get": "https://api.replicate.com/v1/predictions/5s6t0jcn91rma0cmtzb9fghffm", "cancel": "https://api.replicate.com/v1/predictions/5s6t0jcn91rma0cmtzb9fghffm/cancel" }, "version": "hidden" }
Generated inModerating content... Moderation complete in 0.23sec Generated image in 4.40sec
Prediction
google/imagen-3Official modelIDh1waa8h44xrma0cmtzbrw60ercStatusSucceededSourceWebTotal durationCreatedInput
- prompt
- A portrait of an Asian woman with neon green lights in the background, shallow depth of field.
- aspect_ratio
- 16:9
- safety_filter_level
- block_medium_and_above
{ "prompt": "A portrait of an Asian woman with neon green lights in the background, shallow depth of field.", "aspect_ratio": "16:9", "safety_filter_level": "block_medium_and_above" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run google/imagen-3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "A portrait of an Asian woman with neon green lights in the background, shallow depth of field.", aspect_ratio: "16:9", safety_filter_level: "block_medium_and_above" }; const output = await replicate.run("google/imagen-3", { input }); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run google/imagen-3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "google/imagen-3", input={ "prompt": "A portrait of an Asian woman with neon green lights in the background, shallow depth of field.", "aspect_ratio": "16:9", "safety_filter_level": "block_medium_and_above" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run google/imagen-3 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": { "prompt": "A portrait of an Asian woman with neon green lights in the background, shallow depth of field.", "aspect_ratio": "16:9", "safety_filter_level": "block_medium_and_above" } }' \ https://api.replicate.com/v1/models/google/imagen-3/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-05T20:39:56.660473Z", "created_at": "2025-02-05T20:39:48.519000Z", "data_removed": false, "error": null, "id": "h1waa8h44xrma0cmtzbrw60erc", "input": { "prompt": "A portrait of an Asian woman with neon green lights in the background, shallow depth of field.", "aspect_ratio": "16:9", "safety_filter_level": "block_medium_and_above" }, "logs": "Moderating content...\nModeration complete in 0.22sec\nGenerated image in 7.44sec", "metrics": { "image_count": 1, "predict_time": 8.132381316, "total_time": 8.141473 }, "output": "https://replicate.delivery/xezq/b5fXAtNpDG2VGKw0PS5sZQnBPUELYSW8UCTE2hY6FMbO9LGKA/tmpjy2usxb6.png", "started_at": "2025-02-05T20:39:48.528092Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-wvoyey63xyv3qsnndvqqcwcariwbeweoydk5d4xifujlku373zcq", "get": "https://api.replicate.com/v1/predictions/h1waa8h44xrma0cmtzbrw60erc", "cancel": "https://api.replicate.com/v1/predictions/h1waa8h44xrma0cmtzbrw60erc/cancel" }, "version": "hidden" }
Generated inModerating content... Moderation complete in 0.22sec Generated image in 7.44sec
Prediction
google/imagen-3Official modelIDwtpm0tnp6hrme0cmtzbt45arcrStatusSucceededSourceWebTotal durationCreatedInput
- prompt
- A foggy 1940s European train station at dawn, framed by intricate wrought-iron arches and misted glass windows. Steam rises from the tracks, blending with dense fog. Two lovers stand in an emotional embrace near the train, backlit by the warm, amber glow of dim lanterns. The departing train is partially visible, its red tail lights fading into the mist. The woman wears a faded red coat and clutches a small leather diary, while the man is dressed in a weathered soldier's uniform. Dust motes float in the air, illuminated by the soft golden backlight. The atmosphere is melancholic and timeless, evoking the bittersweet farewell of wartime cinema.
- aspect_ratio
- 16:9
- safety_filter_level
- block_medium_and_above
{ "prompt": "A foggy 1940s European train station at dawn, framed by intricate wrought-iron arches and misted glass windows. Steam rises from the tracks, blending with dense fog. Two lovers stand in an emotional embrace near the train, backlit by the warm, amber glow of dim lanterns. The departing train is partially visible, its red tail lights fading into the mist. The woman wears a faded red coat and clutches a small leather diary, while the man is dressed in a weathered soldier's uniform. Dust motes float in the air, illuminated by the soft golden backlight. The atmosphere is melancholic and timeless, evoking the bittersweet farewell of wartime cinema.", "aspect_ratio": "16:9", "safety_filter_level": "block_medium_and_above" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run google/imagen-3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "A foggy 1940s European train station at dawn, framed by intricate wrought-iron arches and misted glass windows. Steam rises from the tracks, blending with dense fog. Two lovers stand in an emotional embrace near the train, backlit by the warm, amber glow of dim lanterns. The departing train is partially visible, its red tail lights fading into the mist. The woman wears a faded red coat and clutches a small leather diary, while the man is dressed in a weathered soldier's uniform. Dust motes float in the air, illuminated by the soft golden backlight. The atmosphere is melancholic and timeless, evoking the bittersweet farewell of wartime cinema.", aspect_ratio: "16:9", safety_filter_level: "block_medium_and_above" }; const output = await replicate.run("google/imagen-3", { input }); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run google/imagen-3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "google/imagen-3", input={ "prompt": "A foggy 1940s European train station at dawn, framed by intricate wrought-iron arches and misted glass windows. Steam rises from the tracks, blending with dense fog. Two lovers stand in an emotional embrace near the train, backlit by the warm, amber glow of dim lanterns. The departing train is partially visible, its red tail lights fading into the mist. The woman wears a faded red coat and clutches a small leather diary, while the man is dressed in a weathered soldier's uniform. Dust motes float in the air, illuminated by the soft golden backlight. The atmosphere is melancholic and timeless, evoking the bittersweet farewell of wartime cinema.", "aspect_ratio": "16:9", "safety_filter_level": "block_medium_and_above" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run google/imagen-3 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": { "prompt": "A foggy 1940s European train station at dawn, framed by intricate wrought-iron arches and misted glass windows. Steam rises from the tracks, blending with dense fog. Two lovers stand in an emotional embrace near the train, backlit by the warm, amber glow of dim lanterns. The departing train is partially visible, its red tail lights fading into the mist. The woman wears a faded red coat and clutches a small leather diary, while the man is dressed in a weathered soldier\'s uniform. Dust motes float in the air, illuminated by the soft golden backlight. The atmosphere is melancholic and timeless, evoking the bittersweet farewell of wartime cinema.", "aspect_ratio": "16:9", "safety_filter_level": "block_medium_and_above" } }' \ https://api.replicate.com/v1/models/google/imagen-3/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-05T20:40:31.671104Z", "created_at": "2025-02-05T20:40:25.908000Z", "data_removed": false, "error": null, "id": "wtpm0tnp6hrme0cmtzbt45arcr", "input": { "prompt": "A foggy 1940s European train station at dawn, framed by intricate wrought-iron arches and misted glass windows. Steam rises from the tracks, blending with dense fog. Two lovers stand in an emotional embrace near the train, backlit by the warm, amber glow of dim lanterns. The departing train is partially visible, its red tail lights fading into the mist. The woman wears a faded red coat and clutches a small leather diary, while the man is dressed in a weathered soldier's uniform. Dust motes float in the air, illuminated by the soft golden backlight. The atmosphere is melancholic and timeless, evoking the bittersweet farewell of wartime cinema.", "aspect_ratio": "16:9", "safety_filter_level": "block_medium_and_above" }, "logs": "Moderating content...\nModeration complete in 0.23sec\nGenerated image in 5.01sec", "metrics": { "image_count": 1, "predict_time": 5.75568665, "total_time": 5.763104 }, "output": "https://replicate.delivery/xezq/ljGRaNwW4ArNINDeEAhCtBc2e3DiEDA8Z9OdQMMKmvjf1vYoA/tmpc3m6bs0j.png", "started_at": "2025-02-05T20:40:25.915417Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-ycdcc2gqnulbltj7htp6aux56se3kgkpbogse3wip7coa6stbc6a", "get": "https://api.replicate.com/v1/predictions/wtpm0tnp6hrme0cmtzbt45arcr", "cancel": "https://api.replicate.com/v1/predictions/wtpm0tnp6hrme0cmtzbt45arcr/cancel" }, "version": "hidden" }
Generated inModerating content... Moderation complete in 0.23sec Generated image in 5.01sec
Prediction
google/imagen-3Official modelID3sm3hwjf4xrma0cmtzcb92ag4cStatusSucceededSourceWebTotal durationCreatedInput
- prompt
- A close-up photo of an origami bird soaring through a cityscape, in a flock with others of different colors and patterns, casting intricate shadows on the buildings below
- aspect_ratio
- 1:1
- safety_filter_level
- block_medium_and_above
{ "prompt": "A close-up photo of an origami bird soaring through a cityscape, in a flock with others of different colors and patterns, casting intricate shadows on the buildings below", "aspect_ratio": "1:1", "safety_filter_level": "block_medium_and_above" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run google/imagen-3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "A close-up photo of an origami bird soaring through a cityscape, in a flock with others of different colors and patterns, casting intricate shadows on the buildings below", aspect_ratio: "1:1", safety_filter_level: "block_medium_and_above" }; const output = await replicate.run("google/imagen-3", { input }); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run google/imagen-3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "google/imagen-3", input={ "prompt": "A close-up photo of an origami bird soaring through a cityscape, in a flock with others of different colors and patterns, casting intricate shadows on the buildings below", "aspect_ratio": "1:1", "safety_filter_level": "block_medium_and_above" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run google/imagen-3 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": { "prompt": "A close-up photo of an origami bird soaring through a cityscape, in a flock with others of different colors and patterns, casting intricate shadows on the buildings below", "aspect_ratio": "1:1", "safety_filter_level": "block_medium_and_above" } }' \ https://api.replicate.com/v1/models/google/imagen-3/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-05T20:41:14.712148Z", "created_at": "2025-02-05T20:41:05.063000Z", "data_removed": false, "error": null, "id": "3sm3hwjf4xrma0cmtzcb92ag4c", "input": { "prompt": "A close-up photo of an origami bird soaring through a cityscape, in a flock with others of different colors and patterns, casting intricate shadows on the buildings below", "aspect_ratio": "1:1", "safety_filter_level": "block_medium_and_above" }, "logs": "Moderating content...\nModeration complete in 0.69sec\nGenerated image in 8.45sec", "metrics": { "image_count": 1, "predict_time": 9.642058677, "total_time": 9.649148 }, "output": "https://replicate.delivery/xezq/Acmgbf5pOYWYCaBzuBffTG5caZerKOjVen3eLXlD3fLP19LGKA/tmp67ewhp38.png", "started_at": "2025-02-05T20:41:05.070089Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-ohynaawk7e4y3w45safsjoqudw3qmbh3pd54qdgsk43tialmxo4q", "get": "https://api.replicate.com/v1/predictions/3sm3hwjf4xrma0cmtzcb92ag4c", "cancel": "https://api.replicate.com/v1/predictions/3sm3hwjf4xrma0cmtzcb92ag4c/cancel" }, "version": "hidden" }
Generated inModerating content... Moderation complete in 0.69sec Generated image in 8.45sec
Prediction
google/imagen-3Official modelIDedbyqq0d6hrme0cmtzcrgyg9e8StatusSucceededSourceWebTotal durationCreatedInput
- prompt
- A view of a person's hand holding a eucalyptus sprig - a macro DSLR image highlighting the balance of human and nature
- aspect_ratio
- 1:1
- safety_filter_level
- block_medium_and_above
{ "prompt": "A view of a person's hand holding a eucalyptus sprig - a macro DSLR image\nhighlighting the balance of human and nature", "aspect_ratio": "1:1", "safety_filter_level": "block_medium_and_above" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run google/imagen-3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "A view of a person's hand holding a eucalyptus sprig - a macro DSLR image\nhighlighting the balance of human and nature", aspect_ratio: "1:1", safety_filter_level: "block_medium_and_above" }; const output = await replicate.run("google/imagen-3", { input }); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run google/imagen-3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "google/imagen-3", input={ "prompt": "A view of a person's hand holding a eucalyptus sprig - a macro DSLR image\nhighlighting the balance of human and nature", "aspect_ratio": "1:1", "safety_filter_level": "block_medium_and_above" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run google/imagen-3 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": { "prompt": "A view of a person\'s hand holding a eucalyptus sprig - a macro DSLR image\\nhighlighting the balance of human and nature", "aspect_ratio": "1:1", "safety_filter_level": "block_medium_and_above" } }' \ https://api.replicate.com/v1/models/google/imagen-3/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-05T20:42:02.776723Z", "created_at": "2025-02-05T20:41:53.716000Z", "data_removed": false, "error": null, "id": "edbyqq0d6hrme0cmtzcrgyg9e8", "input": { "prompt": "A view of a person's hand holding a eucalyptus sprig - a macro DSLR image\nhighlighting the balance of human and nature", "aspect_ratio": "1:1", "safety_filter_level": "block_medium_and_above" }, "logs": "Moderating content...\nModeration complete in 0.24sec\nGenerated image in 8.32sec", "metrics": { "image_count": 1, "predict_time": 9.05403088, "total_time": 9.060723 }, "output": "https://replicate.delivery/xezq/YlV5edh3Zl1uJSJpfmGor4mjZ90MonHGhOiieiS3t9g04vYoA/tmp_aldsebi.png", "started_at": "2025-02-05T20:41:53.722692Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-vy5jbhairbjzphsxulbdseto2ket3acf7lzaohs7y2y6sqlbwaxq", "get": "https://api.replicate.com/v1/predictions/edbyqq0d6hrme0cmtzcrgyg9e8", "cancel": "https://api.replicate.com/v1/predictions/edbyqq0d6hrme0cmtzcrgyg9e8/cancel" }, "version": "hidden" }
Generated inModerating content... Moderation complete in 0.24sec Generated image in 8.32sec
Prediction
google/imagen-3Official modelIDtkhkg0qkthrmc0cmtzdb7fcy08StatusSucceededSourceWebTotal durationCreatedInput
- prompt
- Word “light” made from various colorful feathers, black background
- aspect_ratio
- 1:1
- safety_filter_level
- block_medium_and_above
{ "prompt": "Word “light” made from various colorful feathers, black background", "aspect_ratio": "1:1", "safety_filter_level": "block_medium_and_above" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run google/imagen-3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "Word “light” made from various colorful feathers, black background", aspect_ratio: "1:1", safety_filter_level: "block_medium_and_above" }; const output = await replicate.run("google/imagen-3", { input }); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run google/imagen-3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "google/imagen-3", input={ "prompt": "Word “light” made from various colorful feathers, black background", "aspect_ratio": "1:1", "safety_filter_level": "block_medium_and_above" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run google/imagen-3 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": { "prompt": "Word “light” made from various colorful feathers, black background", "aspect_ratio": "1:1", "safety_filter_level": "block_medium_and_above" } }' \ https://api.replicate.com/v1/models/google/imagen-3/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-05T20:44:08.533578Z", "created_at": "2025-02-05T20:43:58.292000Z", "data_removed": false, "error": null, "id": "tkhkg0qkthrmc0cmtzdb7fcy08", "input": { "prompt": "Word “light” made from various colorful feathers, black background", "aspect_ratio": "1:1", "safety_filter_level": "block_medium_and_above" }, "logs": "Moderating content...\nModeration complete in 0.26sec\nGenerated image in 9.68sec", "metrics": { "image_count": 1, "predict_time": 10.226512644, "total_time": 10.241578 }, "output": "https://replicate.delivery/xezq/aqdHht4QAlamGpaU66SwhUg7QyWIizUGtvJ9dw3ek1YMfXMUA/tmph2fdyekq.png", "started_at": "2025-02-05T20:43:58.307065Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-xcoyjiwvvq7bcr7go4hcecail6b6fbnmfhkw2zikvhi5ohcofeqq", "get": "https://api.replicate.com/v1/predictions/tkhkg0qkthrmc0cmtzdb7fcy08", "cancel": "https://api.replicate.com/v1/predictions/tkhkg0qkthrmc0cmtzdb7fcy08/cancel" }, "version": "hidden" }
Generated inModerating content... Moderation complete in 0.26sec Generated image in 9.68sec
Want to make some of these yourself?
Run this model