Prediction
ideogram-ai/ideogram-v2Official model
ID
e6je6p0q39rgc0cjph3s7rw43w
Status
Succeeded
Source
Web
Total duration
Created
by @ideogram-ai
Input
- prompt
- A beautiful typographic poster with the text "Run Ideogram on Replicate", against an epic space scene
- resolution
- None
- style_type
- None
- aspect_ratio
- 2:3
- magic_prompt_option
- Auto
{
"prompt": "A beautiful typographic poster with the text \"Run Ideogram on Replicate\", against an epic space scene",
"resolution": "None",
"style_type": "None",
"aspect_ratio": "2:3",
"magic_prompt_option": "Auto"
}
Install Replicate’s Node.js client library:
npm install replicate
Set the
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run ideogram-ai/ideogram-v2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
prompt: "A beautiful typographic poster with the text \"Run Ideogram on Replicate\", against an epic space scene",
resolution: "None",
style_type: "None",
aspect_ratio: "2:3",
magic_prompt_option: "Auto"
};
const output = await replicate.run("ideogram-ai/ideogram-v2", { 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.
Install Replicate’s Python client library:
pip install replicate
Set the
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:
import replicate
Run ideogram-ai/ideogram-v2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"ideogram-ai/ideogram-v2",
input={
"prompt": "A beautiful typographic poster with the text \"Run Ideogram on Replicate\", against an epic space scene",
"resolution": "None",
"style_type": "None",
"aspect_ratio": "2:3",
"magic_prompt_option": "Auto"
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
Set the
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run ideogram-ai/ideogram-v2 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": {
"prompt": "A beautiful typographic poster with the text \\"Run Ideogram on Replicate\\", against an epic space scene",
"resolution": "None",
"style_type": "None",
"aspect_ratio": "2:3",
"magic_prompt_option": "Auto"
}
}' \
https://api.replicate.com/v1/models/ideogram-ai/ideogram-v2/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{
"completed_at": "2024-10-22T12:50:31.286742Z",
"created_at": "2024-10-22T12:50:10.842000Z",
"data_removed": false,
"error": null,
"id": "e6je6p0q39rgc0cjph3s7rw43w",
"input": {
"prompt": "A beautiful typographic poster with the text \"Run Ideogram on Replicate\", against an epic space scene",
"resolution": "None",
"style_type": "None",
"aspect_ratio": "2:3",
"magic_prompt_option": "Auto"
},
"logs": "Using seed: 31855\nRunning prediction... \nGenerating...\nPrompt used: A typographic poster with the text \"Run Ideogram on Replicate\" in a modern, minimalist font. The text is white and placed on a deep blue background. The background is an epic space scene with stars, galaxies, and a planet. The planet has a ring around it. There are also space ships flying in the sky. The overall image has a vast and mysterious atmosphere.\nImage generation took 19.49 seconds",
"metrics": {
"image_count": 1,
"predict_time": 20.437815705,
"total_time": 20.444742
},
"output": "https://replicate.delivery/czjl/O92SKpq8A4bRLJzpITyfkO0NP83TZJi68WvHlVfNM2ZXGVpTA/R8_ideogram.png",
"started_at": "2024-10-22T12:50:10.848926Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/e6je6p0q39rgc0cjph3s7rw43w",
"cancel": "https://api.replicate.com/v1/predictions/e6je6p0q39rgc0cjph3s7rw43w/cancel"
},
"version": "hidden"
}
Generated in
Using seed: 31855
Running prediction...
Generating...
Prompt used: A typographic poster with the text "Run Ideogram on Replicate" in a modern, minimalist font. The text is white and placed on a deep blue background. The background is an epic space scene with stars, galaxies, and a planet. The planet has a ring around it. There are also space ships flying in the sky. The overall image has a vast and mysterious atmosphere.
Image generation took 19.49 seconds