ideogram-sdk-patterns

Featured

Apply production-ready Ideogram API patterns for TypeScript and Python. Use when implementing Ideogram integrations, refactoring API usage, or establishing team coding standards for Ideogram. Trigger with phrases like "ideogram SDK patterns", "ideogram best practices", "ideogram code patterns", "idiomatic ideogram", "ideogram wrapper".

AI & Automation 2,266 stars 315 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 SDK Patterns ## Overview Production-ready patterns for Ideogram's REST API. Since Ideogram has no official SDK, these patterns provide type-safe wrappers, retry logic, response validation, and multi-tenant support for the `api.ideogram.ai` endpoints. ## Prerequisites - Completed `ideogram-install-auth` setup - Familiarity with async/await and fetch API - Understanding of Ideogram response lifecycle (URLs expire) ## Instructions ### Step 1: Singleton Client with Auto-Download ```typescript // src/ideogram/client.ts import { writeFileSync, mkdirSync } from "fs"; import { join } from "path"; const API_BASE = "https://api.ideogram.ai"; let instance: IdeogramClient | null = null; export function getIdeogramClient(): IdeogramClient { if (!instance) { const key = process.env.IDEOGRAM_API_KEY; if (!key) throw new Error("IDEOGRAM_API_KEY not set"); instance = new IdeogramClient(key); } return instance; } export class IdeogramClient { constructor(private apiKey: string) {} async generate(prompt: string, options: { model?: string; style_type?: string; aspect_ratio?: string; negative_prompt?: string; magic_prompt_option?: string; num_images?: number; seed?: number; } = {}) { const response = await fetch(`${API_BASE}/generate`, { method: "POST", headers: { "Api-Key": this.apiKey, "Content-Type": "application/json" }, body: JSON.stringify({ image_request: { prompt, mode...

Details

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

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

ideogram-hello-world

Create a minimal working Ideogram image generation example. Use when starting a new Ideogram integration, testing your setup, or learning basic Ideogram API patterns. Trigger with phrases like "ideogram hello world", "ideogram example", "ideogram quick start", "simple ideogram code", "first ideogram image".

2,266 Updated today
jeremylongshore
AI & Automation Featured

ideogram-local-dev-loop

Configure Ideogram local development with mock responses and testing. Use when setting up a development environment, configuring test workflows, or establishing a fast iteration cycle with Ideogram. Trigger with phrases like "ideogram dev setup", "ideogram local development", "ideogram dev environment", "develop with ideogram", "ideogram testing".

2,266 Updated today
jeremylongshore
AI & Automation Featured

ideogram-data-handling

Manage 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".

2,266 Updated today
jeremylongshore
AI & Automation Featured

ideogram-install-auth

Install and configure Ideogram API authentication. Use when setting up a new Ideogram integration, configuring API keys, or initializing Ideogram in your project. Trigger with phrases like "install ideogram", "setup ideogram", "ideogram auth", "configure ideogram API key".

2,266 Updated today
jeremylongshore
AI & Automation Featured

deepgram-sdk-patterns

Apply production-ready Deepgram SDK patterns for TypeScript and Python. Use when implementing Deepgram integrations, refactoring SDK usage, or establishing team coding standards for Deepgram. Trigger: "deepgram SDK patterns", "deepgram best practices", "deepgram code patterns", "idiomatic deepgram", "deepgram typescript".

2,266 Updated today
jeremylongshore