Skip to main content

Limits

Each PixelBin organization has some limits on the functioning and use of PixelBin features.

note

These limits are non-adjustable and cannot be changed for each user or organization. These limits are per organization.


General limits

NameValue
Max file limits allowed in a bulk operation5000 files or 5GB total size
Max number of transformations in a preset15
Max datasources
(including default datasource)
20
Max zones
(including default zone)
50
Max tokens50

Upload limits

Certain limitations apply based on the type of file uploaded, such as restrictions on image transformation dimensions, which are a limitation of the underlying image format.

Size limits

NameValue
Max image upload size25MB
Max non-image upload size150MB
Max image resolution
(width x height; for example 1000 x 1000 = 1MP)
100MP
Max image height10000px
Max image width10000px
Transformation Step Limits

Upload limits are also applicable in transformation results at every step.

For example, when using the t.resize(...)~erase.bg() chained transformation, the result of the t.resize transformation cannot exceed the limits mentioned above, otherwise, the erase.bg transformation will throw an error.

File type limits

All PixelBin transformation capabilities are geared toward image files, but in general, any file type can be uploaded, managed, and delivered.

Some files, however, cannot be used with PixelBin. This is done to safeguard our service and users from potentially hazardous files, executable files, or formats used to propagate malware.

The following file extensions are rejected:

action, app, bat, cmd, command, cpl, csh, gadget, inf1, ins, inx, ipa, isu, job, jse, ksh, msc, msi, msp, mst, osx, out, paf, pif, prg, ps1, reg, rgs, run, shb, shs, u3p, vb, vbe, vbs, vbscript, workflow, ws, wsf

The following file mime types are rejected:

application/bat, application/x-bat, application/cpl+xml, application/x-csh, text/x-csh, application/x-makeself, text/x-erlang, application/x-ms-installer, application/x-windows-installer, application/x-msi, application/x-ole-storage, text/x-stex


Transformation limits

The constraints on images are also determined by the type of transformations that will be made to them.

NameValue
Remove Artifacts af.removeinput should be less than 3000x3000px
Erase Background erase.bginput should be less than 5000x5000px
Detect Number Plate numPlate.detectinput should be less than 5000x5000px
Upscale Image sr.upscalefor t:2x parameter, input should be less than 2500x2500px
Upscale Image sr.upscalefor t:4x parameter, input should be less than 1500x1500px
Upscale Image sr.upscaleinput should be above 64x64px
Remove Watermark wm.removeinput should be less than 5000x5000px
AWS Moderation awsRek.moderationinput should be less than 5MB
AWS DetectLabels awsRek.detectLabelsinput should be less than 5MB

Multi-page images

PixelBin has limited support for transforming TIFF (multi-page) images.

  1. The tiff file format is only supported by Basic transformations.

  2. If a tiff image is processed, an error is thrown if the transformation is performed on more than 10 pages, as shown.

    Cannot process TIFF images with pages above 10.
  3. When converting a tiff file to another image format, only the first page is converted; the rest are discarded.

  4. Credits are calculated according to the number of pages transformed.

    1. For instance, if you have 5 credits and use the t.flip()~t.flop() transformation pattern on a tiff image with 10 pages, then you will have 4.96 credits remaining after the transformation.

      0.004 credits are consumed for all basic transformations present in a pattern

      Transformation PatternRemaining CreditsCalculation
      -5-
      After t.flip()~t.flop()4.965 - (10 x 0.004)
    2. Similarly, if you use t.toFormat anywhere in the transformation chain, you will only use one basic transformation credit, regardless of the number of pages in the image.

      So, for a tiff image with 10 pages, t.toFormat(f:webp)~t.flip() or t.resize(w:400)~t.toFormat(f:jpeg) or t.toFormat(f:png) will consume only 0.004 credits, as shown.

      Transformation PatternRemaining CreditsCalculation
      -5-
      After t.toFormat(f:webp)~t.flip()4.9965 - (1 x 0.004)
      After t.resize(w:400)~t.toFormat(f:jpeg)4.9924.996 - (1 x 0.004)
      After t.toFormat(f:png)4.9884.992 - (1 x 0.004)

