SuperAPIAI Directory

ideogram4

github.com · AI images

Ideogram 4 is Ideogram's first open-weight text-to-image model, a foundation model trained from scratch, featuring a structured JSON prompt interface, multilingual text rendering, bounding-box layout, and palette control, with native support for 2K resolution. The model weights and inference code have been made public and are available via Hugging Face, and it can also be experienced online at ideogram.ai.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Ideogram 4 is Ideogram's first open-weight text-to-image model, a foundation model trained from scratch rather than a fine-tune of an existing model. It introduces a structured JSON prompt interface, featuring multilingual text rendering, deep language understanding, explicit bounding-box layout, and palette control, with native support for 2K resolution images. According to the official statement, the most convenient way to experience the model is to use it online at ideogram.ai.

Key capabilities

  • Extreme controllability: The model is trained on structured JSON descriptions, allowing users to control composition, style, lighting, palette, typography, and spatial layout through a single prompt.
  • Advanced text rendering: It performs outstandingly in generating text within images (signage, logos, captions, watermarks, multi-line text), and can generate high-fidelity text directly from prompts.
  • Spatial layout control: Bounding-box coordinates in the prompt can explicitly place subjects, text elements, and background regions.
  • Palette conditioning: Specify hexadecimal colors in the prompt to guide the image's dominant tones.
  • Flexible resolution: Native support for any resolution between 256 and 2048 (multiples of 16), with aspect ratios up to 6:1; a single model can handle everything from square thumbnails to ultra-wide banners, with the noise schedule automatically adjusted by resolution.

Architectural features Ideogram 4 is a flow-matching text-to-image model based on a fully single-stream Diffusion Transformer (DiT) architecture. Text and image tokens are concatenated into a unified sequence and processed through the same 34-layer transformer, with no separate text or image branches, achieving deep cross-modal interaction at every layer. The text encoder uses the Qwen3-VL-8B-Instruct vision-language model, extracting hidden states from 13 intermediate layers and concatenating them to provide multi-scale semantic features. The model uses dual-branch classifier-free guidance, where the conditional (positive) and unconditional (negative) branches can be optimized independently, controlling prompt adherence and image quality respectively.

Usage Model weights are gated on Hugging Face, requiring you to first accept the license and authenticate. The steps include: open the model page (ideogram-ai/ideogram-4-nf4 or ideogram-ai/ideogram-4-fp8), click Agree and access repository to accept the license; create an access token at huggingface.co/settings/tokens and log in (hf auth login), or directly export HF_TOKEN="hf_...". If you plan to modify the code, you can install it in editable mode so that changes under src/ideogram4/ take effect without reinstalling.

During inference, a regular --prompt is rewritten by the "magic prompt" LLM into the structured JSON description expected by the model. By default, the Ideogram-hosted magic-prompt API is used; this service is free and performs the expansion server-side, requiring reading IDEOGRAM_API_KEY (in https://ideogram.ai/platform obtained). Extensions can also be run through your own LLM provider, and one of the magic-prompt system prompts has been officially open-sourced. For the highest-quality images, you can set --height 2048 --width 2048 and --sampler-preset V4_QUALITY_48. Prompt and output safety screening is performed through Hive; you need to register and create Text Moderation and Visual Content Moderation keys, export them as HIVE_TEXT_MODERATION_KEY and HIVE_VISUAL_MODERATION_KEY, or pass them via --hive-text-key / --hive-visual-key. For sampler presets, parameter references, and optimization tips, see docs/inference.md.

Prompting Ideogram 4 is trained only on structured JSON descriptions, so you must provide a JSON object that conforms to its description schema. You can use an LLM to convert natural language prompts into JSON objects. JSON prompts allow maximum controllability, and the model natively understands this structure. Palette conditioning can be controlled by specifying a colour_palette array of hexadecimal colors in the style description. Aspect ratios are flexible, supporting resolutions from 256 to 2048 per side in multiples of 16, suitable for portraits, landscapes, banners, phone wallpapers, social media formats, and more. Bounding box layout lets you specify bbox coordinates in the prompt to explicitly place subjects, text elements, and background regions. Composition control can use compositional_deconstruction with optional bounding boxes and per-element descriptions to achieve precise spatial layout. If you do not want to hand-write JSON, you can use the magic prompt, which expands plain-text prompts into full structured descriptions via an LLM and runs by default in run_inference.py. For the full guide, see docs/prompting.md.

Evaluation Performance Ideogram 4 was officially evaluated on third-party arenas and benchmarks, standard open-source benchmarks, and internal human preference benchmarks. On the Design Arena design-oriented image Elo leaderboard, Ideogram 4 is the highest-ranked open-weight model, behind only proprietary GPT and Gemini models; when filtering to open-weight models only, its lead is clear. ContraLabs blind typography evaluation was judged by ten professional designers, and Ideogram 4 led in first-place win rate, being selected overall as the best of the four models 47.9% of the time, higher than Gemini 3.1 Flash Image Preview (Nano Banana 2) at 30.0%, FLUX.2 [max] at 15.5%, and Grok Imagine 1.0 at 15.0%. On the question of whether they would use it in real client work, designers rated Ideogram 4 highest, at 3.55/5. On the LMArena general text-to-image leaderboard, Ideogram is the highest-ranked open-weight lab, placing in the top five overall. The internal human preference benchmark focuses on graphic design and photography, and Bradley-Terry scoring ranks Ideogram 4 second overall, behind only GPT Image 2 medium, and first among open-weight models. On standard open-source benchmarks, including layout control (7Bench), spatial reasoning and object fidelity (SpatialGenEval), text rendering (X-Omni OCR), and prompt alignment (Prism), Ideogram 4 narrows the gap with leading closed-source models and significantly outperforms all closed-source models on layout control (7Bench). With 9.3B parameters, Ideogram 4 has the best text rendering among the open-weight releases benchmarked, ahead of larger models such as Qwen-Image (20B), FLUX.2 [dev] (32B), and HunyuanImage 3.0 (80B MoE).

Use Cases and Limitations Suitable for design scenarios requiring highly controllable image generation, such as typography, logos, signage, social media assets, banners, wallpapers, and more, especially tasks with precise requirements for text rendering and spatial layout within images. In terms of limitations: the model is trained only on structured JSON descriptions and requires a schema-conformant JSON object; the weights are gated on Hugging Face, requiring acceptance of the license and authentication; the default magic prompt depends on the Ideogram hosted API and an API key; safety screening depends on Hive keys; the official plan is to support more quantization in the future, and the current quantization support status is not yet provided.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools