typetext
{
"aspect_ratio": "3:2",
"magic_prompt_option": "On",
"prompt": "A diagram of the city of san francisco in 3D",
"resolution": "None",
"style_reference_images": [
"https://replicate.delivery/pbxt/Mxqm0Zj03tNtiyBX4NOjP5Ji1Qoyy7stEiLqXQG6CYXzbHCY/984ade17-98cc-407c-92a1-86c4da057e6e.jpg",
"https://replicate.delivery/pbxt/Mxqm1EWCdQ1z24ll2EB4d7Ci7F93khXMCZSthiou0uyCoOuH/164d7307-2eb4-40df-a966-d227d9a987c4.jpg",
"https://replicate.delivery/pbxt/Mxqm10LF0aM9ctmKkqa2J4jkDIl8skVAzPJnxJUr21J8fH3X/45900138-1cb6-4d00-9298-407c04f01b03.jpg",
"https://replicate.delivery/pbxt/Mxqm1FZeUP3waTbhEXWIw0xU82qEFUdChNfRhakpQoCMEjw7/c667bfee-64ca-496e-b0a3-db402eadf5d1.jpg",
"https://replicate.delivery/pbxt/Mxqm0YqhPePvyqH8wFwbW8QzJANzhQypFLkaO8yp9Zh8ucPI/2387a19e-c15a-4ea5-804a-3cb7df280c48.jpg"
],
"style_type": "None"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_DBT**********************************
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 diagram of the city of san francisco in 3D",
resolution: "None",
style_reference_images: ["https://replicate.delivery/pbxt/Mxqm0Zj03tNtiyBX4NOjP5Ji1Qoyy7stEiLqXQG6CYXzbHCY/984ade17-98cc-407c-92a1-86c4da057e6e.jpg","https://replicate.delivery/pbxt/Mxqm1EWCdQ1z24ll2EB4d7Ci7F93khXMCZSthiou0uyCoOuH/164d7307-2eb4-40df-a966-d227d9a987c4.jpg","https://replicate.delivery/pbxt/Mxqm10LF0aM9ctmKkqa2J4jkDIl8skVAzPJnxJUr21J8fH3X/45900138-1cb6-4d00-9298-407c04f01b03.jpg","https://replicate.delivery/pbxt/Mxqm1FZeUP3waTbhEXWIw0xU82qEFUdChNfRhakpQoCMEjw7/c667bfee-64ca-496e-b0a3-db402eadf5d1.jpg","https://replicate.delivery/pbxt/Mxqm0YqhPePvyqH8wFwbW8QzJANzhQypFLkaO8yp9Zh8ucPI/2387a19e-c15a-4ea5-804a-3cb7df280c48.jpg"],
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_DBT**********************************
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 diagram of the city of san francisco in 3D",
"resolution": "None",
"style_reference_images": ["https://replicate.delivery/pbxt/Mxqm0Zj03tNtiyBX4NOjP5Ji1Qoyy7stEiLqXQG6CYXzbHCY/984ade17-98cc-407c-92a1-86c4da057e6e.jpg","https://replicate.delivery/pbxt/Mxqm1EWCdQ1z24ll2EB4d7Ci7F93khXMCZSthiou0uyCoOuH/164d7307-2eb4-40df-a966-d227d9a987c4.jpg","https://replicate.delivery/pbxt/Mxqm10LF0aM9ctmKkqa2J4jkDIl8skVAzPJnxJUr21J8fH3X/45900138-1cb6-4d00-9298-407c04f01b03.jpg","https://replicate.delivery/pbxt/Mxqm1FZeUP3waTbhEXWIw0xU82qEFUdChNfRhakpQoCMEjw7/c667bfee-64ca-496e-b0a3-db402eadf5d1.jpg","https://replicate.delivery/pbxt/Mxqm0YqhPePvyqH8wFwbW8QzJANzhQypFLkaO8yp9Zh8ucPI/2387a19e-c15a-4ea5-804a-3cb7df280c48.jpg"],
"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_DBT**********************************
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 diagram of the city of san francisco in 3D",
"resolution": "None",
"style_reference_images": ["https://replicate.delivery/pbxt/Mxqm0Zj03tNtiyBX4NOjP5Ji1Qoyy7stEiLqXQG6CYXzbHCY/984ade17-98cc-407c-92a1-86c4da057e6e.jpg","https://replicate.delivery/pbxt/Mxqm1EWCdQ1z24ll2EB4d7Ci7F93khXMCZSthiou0uyCoOuH/164d7307-2eb4-40df-a966-d227d9a987c4.jpg","https://replicate.delivery/pbxt/Mxqm10LF0aM9ctmKkqa2J4jkDIl8skVAzPJnxJUr21J8fH3X/45900138-1cb6-4d00-9298-407c04f01b03.jpg","https://replicate.delivery/pbxt/Mxqm1FZeUP3waTbhEXWIw0xU82qEFUdChNfRhakpQoCMEjw7/c667bfee-64ca-496e-b0a3-db402eadf5d1.jpg","https://replicate.delivery/pbxt/Mxqm0YqhPePvyqH8wFwbW8QzJANzhQypFLkaO8yp9Zh8ucPI/2387a19e-c15a-4ea5-804a-3cb7df280c48.jpg"],
"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": "0h4g8hg97drme0cpn13sqcvkrw",
"model": "ideogram-ai/ideogram-v3-quality",
"version": "hidden",
"input": {
"aspect_ratio": "3:2",
"magic_prompt_option": "On",
"prompt": "A diagram of the city of san francisco in 3D",
"resolution": "None",
"style_reference_images": [
"https://replicate.delivery/pbxt/Mxqm0Zj03tNtiyBX4NOjP5Ji1Qoyy7stEiLqXQG6CYXzbHCY/984ade17-98cc-407c-92a1-86c4da057e6e.jpg",
"https://replicate.delivery/pbxt/Mxqm1EWCdQ1z24ll2EB4d7Ci7F93khXMCZSthiou0uyCoOuH/164d7307-2eb4-40df-a966-d227d9a987c4.jpg",
"https://replicate.delivery/pbxt/Mxqm10LF0aM9ctmKkqa2J4jkDIl8skVAzPJnxJUr21J8fH3X/45900138-1cb6-4d00-9298-407c04f01b03.jpg",
"https://replicate.delivery/pbxt/Mxqm1FZeUP3waTbhEXWIw0xU82qEFUdChNfRhakpQoCMEjw7/c667bfee-64ca-496e-b0a3-db402eadf5d1.jpg",
"https://replicate.delivery/pbxt/Mxqm0YqhPePvyqH8wFwbW8QzJANzhQypFLkaO8yp9Zh8ucPI/2387a19e-c15a-4ea5-804a-3cb7df280c48.jpg"
],
"style_type": "None"
},
"logs": "Using seed: 89905583\nModerating content...\nModerating content...\nModerating content...\nModerating content...\nModerating content...\nModerating content...\nImage size: 28.3KB\nImage size: 25.8KB\nImage size: 29.3KB\nImage size: 26.5KB\nImage size: 25.5KB\nModeration complete in 0.39sec\nModeration complete in 0.50sec\nModeration complete in 0.53sec\nModeration complete in 0.59sec\nModeration complete in 0.64sec\nModeration complete in 0.77sec\nGenerating...\nImage size: 403.8KB\nImage size: 477.3KB\nImage size: 491.9KB\nImage size: 401.0KB\nImage size: 459.4KB\nPrompt used: A 3D diagram of the city of San Francisco, showcasing its iconic hills and bay views. The diagram uses a clean, modern architectural rendering style with a muted color palette of grays, blues, and greens, highlighting the city's unique topography. \"San Francisco\" is prominently displayed in a sleek, sans-serif font along the lower edge of the diagram. Golden Gate Bridge arches gracefully across the bay while Alcatraz Island sits stoically in the distance, all bathed in soft, diffused lighting.\nImage generation took 12.66 seconds\nDownloading 1293425 bytes\nDownloaded 1.23MB in 0.57sec",
"output": "https://replicate.delivery/xezq/5XWuDD6IzfzRPCTFcN2E5UdKkfOchy0POHSaOPQHAfu4fYoSB/tmpjwmxrz8z.png",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-05-07T01:05:49.883Z",
"started_at": "2025-05-07T01:05:49.892292Z",
"completed_at": "2025-05-07T01:06:04.164066Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/0h4g8hg97drme0cpn13sqcvkrw/cancel",
"get": "https://api.replicate.com/v1/predictions/0h4g8hg97drme0cpn13sqcvkrw",
"stream": "https://stream.replicate.com/v1/files/bcwr-7ld45g7wlbklsuifmq5rqi475b5et2izwsqmrsko3glf6xa3ffra",
"web": "https://replicate.com/p/0h4g8hg97drme0cpn13sqcvkrw"
},
"metrics": {
"image_count": 1,
"predict_time": 14.271774749,
"total_time": 14.281066
}
}




