[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M791K6Q93W23VGJD2QWMDVYB":3,"skill-same:01M791K6Q93W23VGJD2QWMDVYB":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M791K6Q93W23VGJD2QWMDVYB","ideogram-rate-limits",null,"Implement Ideogram rate limiting, backoff, and request queuing patterns.\nUse when handling rate limit errors, implementing retry logic,\nor optimizing API request throughput for Ideogram.\nTrigger with phrases like \"ideogram rate limit\", \"ideogram throttling\",\n\"ideogram 429\", \"ideogram retry\", \"ideogram backoff\", \"ideogram queue\".","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--ideogram-pack--ideogram-rate-limits\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: ideogram-rate-limits\ndescription: |\n  Implement Ideogram rate limiting, backoff, and request queuing patterns.\n  Use when handling rate limit errors, implementing retry logic,\n  or optimizing API request throughput for Ideogram.\n  Trigger with phrases like \"ideogram rate limit\", \"ideogram throttling\",\n  \"ideogram 429\", \"ideogram retry\", \"ideogram backoff\", \"ideogram queue\".\nallowed-tools: Read, Write, Edit\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code, codex, openclaw\ntags: [saas, ideogram, api, rate-limiting]\n---\n# Ideogram Rate Limits\n\n## Overview\nHandle Ideogram's rate limits with exponential backoff, request queuing, and concurrency control. Ideogram enforces a default limit of **10 in-flight requests** (concurrent, not per-minute). Image generation takes 5-15 seconds per call, so this limit can be hit quickly during batch operations.\n\n## Prerequisites\n- `IDEOGRAM_API_KEY` configured\n- Understanding of async patterns\n- `p-queue` npm package (optional, for queue-based approach)\n\n## Ideogram Rate Limit Model\n\n| Aspect | Detail |\n|--------|--------|\n| Type | Concurrent in-flight requests |\n| Default limit | 10 simultaneous requests |\n| Error code | HTTP 429 |\n| Retry header | Not guaranteed -- use exponential backoff |\n| Higher limits | Contact `partnership@ideogram.ai` |\n| Generation time | 5-15s per image (varies by model\u002Fresolution) |\n\n## Instructions\n\n### Step 1: Exponential Backoff with Jitter\n```typescript\nasync function withBackoff\u003CT>(\n  operation: () => Promise\u003CT>,\n  config = { maxRetries: 5, baseMs: 1000, maxMs: 30000, jitterMs: 500 }\n): Promise\u003CT> {\n  for (let attempt = 0; attempt \u003C= config.maxRetries; attempt++) {\n    try {\n      return await operation();\n    } catch (err: any) {\n      if (attempt === config.maxRetries) throw err;\n\n      const status = err.status ?? err.response?.status;\n      \u002F\u002F Only retry on 429 (rate limited) or 5xx (server error)\n      if (status && status !== 429 && status \u003C 500) throw err;\n\n      const exponential = config.baseMs * Math.pow(2, attempt);\n      const jitter = Math.random() * config.jitterMs;\n      const delay = Math.min(exponential + jitter, config.maxMs);\n\n      console.warn(`Rate limited (attempt ${attempt + 1}\u002F${config.maxRetries}). Waiting ${delay.toFixed(0)}ms`);\n      await new Promise(r => setTimeout(r, delay));\n    }\n  }\n  throw new Error(\"Unreachable\");\n}\n```\n\n### Step 2: Concurrency-Limited Queue\n```typescript\nimport PQueue from \"p-queue\";\n\n\u002F\u002F Ideogram allows 10 in-flight -- use 8 to leave headroom\nconst ideogramQueue = new PQueue({ concurrency: 8 });\n\nasync function queuedGenerate(prompt: string, options: any = {}) {\n  return ideogramQueue.add(async () => {\n    const response = await fetch(\"https:\u002F\u002Fapi.ideogram.ai\u002Fgenerate\", {\n      method: \"POST\",\n      headers: {\n        \"Api-Key\": process.env.IDEOGRAM_API_KEY!,\n        \"Content-Type\": \"application\u002Fjson\",\n      },\n      body: JSON.stringify({\n        image_request: { prompt, model: \"V_2\", ...options },\n      }),\n    });\n\n    if (response.status === 429) {\n      throw Object.assign(new Error(\"Rate limited\"), { status: 429 });\n    }\n    if (!response.ok) throw new Error(`Generate failed: ${response.status}`);\n    return response.json();\n  });\n}\n\n\u002F\u002F Process 50 prompts safely -- queue manages concurrency\nconst prompts = Array.from({ length: 50 }, (_, i) => `Design variant ${i + 1}`);\nconst results = await Promise.all(prompts.map(p => queuedGenerate(p)));\n```\n\n### Step 3: Token Bucket Rate Limiter\n```typescript\nclass TokenBucket {\n  private tokens: number;\n  private lastRefill: number;\n\n  constructor(\n    private maxTokens: number = 10,\n    private refillRate: number = 1, \u002F\u002F tokens per second\n  ) {\n    this.tokens = maxTokens;\n    this.lastRefill = Date.now();\n  }\n\n  async acquire(): Promise\u003Cvoid> {\n    this.refill();\n    if (this.tokens > 0) {\n      this.tokens--;\n      return;\n    }\n    \u002F\u002F Wait for next token\n    const waitMs = (1 \u002F this.refillRate) * 1000;\n    await new Promise(r => setTimeout(r, waitMs));\n    this.refill();\n    this.tokens--;\n  }\n\n  private refill() {\n    const now = Date.now();\n    const elapsed = (now - this.lastRefill) \u002F 1000;\n    this.tokens = Math.min(this.maxTokens, this.tokens + elapsed * this.refillRate);\n    this.lastRefill = now;\n  }\n}\n\nconst bucket = new TokenBucket(10, 1);\n\nasync function throttledGenerate(prompt: string) {\n  await bucket.acquire();\n  return queuedGenerate(prompt);\n}\n```\n\n### Step 4: Batch with Progress Tracking\n```typescript\nasync function batchGenerate(\n  prompts: string[],\n  onProgress?: (done: number, total: number) => void\n) {\n  const results: any[] = [];\n  const errors: { prompt: string; error: Error }[] = [];\n\n  for (let i = 0; i \u003C prompts.length; i++) {\n    try {\n      const result = await withBackoff(() => queuedGenerate(prompts[i]));\n      results.push(result);\n    } catch (err) {\n      errors.push({ prompt: prompts[i], error: err as Error });\n    }\n    onProgress?.(i + 1, prompts.length);\n  }\n\n  console.log(`Batch complete: ${results.length} success, ${errors.length} failed`);\n  return { results, errors };\n}\n```\n\n## Error Handling\n| Scenario | Detection | Action |\n|----------|-----------|--------|\n| 429 received | HTTP status | Exponential backoff + retry |\n| All retries exhausted | Max attempts reached | Log and skip, continue batch |\n| Burst spike | Queue depth > 20 | Pause new submissions |\n| Credits exhausted | 402 status | Alert, stop batch immediately |\n\n## Output\n- Reliable API calls with automatic retry on 429\n- Concurrency-controlled request queue\n- Token bucket for sustained throughput\n- Batch processing with progress and error tracking\n\n## Resources\n- [Ideogram API Overview](https:\u002F\u002Fdeveloper.ideogram.ai\u002Fideogram-api\u002Fapi-overview)\n- [p-queue](https:\u002F\u002Fgithub.com\u002Fsindresorhus\u002Fp-queue)\n- Enterprise limits: `partnership@ideogram.ai`\n\n## Next Steps\nFor security configuration, see `ideogram-security-basics`.\n","# Ideogram Rate Limits\n\n## Overview\nHandle Ideogram's rate limits with exponential backoff, request queuing, and concurrency control. Ideogram enforces a default limit of **10 in-flight requests** (concurrent, not per-minute). Image generation takes 5-15 seconds per call, so this limit can be hit quickly during batch operations.\n\n## Prerequisites\n- `IDEOGRAM_API_KEY` configured\n- Understanding of async patterns\n- `p-queue` npm package (optional, for queue-based approach)\n\n## Ideogram Rate Limit Model\n\n| Aspect | Detail |\n|--------|--------|\n| Type | Concurrent in-flight requests |\n| Default limit | 10 simultaneous requests |\n| Error code | HTTP 429 |\n| Retry header | Not guaranteed -- use exponential backoff |\n| Higher limits | Contact `partnership@ideogram.ai` |\n| Generation time | 5-15s per image (varies by model\u002Fresolution) |\n\n## Instructions\n\n### Step 1: Exponential Backoff with Jitter\n```typescript\nasync function withBackoff\u003CT>(\n  operation: () => Promise\u003CT>,\n  config = { maxRetries: 5, baseMs: 1000, maxMs: 30000, jitterMs: 500 }\n): Promise\u003CT> {\n  for (let attempt = 0; attempt \u003C= config.maxRetries; attempt++) {\n    try {\n      return await operation();\n    } catch (err: any) {\n      if (attempt === config.maxRetries) throw err;\n\n      const status = err.status ?? err.response?.status;\n      \u002F\u002F Only retry on 429 (rate limited) or 5xx (server error)\n      if (status && status !== 429 && status \u003C 500) throw err;\n\n      const exponential = config.baseMs * Math.pow(2, attempt);\n      const jitter = Math.random() * config.jitterMs;\n      const delay = Math.min(exponential + jitter, config.maxMs);\n\n      console.warn(`Rate limited (attempt ${attempt + 1}\u002F${config.maxRetries}). Waiting ${delay.toFixed(0)}ms`);\n      await new Promise(r => setTimeout(r, delay));\n    }\n  }\n  throw new Error(\"Unreachable\");\n}\n```\n\n### Step 2: Concurrency-Limited Queue\n```typescript\nimport PQueue from \"p-queue\";\n\n\u002F\u002F Ideogram allows 10 in-flight -- use 8 to leave headroom\nconst ideogramQueue = new PQueue({ concurrency: 8 });\n\nasync function queuedGenerate(prompt: string, options: any = {}) {\n  return ideogramQueue.add(async () => {\n    const response = await fetch(\"https:\u002F\u002Fapi.ideogram.ai\u002Fgenerate\", {\n      method: \"POST\",\n      headers: {\n        \"Api-Key\": process.env.IDEOGRAM_API_KEY!,\n        \"Content-Type\": \"application\u002Fjson\",\n      },\n      body: JSON.stringify({\n        image_request: { prompt, model: \"V_2\", ...options },\n      }),\n    });\n\n    if (response.status === 429) {\n      throw Object.assign(new Error(\"Rate limited\"), { status: 429 });\n    }\n    if (!response.ok) throw new Error(`Generate failed: ${response.status}`);\n    return response.json();\n  });\n}\n\n\u002F\u002F Process 50 prompts safely -- queue manages concurrency\nconst prompts = Array.from({ length: 50 }, (_, i) => `Design variant ${i + 1}`);\nconst results = await Promise.all(prompts.map(p => queuedGenerate(p)));\n```\n\n### Step 3: Token Bucket Rate Limiter\n```typescript\nclass TokenBucket {\n  private tokens: number;\n  private lastRefill: number;\n\n  constructor(\n    private maxTokens: number = 10,\n    private refillRate: number = 1, \u002F\u002F tokens per second\n  ) {\n    this.tokens = maxTokens;\n    this.lastRefill = Date.now();\n  }\n\n  async acquire(): Promise\u003Cvoid> {\n    this.refill();\n    if (this.tokens > 0) {\n      this.tokens--;\n      return;\n    }\n    \u002F\u002F Wait for next token\n    const waitMs = (1 \u002F this.refillRate) * 1000;\n    await new Promise(r => setTimeout(r, waitMs));\n    this.refill();\n    this.tokens--;\n  }\n\n  private refill() {\n    const now = Date.now();\n    const elapsed = (now - this.lastRefill) \u002F 1000;\n    this.tokens = Math.min(this.maxTokens, this.tokens + elapsed * this.refillRate);\n    this.lastRefill = now;\n  }\n}\n\nconst bucket = new TokenBucket(10, 1);\n\nasync function throttledGenerate(prompt: string) {\n  await bucket.acquire();\n  return queuedGenerate(prompt);\n}\n```\n\n### Step 4: Batch with Progress Tracking\n```typescript\nasync function batchGenerate(\n  prompts: string[],\n  onProgress?: (done: number, total: number) => void\n) {\n  const results: any[] = [];\n  const errors: { prompt: string; error: Error }[] = [];\n\n  for (let i = 0; i \u003C prompts.length; i++) {\n    try {\n      const result = await withBackoff(() => queuedGenerate(prompts[i]));\n      results.push(result);\n    } catch (err) {\n      errors.push({ prompt: prompts[i], error: err as Error });\n    }\n    onProgress?.(i + 1, prompts.length);\n  }\n\n  console.log(`Batch complete: ${results.length} success, ${errors.length} failed`);\n  return { results, errors };\n}\n```\n\n## Error Handling\n| Scenario | Detection | Action |\n|----------|-----------|--------|\n| 429 received | HTTP status | Exponential backoff + retry |\n| All retries exhausted | Max attempts reached | Log and skip, continue batch |\n| Burst spike | Queue depth > 20 | Pause new submissions |\n| Credits exhausted | 402 status | Alert, stop batch immediately |\n\n## Output\n- Reliable API calls with automatic retry on 429\n- Concurrency-controlled request queue\n- Token bucket for sustained throughput\n- Batch processing with progress and error tracking\n\n## Resources\n- [Ideogram API Overview](https:\u002F\u002Fdeveloper.ideogram.ai\u002Fideogram-api\u002Fapi-overview)\n- [p-queue](https:\u002F\u002Fgithub.com\u002Fsindresorhus\u002Fp-queue)\n- Enterprise limits: `partnership@ideogram.ai`\n\n## Next Steps\nFor security configuration, see `ideogram-security-basics`.\n",{"name":5,"tags":24,"author":29,"license":15,"version":30,"description":31,"allowed-tools":32,"compatible-with":33},[25,26,27,28],"saas","ideogram","api","rate-limiting","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Implement Ideogram rate limiting, backoff, and request queuing patterns.\nUse when handling rate limit errors, implementing retry logic,\nor optimizing API request throughput for Ideogram.\nTrigger with phrases like \"ideogram rate limit\", \"ideogram throttling\",\n\"ideogram 429\", \"ideogram retry\", \"ideogram backoff\", \"ideogram queue\".\n","Read, Write, Edit","claude-code, codex, openclaw","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fsaas-packs--ideogram-pack--ideogram-rate-limits",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill ideogram-rate-limits",{"tool":49,"command":50},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill ideogram-rate-limits",{"tool":52,"command":53},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill ideogram-rate-limits","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--ideogram-pack--ideogram-rate-limits\u002FSKILL.md",true,[],[58,65,72,79,86,94],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":90,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]