1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
const axios = require('axios');
const api_key = "YOUR API-KEY";
const url = "https://api.segmind.com/v1/ideogram-v4-fast";
const data = {
"prompt": "A modern minimalist poster for a mountain coffee roastery: a steaming ceramic mug with delicate leaf latte art on a rustic oak table, soft morning light through a window, a bold clean headline reading \"SUMMIT ROAST\" across the top and the tagline \"Brewed at 3000 Meters\" beneath it, warm earthy palette of espresso brown and cream, elegant serif typography, premium print design",
"rendering_speed": "DEFAULT",
"resolution": "2048x2048",
"enable_copyright_detection": false
};
(async function() {
try {
const response = await axios.post(url, data, { headers: { 'x-api-key': api_key } });
console.log(response.data);
} catch (error) {
console.error('Error:', error.response.data);
}
})();Text describing the image; wrap exact in-image text in quotes. Magic Prompt auto-enriches.
Speed and price tier: TURBO, DEFAULT, or QUALITY. Use QUALITY for text-heavy design.
Allowed values:
Output size and aspect ratio, native 2K. Portrait suits posters, landscape suits banners.
Allowed values:
Runs post-generation copyright detection on outputs; boolean. Leave off unless compliance requires it.
To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.
Ideogram V4 Fast is a text-to-image API that runs Ideogram's 4.0 engine with a single Rendering Speed control, so you trade cost and latency for fidelity without switching models. Ideogram 4.0 launched on June 3, 2026 as the company's first open-weight text-to-image foundation model, a 9.3-billion-parameter Diffusion Transformer built from scratch with text rendering as a core design goal. On Segmind you send a plain-text prompt, pick a speed tier (TURBO, DEFAULT, or QUALITY), choose a resolution, and receive a native 2K image in one synchronous call — no polling. It is the model developers reach for when the words in the picture have to be correct.
Ideogram V4 Fast is built for design work that leaves the prompt box: posters, YouTube thumbnails, event flyers, social creatives, product mockups, logos, and packaging where readable, styled typography is essential. Use TURBO for high-throughput ideation and A/B drafts, then re-run the winner on QUALITY for print-ready deliverables. In independent designer-preference tests, Ideogram 4.0 placed second overall behind only GPT Image 2, and first among open-weight models — a strong signal for branded, text-heavy creative.
Put the exact words you want rendered inside quotation marks; Ideogram treats quoted text as a literal typographic instruction. Name the font feel directly (bold sans-serif, elegant serif, hand-lettered script) rather than leaving it vague. Specify subject, layout, palette, and mood, and generate two or three variants, then pick the cleanest text — always verify numbers and symbols before shipping. Portraiture is the model's weakest area, so lean on it for design over photoreal faces.
Is Ideogram V4 Fast good at spelling text in images? Yes. It reports 0.97 English OCR accuracy, well ahead of most competitors on branded headlines and labels.
What is the difference between TURBO, DEFAULT, and QUALITY? They are speed-versus-fidelity tiers; TURBO is quickest, QUALITY runs the most steps for the sharpest typography.
What resolutions are supported? Native 2K with square, portrait, landscape, and ultrawide options up to 3328 px on the long edge.
Does it handle non-English text? Ideogram 4.0 expands multilingual coverage, though CJK scripts are best verified before production use.
Do I need to write JSON prompts? No. Plain-text prompts work well on this endpoint, and Magic Prompt enriches them automatically.
When should I pick a different model? For hyper-real human portraits or 4K photography, a photoreal-focused model may fit better; use Ideogram V4 Fast when text and design are the priority.