Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/elevenlabs-rate-limits

@0d57af8
Run it yourself

Implement ElevenLabs rate limiting, concurrency queuing, and backoff patterns. Use when handling 429 errors, implementing retry logic, or managing concurrent TTS request throughput for an ElevenLabs integration. Trigger with "elevenlabs rate limit", "elevenlabs throttling", "elevenlabs 429", "elevenlabs retry", "elevenlabs backoff", "elevenlabs concurrent requests".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/elevenlabs-rate-limits

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesexamples.md

≈580 tokens on demand. Your agent reads this file only when SKILL.md points to it.

ElevenLabs Rate Limits — Worked Examples

End-to-end usage examples that build on the four building blocks in implementation.md.

Example 1: Batch generation on a Pro plan (queue only)

Generate 20 clips while never exceeding the Pro plan's 10 concurrent requests. The queue paces submission; each clip resolves as soon as a slot frees up.

import { createRequestQueue } from "./elevenlabs/rate-limiter";

const queue = createRequestQueue("pro"); // 10 concurrent

const texts = loadScripts();            // e.g. 20 lines of narration
const voiceId = "21m00Tcm4TlvDq8ikWAM";

const clips = await Promise.all(
  texts.map(text =>
    queue.add(() =>
      client.textToSpeech.convert(voiceId, { text, model_id: "eleven_flash_v2_5" })
    )
  )
);
// clips.length === 20, but at most 10 requests were ever in flight

Example 2: Full resilient client (queue + backoff + quota guard)

The recommended production path. generateSpeech guards quota, queues to respect concurrency, and backs off on system_busy — all in one call.

import { createResilientClient } from "./elevenlabs/resilient-client";

const el = createResilientClient("pro");

// Quota is checked before the request; concurrency + backoff are automatic.
const audio = await el.generateSpeech(
  "21m00Tcm4TlvDq8ikWAM",
  "Welcome to the show.",
  "eleven_multilingual_v2"
);

console.log(el.getQueueStats()); // { pending: 0, size: 0 }

const quota = await el.checkQuota();
if (quota.warning) {
  console.warn(`Approaching quota: ${quota.pctUsed}% used`);
}

Example 3: Distinguishing the two 429 variants at the call site

If you handle retries yourself instead of using withBackoff, branch on the detail.status field to pick the right strategy.

try {
  await client.textToSpeech.convert(voiceId, { text, model_id: "eleven_v3" });
} catch (error: any) {
  const type = error.body?.detail?.status;
  if (type === "too_many_concurrent_requests") {
    // Requeue — do NOT back off; a slot will open shortly.
    await queue.add(() => retry());
  } else if (type === "system_busy") {
    // Server overload — exponential backoff with jitter.
    await withBackoff(() => retry());
  } else {
    throw error; // auth/validation errors are non-retryable
  }
}

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides safe implementation patterns and TypeScript implementation templates for managing ElevenLabs API rate limits, concurrency, and character quotas.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 4 months ago
What it can do
Reads files Edits files
version
1.6.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
compatibility
Designed for Claude Code
All 3 allowed tools
ReadWriteEdit
Other metadata
tags
[
  "saas",
  "voice",
  "ai",
  "elevenlabs",
  "rate-limits",
  "reliability"
]

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/elevenlabs-rate-limits