typetext
{
"aspect_ratio": "3:2",
"magic_prompt_option": "On",
"prompt": "A color film-inspired portrait of a child and an elephant on the playground 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_Iog**********************************
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 child and an elephant on the playground 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_Iog**********************************
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 child and an elephant on the playground 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_Iog**********************************
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 child and an elephant on the playground 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": "vgq0g8ma5xrmc0cpndpvtw842r",
"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 child and an elephant on the playground 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: 1515341299\nModerating content...\nModeration complete in 0.19sec\nGenerating...\nPrompt used: A color film-inspired photograph of a young girl with bright, inquisitive eyes standing near a gentle giant of an Asian elephant on a sunny playground. The girl, wearing a faded denim dress and red sandals, gazes up at the elephant with a mix of curiosity and wonder, her hand outstretched slightly. The elephant, with weathered gray skin and large, flapping ears, lowers its trunk towards her in a gesture of gentle interaction, surrounded by scattered wooden playground equipment and a patch of vibrant green grass. Soft, diffused sunlight filters through the leaves of nearby trees, creating a warm, nostalgic atmosphere with a shallow depth of field.\nImage generation took 12.18 seconds\nDownloading 1701535 bytes\nDownloaded 1.62MB in 0.64sec",
"output": "https://replicate.delivery/xezq/2GNEZK1vtkJWIF7UmumuNN1QEhn0i5WbQel9gC8mzZ14kJVKA/tmpiz2awy03.png",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-05-07T15:46:44.911Z",
"started_at": "2025-05-07T15:46:44.91733Z",
"completed_at": "2025-05-07T15:46:57.939546Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/vgq0g8ma5xrmc0cpndpvtw842r/cancel",
"get": "https://api.replicate.com/v1/predictions/vgq0g8ma5xrmc0cpndpvtw842r",
"stream": "https://stream.replicate.com/v1/files/bcwr-6zursqrywgu64yp6cyccjnfehrxxaoau5ougbmpqr6ejtkkos4tq",
"web": "https://replicate.com/p/vgq0g8ma5xrmc0cpndpvtw842r"
},
"metrics": {
"image_count": 1,
"predict_time": 13.022216527,
"total_time": 13.028546
}
}