| name | ideogram-core-workflow-b |
| description | Execute Ideogram secondary workflows: edit (Magic Fill), remix, upscale, describe, and reframe.
Use when modifying existing images, applying style transfer, upscaling,
or building image-to-image pipelines.
Trigger with phrases like "ideogram edit image", "ideogram remix",
"ideogram upscale", "ideogram inpaint", "ideogram magic fill", "ideogram reframe".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(curl:*), Grep |
| version | 1.10.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","ideogram","workflow","editing","remix","upscale"] |
| compatibility | Designed for Claude Code |
Ideogram Core Workflow B -- Edit, Remix, Upscale, Describe, Reframe
Overview
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.
Prerequisites
- Completed
ideogram-install-auth setup
- Source images in JPEG, PNG, or WebP format (max 10MB each)
- For editing: a black-and-white mask image matching source dimensions
Instructions
Step 1: Edit (Magic Fill / Inpainting)
Replace 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);
form.(, options. ?? );
form.(, options. ?? );
form.(, options. ?? );
response = (, {
: ,
: { : process..! },
: form,
});
(!response.) ();
result = response.();
imgResp = (result.[].);
buffer = .( imgResp.());
(, { : });
(, buffer);
result;
}
(, ,
);
(, ,
, { : });