Rate limits

The API limits how often you can call it. Limits protect everyone and are the same for every key of a plan.

The buckets

A request is counted in several buckets at once. The tightest one decides.

Every window starts with the first request it counts: a minute bucket lasts 60 seconds from its first request, the day bucket 24 hours from its first request (not the calendar day). A refused request still counts, so a client that keeps retrying during a 429 stays refused until the window ends. Wait for Retry-After.

Bucket Counted per Limit Applies to
IP address IP (an IPv6 block as one) 300 per minute Every request, before the key is looked up.
Key API key (all its organizations together) 600 per minute Every authenticated request.
Organization, per minute Organization By plan, see below Every request in an organization.
Organization, per day Organization By plan, see below Every request in an organization, in a 24-hour window from the first request.
Writes Key and organization By plan, see below POST, PUT, PATCH and DELETE.

On top of that, some operations have their own limit:

Operation Limit
Spends (AI image, video, voice, Studio runs) 10 per minute per key
media_create 30 per minute per organization
URL imports (POST /media with a url) 10 per minute and 10 open imports per organization
posts_create 30 per minute
posts_publish 20 per minute

Test keys have a daily limit of 50 new media files. See Test keys and dry run.

Plan values

The per-organization values come from the plan.

Spark Boost Pro Empire
Live keys allowed No (test keys only) Yes Yes Yes
Keys per organization 1 3 10 25
Requests per minute 30 60 120 300
Requests per day 1,000 10,000 50,000 200,000
Writes per minute (per key and organization) 10 20 30 60

Your organization may have other values (for example if IQCore agreed to a higher limit). The API keys page in IQCore shows the values that apply to your organization. An organization without a plan in force has no API (403 plan_required).

Headers

Every answer carries three headers for the bucket with the least room left:

Header Meaning
X-RateLimit-Limit The size of that bucket.
X-RateLimit-Remaining Requests left in it.
X-RateLimit-Reset When it refills, as epoch seconds.

When a bucket is full the answer is 429 with the code rate_limited and a Retry-After header: wait that many seconds, then try again.

curl
curl -i "https://iqcore.ai/api/public/v1/me" -H "Authorization: Bearer $IQCORE_KEY"
# X-RateLimit-Limit: 30
# X-RateLimit-Remaining: 29
# X-RateLimit-Reset: 1780000060
JavaScript
async function callWithRetry(url, options, tries = 5) {
  for (let i = 0; i < tries; i++) {
    const res = await fetch(url, options);
    if (res.status !== 429) return res;
    const wait = Number(res.headers.get("Retry-After") ?? 1);
    await new Promise((r) => setTimeout(r, wait * 1000));
  }
  throw new Error("Still rate limited");
}
Python
import time
import requests


def call_with_retry(method, url, tries=5, **kwargs):
    for _ in range(tries):
        res = requests.request(method, url, timeout=30, **kwargs)
        if res.status_code != 429:
            return res
        time.sleep(int(res.headers.get("Retry-After", "1")))
    raise RuntimeError("Still rate limited")

Tips:

  • Read X-RateLimit-Remaining and slow down before you hit zero.
  • Use the events feed instead of polling every post.
  • A key with many organizations shares one key bucket across all of them. An agency with a busy key can ask Support for a higher limit.

Platform limits are not hidden

IQCore does not hide the limits of Facebook, Instagram, Threads or TikTok behind its own.

  • Instagram accepts at most 100 API-published posts in a moving 24-hour period per account.
  • TikTok limits how often one login may start a post (6 requests per minute) and how many posts a creator may make per day. An app that TikTok has not audited yet can only post privately.

These come back as a failed target with an error code such as rate_limited or as a warning in a dry run, not as a 429 from IQCore. See Platform permissions.

Next: Idempotency and external_ref, Errors.