typetext
{
"aspect_ratio": "3:2",
"magic_prompt_option": "On",
"prompt": "A color film-inspired portrait of a couple arguing in the jungle with a shallow depth of field that blurs the surrounding elements, drawing attention to the eye. The fine grain and cast suggest a high ISO film stock, while the wide aperture lens creates a pleasing bokeh effect, enhancing the candid and natural documentary style.",
"resolution": "None",
"style_type": "Realistic"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_4t8**********************************
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 ideogram-ai/ideogram-v3-quality using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
aspect_ratio: "3:2",
magic_prompt_option: "On",
prompt: "A color film-inspired portrait of a couple arguing in the jungle with a shallow depth of field that blurs the surrounding elements, drawing attention to the eye. The fine grain and cast suggest a high ISO film stock, while the wide aperture lens creates a pleasing bokeh effect, enhancing the candid and natural documentary style.",
resolution: "None",
style_type: "Realistic"
};
const output = await replicate.run("ideogram-ai/ideogram-v3-quality", { 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_4t8**********************************
This is your API token. Keep it to yourself.
import replicate
Run ideogram-ai/ideogram-v3-quality using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"ideogram-ai/ideogram-v3-quality",
input={
"aspect_ratio": "3:2",
"magic_prompt_option": "On",
"prompt": "A color film-inspired portrait of a couple arguing in the jungle with a shallow depth of field that blurs the surrounding elements, drawing attention to the eye. The fine grain and cast suggest a high ISO film stock, while the wide aperture lens creates a pleasing bokeh effect, enhancing the candid and natural documentary style.",
"resolution": "None",
"style_type": "Realistic"
}
)
# 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_4t8**********************************
This is your API token. Keep it to yourself.
Run ideogram-ai/ideogram-v3-quality 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": "3:2",
"magic_prompt_option": "On",
"prompt": "A color film-inspired portrait of a couple arguing in the jungle with a shallow depth of field that blurs the surrounding elements, drawing attention to the eye. The fine grain and cast suggest a high ISO film stock, while the wide aperture lens creates a pleasing bokeh effect, enhancing the candid and natural documentary style.",
"resolution": "None",
"style_type": "Realistic"
}
}' \
https://api.replicate.com/v1/models/ideogram-ai/ideogram-v3-quality/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "h497rjb785rmc0cpndqax3hnvw",
"model": "ideogram-ai/ideogram-v3-quality",
"version": "hidden",
"input": {
"aspect_ratio": "3:2",
"magic_prompt_option": "On",
"prompt": "A color film-inspired portrait of a couple arguing in the jungle with a shallow depth of field that blurs the surrounding elements, drawing attention to the eye. The fine grain and cast suggest a high ISO film stock, while the wide aperture lens creates a pleasing bokeh effect, enhancing the candid and natural documentary style.",
"resolution": "None",
"style_type": "Realistic"
},
"logs": "Using seed: 1238480968\nModerating content...\nModeration complete in 0.29sec\nGenerating...\nPrompt used: A color film-inspired photograph captures a tense moment between a young couple amidst a dense jungle environment. The woman, with fiery red hair cascading down her shoulders, confronts the man, her expression a mix of frustration and hurt as she gestures emphatically, while he avoids eye contact with his hands shoved deep into his pockets. Lush, vibrant green foliage surrounds them, the background softly blurred by a shallow depth of field and a wide aperture lens, creating a pleasing bokeh effect, with dappled sunlight filtering through the canopy, enhancing the candid and natural documentary style. Fine grain and a slightly warm cast suggest a high ISO film stock, immersing the viewer in the raw emotion of the scene.\nImage generation took 12.23 seconds\nDownloading 1748758 bytes\nDownloaded 1.67MB in 0.52sec",
"output": "https://replicate.delivery/xezq/amHhxYCbOuLcJV4tYkoD6IBVlhG0lSXfAQqdnFthIBNVlJVKA/tmpwwz4qysd.png",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-05-07T15:47:41.505Z",
"started_at": "2025-05-07T15:47:41.511713Z",
"completed_at": "2025-05-07T15:47:54.565633Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/h497rjb785rmc0cpndqax3hnvw/cancel",
"get": "https://api.replicate.com/v1/predictions/h497rjb785rmc0cpndqax3hnvw",
"stream": "https://stream.replicate.com/v1/files/bcwr-utqlhulwnmdl5jqkcypaq2xwszbxxkmjy2nhpmew7ibbr2eqanuq",
"web": "https://replicate.com/p/h497rjb785rmc0cpndqax3hnvw"
},
"metrics": {
"image_count": 1,
"predict_time": 13.053919646,
"total_time": 13.060633
}
}