ideogram-webhooks-events

Featured

Build event-driven workflows around Ideogram's synchronous API. Use when implementing async generation queues, batch processing, callback patterns, or image processing pipelines. Trigger with phrases like "ideogram webhook", "ideogram events", "ideogram async", "ideogram queue", "ideogram batch pipeline".

AI & Automation 2,359 stars 334 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Ideogram Events & Async Patterns ## Overview Ideogram's API is synchronous -- each call blocks until the image is generated (5-15 seconds). For production applications, wrap it in async patterns: job queues for batch generation, callbacks for downstream processing, and pipelines for image post-processing. This skill covers BullMQ queue patterns, callback handlers, and asset processing pipelines. ## Prerequisites - `IDEOGRAM_API_KEY` configured - Redis for BullMQ job queue - Storage for generated images (S3, GCS, or R2) - Understanding of Ideogram models and style types ## Instructions ### Step 1: Job Queue for Async Generation ```typescript import { Queue, Worker } from "bullmq"; import { writeFileSync, mkdirSync } from "fs"; import { join } from "path"; interface GenerationJob { prompt: string; style: string; aspectRatio: string; model: string; callbackUrl?: string; metadata?: Record<string, string>; } const connection = { host: "localhost", port: 6379 }; const imageQueue = new Queue("ideogram-generation", { connection }); // Enqueue a generation job async function submitGeneration(job: GenerationJob) { return imageQueue.add("generate", job, { attempts: 3, backoff: { type: "exponential", delay: 2000 }, removeOnComplete: 100, removeOnFail: 50, }); } // Worker processes jobs with concurrency limit const worker = new Worker("ideogram-generation", async (job) => { const { prompt, style, aspectRatio, model, callbackUrl, metadata } = job...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
8 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category