OzzyGT / ideogram4_caption_blocks

huggingface.co
Total runs: 13
24-hour runs: 0
7-day runs: 3
30-day runs: -25
Model's Last Updated: July 20 2026
image-to-text

Introduction of ideogram4_caption_blocks

Model Details of ideogram4_caption_blocks

Ideogram4 caption block

A custom Modular Diffusers block that produces Ideogram 4's native structured-JSON caption from either an image or a short text idea, using a Gemma-4 vision-language model. The caption it returns can be fed straight into the Ideogram 4 generation pipeline as prompt .

image  -> caption it -> { high_level_description, style_description, compositional_deconstruction }
prompt -> enhance -> { high_level_description, compositional_deconstruction }

The mode is chosen automatically: pass image to caption it, or prompt (with no image) to enhance a short idea. Prompt enhancement reuses Ideogram's canonical magic-prompt system message from diffusers.pipelines.ideogram4.prompt_enhancer .

Loading & running
import torch
from diffusers import ModularPipeline
from diffusers.utils import load_image

pipe = ModularPipeline.from_pretrained("OzzyGT/ideogram4-caption-blocks", trust_remote_code=True)
pipe.load_components(torch_dtype=torch.bfloat16)
pipe.to("cuda")

image = load_image("your_image.png")
caption = pipe(image=image, output="caption")   # caption the image -> JSON string
print(caption)

Enhance a text idea instead (no image) — Ideogram's "magic prompt":

caption = pipe(
    prompt="a cozy coffee shop on a rainy evening",
    output="caption",
)

Get the parsed dict instead (or alongside):

out = pipe(image=image, output=["caption", "caption_json"])
out["caption_json"]   # dict, or None if the model output couldn't be parsed

Inputs: image (caption it) or prompt (enhance it); instruction (image-mode schema prompt), height / width (aspect-ratio hint for enhance mode), max_new_tokens (2048), temperature (0.0 = greedy). Outputs: caption (pretty JSON string), caption_json (parsed dict), caption_raw (raw decoded text).

Caption → generate
caption = pipe(image=ref, output="caption")
# feed straight into the Ideogram 4 generation pipeline (see OzzyGT/ideogram4-modular)
image = gen_pipe(prompt=caption, output="images")[0]
Notes
  • Default checkpoint: google/gemma-4-E4B-it (official bf16, ~15 GB — gated, needs a license-accepted HF token and a >=24 GB GPU). Requires transformers>=5.12 . To run on a smaller GPU, point pretrained_model_name_or_path at a quantized checkpoint of the same model — import its quantization backend first, as the block no longer bundles one.
  • Ideogram 4 was trained on these JSON captions, so a caption from this block is the ideal prompt for re-generation / auto-captioned img2img.

Runs of OzzyGT ideogram4_caption_blocks on huggingface.co

13
Total runs
0
24-hour runs
1
3-day runs
3
7-day runs
-25
30-day runs

More Information About ideogram4_caption_blocks huggingface.co Model

More ideogram4_caption_blocks license Visit here:

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

ideogram4_caption_blocks huggingface.co

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

ideogram4_caption_blocks huggingface.co Url

https://huggingface.co/OzzyGT/ideogram4_caption_blocks

OzzyGT ideogram4_caption_blocks online free

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

OzzyGT ideogram4_caption_blocks online free url in huggingface.co:

https://huggingface.co/OzzyGT/ideogram4_caption_blocks

ideogram4_caption_blocks install

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

ideogram4_caption_blocks install url in huggingface.co:

https://huggingface.co/OzzyGT/ideogram4_caption_blocks

Url of ideogram4_caption_blocks

ideogram4_caption_blocks huggingface.co Url

Provider of ideogram4_caption_blocks huggingface.co

OzzyGT
ORGANIZATIONS

Other API from OzzyGT

huggingface.co

Total runs: 112
Run Growth: -12
Growth Rate: -10.71%
Updated:March 25 2026
huggingface.co

Total runs: 8
Run Growth: -21
Growth Rate: -262.50%
Updated:March 28 2026
huggingface.co

Total runs: 3
Run Growth: -2
Growth Rate: -66.67%
Updated:February 21 2026
huggingface.co

Total runs: 1
Run Growth: 1
Growth Rate: 100.00%
Updated:November 11 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 18 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 12 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 18 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 22 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 18 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 22 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 19 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 18 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 18 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 18 2024