typetext
{
"aspect_ratio": "3:2",
"magic_prompt_option": "Auto",
"prompt": "The text \"V3 Balanced\" in the center middle. A color film-inspired portrait of a young man and a young woman looking at each other, a shallow depth of field that blurs the surrounding elements, drawing attention to their eyes. 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": "None"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_AGj**********************************
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-balanced 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: "Auto",
prompt: "The text \"V3 Balanced\" in the center middle. A color film-inspired portrait of a young man and a young woman looking at each other, a shallow depth of field that blurs the surrounding elements, drawing attention to their eyes. 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: "None"
};
const output = await replicate.run("ideogram-ai/ideogram-v3-balanced", { 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_AGj**********************************
This is your API token. Keep it to yourself.
import replicate
Run ideogram-ai/ideogram-v3-balanced using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"ideogram-ai/ideogram-v3-balanced",
input={
"aspect_ratio": "3:2",
"magic_prompt_option": "Auto",
"prompt": "The text \"V3 Balanced\" in the center middle. A color film-inspired portrait of a young man and a young woman looking at each other, a shallow depth of field that blurs the surrounding elements, drawing attention to their eyes. 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": "None"
}
)
# 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_AGj**********************************
This is your API token. Keep it to yourself.
Run ideogram-ai/ideogram-v3-balanced 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": "Auto",
"prompt": "The text \\"V3 Balanced\\" in the center middle. A color film-inspired portrait of a young man and a young woman looking at each other, a shallow depth of field that blurs the surrounding elements, drawing attention to their eyes. 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": "None"
}
}' \
https://api.replicate.com/v1/models/ideogram-ai/ideogram-v3-balanced/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "7zhqka3by1rme0cphf5sh9ae10",
"model": "ideogram-ai/ideogram-v3-balanced",
"version": "hidden",
"input": {
"aspect_ratio": "3:2",
"magic_prompt_option": "Auto",
"prompt": "The text \"V3 Balanced\" in the center middle. A color film-inspired portrait of a young man and a young woman looking at each other, a shallow depth of field that blurs the surrounding elements, drawing attention to their eyes. 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": "None"
},
"logs": "Using seed: 396639763\nModerating content...\nModeration complete in 0.19sec\nGenerating...\nPrompt used: The text \"V3 Balanced\" in the center middle. A color film-inspired portrait of a young man and a young woman looking at each other, a shallow depth of field that blurs the surrounding elements, drawing attention to their eyes. 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.\nImage generation took 7.40 seconds\nDownloading 1470627 bytes\nDownloaded 1.40MB in 0.71sec",
"output": "https://replicate.delivery/xezq/lAJSBuWxfIyQGa23NBQSrPMeTEmfsi1GCApyu4fDGDo4UGhSB/tmphco6mpqu.png",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-05-01T12:21:26.64Z",
"started_at": "2025-05-01T12:21:26.653119Z",
"completed_at": "2025-05-01T12:21:34.96623Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/7zhqka3by1rme0cphf5sh9ae10/cancel",
"get": "https://api.replicate.com/v1/predictions/7zhqka3by1rme0cphf5sh9ae10",
"stream": "https://stream.replicate.com/v1/files/bcwr-hp5einggbsjdhgrmldltrgrp55gskuzbojtw5jieesicmta34veq",
"web": "https://replicate.com/p/7zhqka3by1rme0cphf5sh9ae10"
},
"metrics": {
"image_count": 1,
"predict_time": 8.313110919,
"total_time": 8.32623
}
}