Text-to-Image
Diffusers
Safetensors
Ideogram4Pipeline
image-generation
diffusion
flow-matching
dit
ideogram
Instructions to use ideogram-ai/ideogram-4-fp8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ideogram-ai/ideogram-4-fp8 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("ideogram-ai/ideogram-4-fp8", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
sd-cpp parametrization
#18
by MortiDahlaine - opened
I have been fighting with the task of getting the images to be clearer, more photorealistic and it's proven to be a bit of painful. This is how pictures looked like first:
Ultimately, I have managed to improve them with --sampling-method lcm --cfg-scale 2.5 --steps 16 to something like this:
Not perfect, but vastly better. Then I made another prompt and it looked fine, but a yet different prompt, like this:
{
"high_level_description": "A photorealistic high fantasy scene of a poisoned lake glowing with pallid ghostly verdigris under a vermillion-red alien sky, surrounded by ruined park fragments and venomous violet vegetation, with the withered last monarch seated on a hollowed throne amid the desolation of his fallen empire.",
"aspect_ratio": "16:9",
"style_description": {
"medium": "Photorealistic cinematic fantasy",
"aesthetics": "Ruined early-20th-century parkland on another planet, gothic decay, imperial grandeur, spectral melancholy, and poisonous natural beauty",
"lighting": "Nighttime luminous atmosphere with the lake emitting a ghostly pale-green glow, contrasted by deep amber-orange to vermillion-red sky light, long shadows, and faint mist across the ruined realm",
"color_palette": [
"#B8D8C0",
"#7FA58F",
"#FF9F43",
"#C94A2E",
"#5A1E7A",
"#2E1A3A",
"#D8C2A0"
],
"mood": "Profound doubt, hopelessness, and the eerie feeling of an empire that has almost returned but cannot quite come alive"
},
"compositional_deconstruction": {
"background": "A vast amber-orange to vermillion-red sky with thin violet clouds and a faint alien horizon. The ground is a desolate parkland of cracked stone paths, broken fountains, rusted ironwork, and remnants of early-20th-century architecture, all overgrown by immense venomous plants with dark purple and violet leaves.",
"elements": [
{
"type": "obj",
"bbox": [
0,
0,
1600,
430
],
"text": "Amber-orange vermillion sky",
"desc": "Wide alien sky in warm orange-red tones, deepening upward into vermillion red with soft violet haze and thin cloud bands, giving the scene a nocturnal but ominous glow."
},
{
"type": "obj",
"bbox": [
120,
360,
1020,
780
],
"text": "Poisoned lake of spectral verdigris",
"desc": "A large ruined lake in the center-left of the scene, its water glowing with a pale, ghostly verdigris that resembles the spectral visages of the dead, rippling softly and casting emerald light onto nearby roots, stones, and broken park paths."
},
{
"type": "obj",
"bbox": [
0,
520,
1600,
900
],
"text": "Ruined park and venomous vegetation",
"desc": "Former park fragments choked by immense venomous vegetation, including dark purple vines, violet shrubs, thorned stems, and hanging moss draped over cracked stone, iron railings, and overgrown walkways."
},
{
"type": "obj",
"bbox": [
1020,
450,
1460,
720
],
"text": "Fragments of former park",
"desc": "Broken classical park ruins and early-20th-century architectural remnants, with cracked marble paths, rusted benches, broken fountains, and weathered stone edges swallowed by dense violet growth."
},
{
"type": "obj",
"bbox": [
1040,
610,
1440,
840
],
"text": "Hollowed throne of the last monarch",
"desc": "A massive hollowed throne built from dark stone and old imperial metal, set on a raised dais at the edge of the poisoned lake, with the last monarch seated within it as a withered shade or still-living ruler. Facing the lake."
},
{
"type": "obj",
"bbox": [
1080,
650,
1360,
810
],
"text": "Withered last monarch",
"desc": "The last monarch seated upon the hollowed throne, robed in tattered early-20th-century regalia, either contemplating the revival of his empire or transformed into a shadow of the past. Facing the lake."
},
{
"type": "obj",
"bbox": [
180,
620,
980,
860
],
"text": "Spectral lake glow",
"desc": "A luminous emerald-green reflection spreading across the foreground water and stone, casting ghostly green light and creating the feeling that the lake itself induces doubt and hopelessness."
}
]
}
}
This yields extremely noisy pictures no matter what I try:


