返回技能列表

ideogram4

digitalsamba
更新于 Yesterday
1,419
245
1,419
在 GitHub 上查看
ai

关于

This Claude Skill generates images using Ideogram 4, specializing in rendering legible on-image text and providing exact control over colors and layout. It requires structured JSON captions to unlock its advanced capabilities for elements like title cards, logos, and signage. Developers should use it when they need precise brand colors, bounding-box layouts, or highly readable text within an image.

快速安装

Claude Code

推荐
主要方式
npx skills add digitalsamba/claude-code-video-toolkit -a claude-code
插件命令备选方式
/plugin add https://github.com/digitalsamba/claude-code-video-toolkit
Git 克隆备选方式
git clone https://github.com/digitalsamba/claude-code-video-toolkit.git ~/.claude/skills/ideogram4

在 Claude Code 中复制并粘贴此命令以安装该技能

技能文档

Ideogram 4 Skill

Text-to-image generation with Ideogram 4 (9.3B, open-weight, released June 2026). Its superpower is best-in-class in-image text rendering — it beats much larger models (FLUX.2 dev 32B, Qwen-Image 20B, Hunyuan 80B) at rendering legible signage, logos, captions, and multi-line text — plus exact color-palette and bounding-box control.

That advantage is locked behind a structured JSON caption format. A plain-text prompt gets you FLUX-level results and misses the entire point of using this model. This skill teaches Claude to act as the "magic prompt" expander — turning a user's casual request into the JSON caption Ideogram 4 was trained on.

Backend: The toolkit uses Ideogram's hosted v4 API (not self-hosted weights). The API accepts a structured json_prompt, so everything this skill teaches applies directly — Claude builds the caption, the tool posts it as json_prompt. Paid API plans include a commercial license, which the self-hostable weights (non-commercial) do not — that's why we use the API. Cost is ~$0.03/image (turbo) to ~$0.09/image (quality).

When to Use This Skill

Reach for Ideogram 4 (over FLUX.2) when the image needs:

  • Legible on-image text — title cards, thumbnails, lower-thirds backgrounds, signage, logos, quote cards, CTAs with a headline baked in
  • Exact brand colors — hex color-palette conditioning, per-element
  • Controlled layout — bounding boxes place text/objects in specific regions
  • Multilingual text in the image

Use FLUX.2 instead when: the image has no critical text, you need commercial-licensed output, or you just want a fast atmospheric background. FLUX takes plain natural-language prompts; Ideogram wants JSON. See tools/flux2.py.

The One Thing to Get Right

Always emit a structured JSON caption, not a plain sentence. The model is trained exclusively on JSON captions that name every element explicitly. Claude is a better expander than Ideogram's free hosted magic-prompt (their own docs note the shipped one "is not the same used in production"), so build the caption yourself using this skill rather than passing raw text.

Minimal valid caption:

{"high_level_description":"A sailboat at sunset on calm water.","style_description":{"aesthetics":"serene, warm, golden hour","lighting":"golden hour backlighting","photo":"wide angle, f/8","medium":"photograph","color_palette":["#FF6B35","#F7C59F","#004E89"]},"compositional_deconstruction":{"background":"Calm ocean at low horizon with orange-pink sky.","elements":[{"type":"obj","desc":"White triangular sail silhouetted against the setting sun."}]}}

Full schema, strict key-ordering rules, and the bbox coordinate system are in prompting.md. Worked title-card / thumbnail / quote-card examples are in examples.md.

Quick Reference — tools/ideogram4.py

Thin wrapper over Ideogram's hosted v4 API. Needs IDEOGRAM_API_KEY in .env (key from developer.ideogram.ai). --json posts the caption as the API's json_prompt field (no server-side magic prompt — Claude is the expander); --prompt posts text_prompt.

# Hand-authored JSON caption (the recommended path for text/layout) — Claude writes caption.json
python3 tools/ideogram4.py --json caption.json --output title.png

# Caption from stdin (Claude can pipe it directly)
cat caption.json | python3 tools/ideogram4.py --json - --output title.png

# Plain prompt — Ideogram's server-side magic prompt expands it (weaker; prefer --json)
python3 tools/ideogram4.py --prompt "Title card: 'AI ENGINEERING REVIEW' bold white on dark" --output title.png

# Inject brand hex colors into the caption's palette (JSON mode)
python3 tools/ideogram4.py --json caption.json --brand digital-samba --output cta.png

# Quality tier + resolution
python3 tools/ideogram4.py --json caption.json --speed QUALITY --resolution 2048x2048 --output slide.png

Key Files

  • prompting.md — full JSON schema, strict key ordering, bbox coordinate system, palette rules
  • examples.md — worked captions for title cards, thumbnails, quote cards, brand CTAs

Video Production Fit

Ideogram 4's niche in the toolkit is slides and thumbnails with baked-in text, where FLUX and LTX-2 fail (both render garbled text). Natural pairings:

Use caseWhy Ideogram 4
Title-card / CTA background with headline textLegible text + exact brand hex colors in one pass
YouTube/social thumbnail with a punchy phraseBig readable text is its strongest suit
Quote card / stat cardMulti-line text + layout control via bboxes
Signage/logos inside a product-demo sceneIn-image text other models can't render

Then feed the still into Remotion (<OffthreadVideo>/Img) or animate it with tools/ltx2.py --input.

GitHub 仓库

digitalsamba/claude-code-video-toolkit
路径: .claude/skills/ideogram4
0
ai-video-generatorclaude-codedeveloper-toolselevenlabsopen-sourceopenclaw

相关推荐技能

content-collections

Content Collections 是一个 TypeScript 优先的构建工具,可将本地 Markdown/MDX 文件转换为类型安全的数据集合。它专为构建博客、文档站和内容密集型 Vite+React 应用而设计,提供基于 Zod 的自动模式验证。该工具涵盖从 Vite 插件配置、MDX 编译到生产环境部署的完整工作流。

查看技能

polymarket

这个Claude Skill为开发者提供完整的Polymarket预测市场开发支持,涵盖API调用、交易执行和市场数据分析。关键特性包括实时WebSocket数据流,可监控实时交易、订单和市场动态。开发者可用它构建预测市场应用、实施交易策略并集成实时市场预测功能。

查看技能

creating-opencode-plugins

该Skill帮助开发者创建OpenCode插件,用于接入命令、文件、LSP等25+种事件。它提供了插件结构、事件API规范和JavaScript/TypeScript实现模式,适合需要拦截操作、扩展功能或自定义事件处理的场景。开发者可通过它快速构建响应式模块来增强OpenCode AI助手的能力。

查看技能

sglang

SGLang是一个专为LLM设计的高性能推理框架,特别适用于需要结构化输出的场景。它通过RadixAttention前缀缓存技术,在处理JSON、正则表达式、工具调用等具有重复前缀的复杂工作流时,能实现极速生成。如果你正在构建智能体或多轮对话系统,并追求远超vLLM的推理性能,SGLang是理想选择。

查看技能