API Directory › 🔧 Utilities & Media › Cloudinary
API KeyHTTPSCORS

Cloudinary API

Image and video upload, storage and on-the-fly transformation.

Auth
API Key
HTTPS
Yes
CORS
Yes
Open Cloudinary docs ↗

What it does

Cloudinary is a media platform: upload images and video, then transform and deliver them through URLs — resize, crop, format and quality auto-selection, overlays, effects, background removal, and responsive delivery via CDN. It also has Admin and Search APIs for managing your library.

Base URL

https://api.cloudinary.com/v1_1/{CLOUD_NAME}

Authentication

Every account has a cloud name, API key and API secret. Server-side uploads and Admin calls are signed with the secret (SHA-1 of the params). Browser uploads use an unsigned upload preset so the secret never ships to the client. Delivery URLs (res.cloudinary.com/{cloud}/image/upload/…) need no auth.

Code examples

curl (unsigned upload with a preset)
curl -s https://api.cloudinary.com/v1_1/$CLOUD/image/upload \
  -F file=@photo.jpg \
  -F upload_preset=$UNSIGNED_PRESET
Transformation URL (no API call)
<img src="https://res.cloudinary.com/demo/image/upload/w_400,h_300,c_fill,f_auto,q_auto/sample.jpg">

Rate limits & quotas

Free plan: about 25 monthly credits, where 1 credit ≈ 1,000 transformations or 1 GB storage or 1 GB net delivery bandwidth. Exceed it and delivery may be throttled or blocked until the next cycle or an upgrade. The upload API rejects files over the plan’s per-file size cap (10 MB image / 100 MB video on free).

Key response fields

(upload) public_idThe id you reference in delivery/transformation URLs
(upload) secure_urlHTTPS URL of the original
(upload) width / height / format / bytesAsset metadata
(upload) versionCache-busting version number
(admin) resources[]Listing of stored assets

Common errors

401Bad signature (server) or unknown/misconfigured upload preset (browser).
400 'File size too large'Over the plan’s per-file limit.
420 / 429Rate or monthly credit limit — back off or upgrade.
(secret in client code)Never send the API secret to the browser — use an unsigned preset or sign server-side.

When to use it (and alternatives)

The pick when images/video are core to your product and you want on-the-fly transformation + CDN without building a pipeline. For just a place to dump an image and get a link, ImgBB or file.io are far simpler; imgix is a comparable transformation CDN.

FAQ

How do I upload from the browser without leaking my secret?

Create an unsigned upload preset in the console and POST with upload_preset and no signature. Restrict the preset (allowed formats, folder, max size). For signed uploads, generate the signature on your server.

What counts as a 'credit'?

A blended unit: ~1,000 transformations, or 1 GB of storage, or 1 GB of delivery bandwidth. f_auto,q_auto in your URLs cuts bandwidth significantly.

Do transformations cost a request each time?

The first time a given transformation URL is requested it is generated and counts; after that it is served from cache/CDN. Derived versions also use storage.

New to APIs?

Short guides for working with this API — and any other.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

QR GeneratorImage Compressor

Related Utilities & Media APIs

← Back

More Utilities & Media APIs · All 196 APIs