typetext
{
"aspect_ratio": "3:2",
"magic_prompt_option": "Off",
"prompt": "The text \"V3 Quality\" in the center middle. A color film-inspired portrait of a young woman 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": "None"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Zsu**********************************
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: "Off",
prompt: "The text \"V3 Quality\" in the center middle. A color film-inspired portrait of a young woman 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: "None"
};
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_Zsu**********************************
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": "Off",
"prompt": "The text \"V3 Quality\" in the center middle. A color film-inspired portrait of a young woman 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": "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_Zsu**********************************
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": "Off",
"prompt": "The text \\"V3 Quality\\" in the center middle. A color film-inspired portrait of a young woman 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": "None"
}
}' \
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": "g5fynb3q9srm80cphf2raqw2f0",
"model": "ideogram-ai/ideogram-v3-quality",
"version": "hidden",
"input": {
"aspect_ratio": "3:2",
"magic_prompt_option": "Off",
"prompt": "The text \"V3 Quality\" in the center middle. A color film-inspired portrait of a young woman 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": "None"
},
"logs": "Using seed: 373273390\nModerating content...\nModeration complete in 0.18sec\nGenerating...\nPrompt used: The text \"V3 Quality\" in the center middle. A color film-inspired portrait of a young woman 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.\nImage generation took 9.31 seconds\nDownloading 1456929 bytes\nDownloaded 1.39MB in 0.78sec",
"output": "https://replicate.delivery/xezq/dKCu2YZQCjoSB9S4ugKlBfYF8SkRDZG2Tq5y6S1fw2lKfiQpA/tmpx4azqibw.png",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-05-01T12:14:56.334Z",
"started_at": "2025-05-01T12:14:56.341282Z",
"completed_at": "2025-05-01T12:15:06.617452Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/g5fynb3q9srm80cphf2raqw2f0/cancel",
"get": "https://api.replicate.com/v1/predictions/g5fynb3q9srm80cphf2raqw2f0",
"stream": "https://stream.replicate.com/v1/files/bcwr-5fygojnpbm57d6i5pqqkqe3qn54yfginusszzmyrmaj4723f6fya",
"web": "https://replicate.com/p/g5fynb3q9srm80cphf2raqw2f0"
},
"metrics": {
"image_count": 1,
"predict_time": 10.276170195,
"total_time": 10.283452
}
}