/ideogram-pack:ideogram-core-workflow-bfrom ideogram-pack
Executes Ideogram secondary workflows: edit (Magic Fill inpainting), remix (style transfer), upscale, describe (image-to-text), and reframe (canvas extension). Use when modifying existing images or building image-to-image pipelines.
Ships in ideogram-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Secondary workflows for Ideogram beyond text-to-image generation. Covers five endpoints: Edit (Magic Fill inpainting), Remix (style transfer with image weight), Upscale (enhance resolution), Describe (image-to-text), and Reframe (extend canvas to new aspect ratio). All image-input endpoints use multipart form data.
ideogram-install-auth setupReplace specific regions of an image using a mask. Black regions in the mask indicate areas to regenerate.
import { readFileSync, writeFileSync, mkdirSync } from "fs";
async function editImage(imagePath: string, maskPath: string, prompt: string, options: {
style_type?: string;
rendering_speed?: string;
magic_prompt?: string;
} = {}) {
const form = new FormData();
form.append("image", new Blob([readFileSync(imagePath)]), "image.png");
form.append("mask", new Blob([readFileSync(maskPath)]), "mask.png");
form.append("prompt", prompt);
form.append("style_type", options.style_type ?? "GENERAL");
form.append("rendering_speed", options.rendering_speed ?? "DEFAULT");
form.append("magic_prompt", options.magic_prompt ?? "AUTO");
const response = await fetch("https://api.ideogram.ai/v1/ideogram-v3/edit", {
method: "POST",
headers: { "Api-Key": process.env.IDEOGRAM_API_KEY! },
body: form,
});
if (!response.ok) throw new Error(`Edit failed: ${response.status} ${await response.text()}`);
const result = await response.json();
// Download immediately
const imgResp = await fetch(result.data[0].url);
const buffer = Buffer.from(await imgResp.arrayBuffer());
mkdirSync("./output", { recursive: true });
writeFileSync(`./output/edited-${result.data[0].seed}.png`, buffer);
return result;
}
// Example: Replace background
await editImage("product.png", "background-mask.png",
"Clean white studio background with soft shadows");
// Example: Add text to existing image
await editImage("poster.png", "text-area-mask.png",
'Bold red text saying "SALE 50% OFF"', { style_type: "DESIGN" });
Generate a new image influenced by a source image. The image_weight parameter (1-100) controls how closely the output matches the original.
async function remixImage(imagePath: string, prompt: string, options: {
image_weight?: number;
aspect_ratio?: string;
style_type?: string;
rendering_speed?: string;
} = {}) {
const form = new FormData();
form.append("image", new Blob([readFileSync(imagePath)]), "image.png");
form.append("prompt", prompt);
form.append("image_weight", String(options.image_weight ?? 50));
form.append("aspect_ratio", options.aspect_ratio ?? "1x1");
form.append("style_type", options.style_type ?? "GENERAL");
form.append("rendering_speed", options.rendering_speed ?? "DEFAULT");
const response = await fetch("https://api.ideogram.ai/v1/ideogram-v3/remix", {
method: "POST",
headers: { "Api-Key": process.env.IDEOGRAM_API_KEY! },
body: form,
});
if (!response.ok) throw new Error(`Remix failed: ${response.status}`);
return response.json();
}
// Low weight = more creative freedom, high weight = closer to original
await remixImage("photo.jpg", "Same scene but in watercolor painting style", { image_weight: 30 });
await remixImage("logo.png", "Same logo but with neon glow effect", { image_weight: 80 });
async function upscaleImage(imagePath: string, options: {
prompt?: string;
resemblance?: number;
detail?: number;
} = {}) {
const form = new FormData();
form.append("image_file", new Blob([readFileSync(imagePath)]), "image.png");
form.append("image_request", JSON.stringify({
prompt: options.prompt,
resemblance: options.resemblance ?? 50, // 0-100: fidelity to original
detail: options.detail ?? 50, // 0-100: level of detail enhancement
magic_prompt_option: "AUTO",
}));
const response = await fetch("https://api.ideogram.ai/upscale", {
method: "POST",
headers: { "Api-Key": process.env.IDEOGRAM_API_KEY! },
body: form,
});
if (!response.ok) throw new Error(`Upscale failed: ${response.status}`);
const result = await response.json();
console.log(`Upscaled: ${result.data[0].resolution} -> ${result.data[0].upscaled_resolution}`);
return result;
}
async function describeImage(imagePath: string, modelVersion: "V_2" | "V_3" = "V_3") {
const form = new FormData();
form.append("image_file", new Blob([readFileSync(imagePath)]), "image.png");
form.append("describe_model_version", modelVersion);
const response = await fetch("https://api.ideogram.ai/describe", {
method: "POST",
headers: { "Api-Key": process.env.IDEOGRAM_API_KEY! },
body: form,
});
if (!response.ok) throw new Error(`Describe failed: ${response.status}`);
const result = await response.json();
return result.descriptions.map((d: any) => d.text);
}
// Use describe to reverse-engineer prompts for existing images
const descriptions = await describeImage("reference-image.jpg");
console.log("Suggested prompts:", descriptions);
Expand an image to a new resolution while maintaining style consistency.
async function reframeImage(imagePath: string, resolution: string, options: {
rendering_speed?: string;
style_preset?: string;
} = {}) {
const form = new FormData();
form.append("image", new Blob([readFileSync(imagePath)]), "image.png");
form.append("resolution", resolution); // e.g., "1024x576" for 16:9
form.append("rendering_speed", options.rendering_speed ?? "DEFAULT");
if (options.style_preset) form.append("style_preset", options.style_preset);
const response = await fetch("https://api.ideogram.ai/v1/ideogram-v3/reframe", {
method: "POST",
headers: { "Api-Key": process.env.IDEOGRAM_API_KEY! },
body: form,
});
if (!response.ok) throw new Error(`Reframe failed: ${response.status}`);
return response.json();
}
// Reframe a square image to widescreen
await reframeImage("square-photo.png", "1344x768");
| Endpoint | URL | Input | Key Parameters |
|---|---|---|---|
| Edit V3 | /v1/ideogram-v3/edit | image + mask + prompt | style_type, rendering_speed |
| Remix V3 | /v1/ideogram-v3/remix | image + prompt | image_weight (1-100) |
| Upscale | /upscale | image + image_request JSON | resemblance, detail (0-100) |
| Describe | /describe | image | describe_model_version (V_2/V_3) |
| Reframe V3 | /v1/ideogram-v3/reframe | image + resolution | rendering_speed, style_preset |
| Error | HTTP Status | Cause | Solution |
|---|---|---|---|
| Mask size mismatch | 400 | Mask dimensions differ from image | Ensure mask matches source image size exactly |
| File too large | 400 | Image exceeds 10MB | Compress or resize before uploading |
| Safety rejected | 422 | Image or prompt flagged | Modify content, avoid restricted subjects |
| Format unsupported | 400 | Not JPEG/PNG/WebP | Convert image to a supported format |
| Rate limited | 429 | Too many requests | Queue with delays between calls |
For common errors, see ideogram-common-errors.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ideogram, image-editing, inpainting, upscale, remix, image-to-image
24 skills in this plugin
/ideogram-ci-integrationConfigure CI/CD pipelines for Ideogram integrations with GitHub Actions.
Use when setting up automated testing, visual regression tests,
or integrating Ideogram validation into your build process.
Trigger with phrases like "ideogram CI", "ideogram GitHub Actions",
"ideogram automated tests", "CI ideogram", "ideogram pipeline".
/ideogram-common-errorsDiagnose and fix Ideogram API errors and exceptions.
Use when encountering Ideogram errors, debugging failed requests,
or troubleshooting integration issues.
Trigger with phrases like "ideogram error", "fix ideogram",
"ideogram not working", "debug ideogram", "ideogram 422", "ideogram 429".
/ideogram-core-workflow-aExecute Ideogram primary workflow: text-to-image generation with text rendering.
Use when generating images from text prompts, creating designs with embedded text,
or building the main image generation pipeline.
Trigger with phrases like "ideogram generate image", "ideogram text to image",
"create image with ideogram", "ideogram primary workflow".
/ideogram-cost-tuningOptimize Ideogram costs through model selection, caching, and usage monitoring.
Use when analyzing Ideogram billing, reducing API costs,
or implementing budget alerts and usage tracking.
Trigger with phrases like "ideogram cost", "ideogram billing",
"reduce ideogram costs", "ideogram pricing", "ideogram budget", "ideogram credits".
/ideogram-data-handlingManage Ideogram generated image assets, metadata tracking, and lifecycle management.
Use when implementing image persistence, tracking generation history,
or building asset management for Ideogram outputs.
Trigger with phrases like "ideogram data", "ideogram images",
"ideogram asset management", "ideogram metadata", "ideogram image storage".
/ideogram-debug-bundleCollect Ideogram debug evidence for support tickets and troubleshooting.
Use when encountering persistent issues, preparing support tickets,
or collecting diagnostic information for Ideogram problems.
Trigger with phrases like "ideogram debug", "ideogram support bundle",
"collect ideogram logs", "ideogram diagnostic".
npx claudepluginhub flight505/skill-forge --plugin ideogram-packOther plugins' skills for the same job