diffusers / ideogram4-prompt-enhancer

huggingface.co
Total runs: 21
24-hour runs: 0
7-day runs: 3
30-day runs: 21
Model's Last Updated: November 19 2026

Introduction of ideogram4-prompt-enhancer

Model Details of ideogram4-prompt-enhancer

Ideogram4PromptEnhancerBlock rewrites a prompt into Ideogram4's structured JSON caption format. The block and Ideogram4PromptEnhancerHead implementation live in this repository; neither imports the implementation from diffusers.pipelines.ideogram4 .

Install Diffusers from source and the generation dependencies:

pip install git+https://github.com/huggingface/diffusers.git transformers accelerate outlines
import torch
from diffusers import ModularPipeline

enhancer = ModularPipeline.from_pretrained(
    "diffusers/ideogram4-prompt-enhancer", trust_remote_code=True
)
enhancer.load_components(dtype=torch.bfloat16, trust_remote_code=True)
enhancer.to("cuda")

captions = enhancer(
    prompt="A red bicycle leaning against a yellow wall.",
    height=768,
    width=1024,
    generator=torch.Generator().manual_seed(42),
    output="prompt",
)
print(captions[0])

The output is a list of JSON strings, one per input prompt. Pass a string or a list of strings to prompt . height and width default to 2048 and determine the aspect ratio in the caption instruction. max_new_tokens defaults to 2048. prompt_upsampling_temperature defaults to 1.0; set it to 0 for greedy decoding. Outlines constrains the JSON schema when installed. A token limit that is too short can still truncate the caption.

To reuse an existing Ideogram4 pipeline's encoder and tokenizer, replace the loading section with:

enhancer.update_components(text_encoder=pipe.text_encoder, tokenizer=pipe.tokenizer)
enhancer.load_components(
    names="prompt_enhancer_head", dtype=torch.bfloat16, trust_remote_code=True
)
enhancer.to("cuda")

The encoder is shared by reference. Keep the shared encoder and the head on the same device and use compatible dtypes. Pass the resulting captions to the image pipeline with prompt_upsampling=False .

modular_model_index.json records all three components. The encoder and tokenizer come from Qwen/Qwen3-VL-8B-Instruct . The head is loaded through diffusers.AutoModel from this repository's prompt_enhancer_head/ directory with trust_remote_code=True . Its weights are unchanged from diffusers/qwen3-vl-8b-instruct-lm-head .

The caption instructions, generation helpers, and head implementation are adapted from Diffusers at d5df05ed2 .

Runs of diffusers ideogram4-prompt-enhancer on huggingface.co

21
Total runs
0
24-hour runs
0
3-day runs
3
7-day runs
21
30-day runs

More Information About ideogram4-prompt-enhancer huggingface.co Model

More ideogram4-prompt-enhancer license Visit here:

https://choosealicense.com/licenses/apache-2.0

ideogram4-prompt-enhancer huggingface.co

ideogram4-prompt-enhancer huggingface.co is an AI model on huggingface.co that provides ideogram4-prompt-enhancer's model effect (), which can be used instantly with this diffusers ideogram4-prompt-enhancer model. huggingface.co supports a free trial of the ideogram4-prompt-enhancer model, and also provides paid use of the ideogram4-prompt-enhancer. Support call ideogram4-prompt-enhancer model through api, including Node.js, Python, http.

ideogram4-prompt-enhancer huggingface.co Url

https://huggingface.co/diffusers/ideogram4-prompt-enhancer

diffusers ideogram4-prompt-enhancer online free

ideogram4-prompt-enhancer huggingface.co is an online trial and call api platform, which integrates ideogram4-prompt-enhancer's modeling effects, including api services, and provides a free online trial of ideogram4-prompt-enhancer, you can try ideogram4-prompt-enhancer online for free by clicking the link below.

diffusers ideogram4-prompt-enhancer online free url in huggingface.co:

https://huggingface.co/diffusers/ideogram4-prompt-enhancer

ideogram4-prompt-enhancer install

ideogram4-prompt-enhancer is an open source model from GitHub that offers a free installation service, and any user can find ideogram4-prompt-enhancer on GitHub to install. At the same time, huggingface.co provides the effect of ideogram4-prompt-enhancer install, users can directly use ideogram4-prompt-enhancer installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

ideogram4-prompt-enhancer install url in huggingface.co:

https://huggingface.co/diffusers/ideogram4-prompt-enhancer

Url of ideogram4-prompt-enhancer

ideogram4-prompt-enhancer huggingface.co Url

Provider of ideogram4-prompt-enhancer huggingface.co

diffusers
ORGANIZATIONS

Other API from diffusers

huggingface.co

Total runs: 46.7K
Run Growth: 0
Growth Rate: 0.00%
Updated:October 22 2024
huggingface.co

Total runs: 3.0K
Run Growth: -270
Growth Rate: -9.46%
Updated:February 08 2023
huggingface.co

Total runs: 2.0K
Run Growth: 819
Growth Rate: 41.64%
Updated:February 24 2025
huggingface.co

Total runs: 61
Run Growth: 37
Growth Rate: 60.66%
Updated:January 27 2023
huggingface.co

Total runs: 49
Run Growth: 10
Growth Rate: 20.41%
Updated:February 07 2024