Rate limits

PixelBin enforces rate limits to ensure fair usage of its services. Rate limits are applied to individual transformations within a request for an interval of 1 minute, and exceeding these limits will result in a 429 (Too Many Requests) response status code. Cached requests are not rate limited.

info

You are not charged any credits for rate limited requests.

Transformation rate limits

NameValue
AI Background Generator5 per minute
AI Transformations & Addons300 per minute
Basic TransformationsNo rate limit

Rate limit Response headers

Response will also contain the following headers if use any transformation that has rate limits. You can use these headers to stay within the rate limits.

HeaderDescription
X-RateLimit-LimitRate limit for the set of transformations in the request
X-RateLimit-RemainingMinimum number of tokens remaining for the set of transformations in the request
X-RateLimit-IntervalThe amount of time in seconds which is used as the rate limit window
X-RateLimit-ResetUnix timestamp when rate limit will reset
Retry-AfterIn case you exceed the rate limit, this header specifies the amount of time in seconds after which you can retry the request

Example

We are starting off with 5 rate limit tokens for the AI Background Generator and 300 rate limit tokens for all AI Transformations and Addons.

The rate limit tokens consumed when you request the PixelBin URL https://cdn.pixelbin.io/v2/your_cloud_name/generate.bg()~t.flop()~ic.crop()~generate.bg()/sample-image.jpeg for the first time is as follows:

NameConsumedReason
AI Transformations & Addons31 x ic.crop + 2 x generate.bg
AI Background Generator22 x generate.bg

The response headers for the above request will be:

HeaderValue
X-RateLimit-Limit5
X-RateLimit-Remaining3
X-RateLimit-Interval60

AI Background Generator consumes rate limit tokens for itself as well as AI Transformations & Addons, while Intelligent Crop consumes rate limit tokens only for AI Transformations & Addons. This is because AI Background Generator has its own specific rate limit and is also rate limited by the overall AI Transformations & Addons rate limit.

Any subsequent requests to the same URL will not consume any rate limit tokens as long as the request is served from cache.

You made another request to the PixelBin URL https://cdn.pixelbin.io/v2/your_cloud_name/generate.bg()~generate.bg()~generate.bg()/sample-image2.jpeg after 1 second, the rate limit tokens consumed would be as follows:

NameConsumedReason
AI Transformations & Addons33 x generate.bg
AI Background Generator33 x generate.bg

and the response headers for the above request will be:

HeaderValue
X-RateLimit-Limit5
X-RateLimit-Remaining0
X-RateLimit-Interval60

Rate limit tokens were consumed because the request was not served from cache. Any subsequent requests to the same URL will not consume any rate limit tokens if they are served from cache.

You follow up the above request with a request to PixelBin URL https://cdn.pixelbin.io/v2/your_cloud_name/generate.bg()~generate.bg()/sample-image3.jpeg after 1 second, the rate limit tokens for this request would be as follows:

NameConsumedReason
AI Transformations & Addons22 x generate.bg
AI Background Generator22 x generate.bg

And since the request was rate limited, the response headers for the above request will be:

HeaderValue
X-RateLimit-Limit5
X-RateLimit-Remaining0
X-RateLimit-Interval60
X-RateLimit-Reset1695282553372
Retry-After58

The status code of the response will be 429 (Too Many Requests). You can retry the same request after amount of time specified in the Retry-After header has elapsed or at the unix timestamp specified in the X-RateLimit-Reset header.

Transform and enhance your images using our powerful AI technology. Organize your images in more efficient manner and our extensible APIs enables seamless integration with your system unleashing the power of our platform. Join the large community of users who use PixelBin to transform their image libraries and achieve excellent performance

Is this page useful?