PixViroDocs

Quickstart

Upload an image and deliver an optimized, resized version from the CDN in five minutes.

PixViro stores your original images and PDFs, and delivers transformed versions (resized, cropped, converted to WebP/AVIF, compressed) from a CDN, generated on first request and cached afterwards.

1. Create a project and an API key

  1. Create a free account. Your organization gets a first project — the boundary for keys, assets and delivery URLs.
  2. Open Developers → API keys, create a key with the permissions you need, and copy it. Keys look like pxv_… and are shown once.

Keep API keys on your server. Browsers upload with signed upload URLs instead.

2. Install an SDK

Pick your language, or skip this step and call the REST API directly with any HTTP client (the curl tabs below).

npm install @pixviro/sdk

Then put your API key in an environment variable on your server, for example PIXVIRO_API_KEY=pxv_… in your .env file. The SDKs are documented in SDKs.

3. Upload an image

curl https://pixviro.com/v1/assets \
  -H "Authorization: Bearer $PIXVIRO_API_KEY" \
  -F file=@red-shoe.jpg \
  -F public_id=products/red-shoe

The response describes the asset, including its delivery url:

{
  "data": {
    "id": "01J9Z…",
    "public_id": "products/red-shoe",
    "format": "jpeg",
    "width": 2400,
    "height": 1600,
    "version": 1,
    "url": "https://cdn.pixviro.com/k3x9p2ab7q/shop/v1/products/red-shoe"
  }
}

4. Deliver it

Add a transformation segment to the URL. This one resizes to 800×600, crops to fill, and picks the best format for each browser:

https://cdn.pixviro.com/k3x9p2ab7q/shop/c_fill,w_800,h_600,f_auto/products/red-shoe

The first request generates the derivative; every later request is a CDN cache hit. See Transformations for everything you can do, and Responsive images for srcset.

Next steps

  • Concepts: projects, public IDs, versions, credits.
  • Uploading: remote URLs, bulk imports, browser uploads.
  • SDKs for JavaScript, PHP and Python.
  • API reference with interactive examples.