Image & Video API Platform

Transform, optimize, and deliver visual media at scale

URL-based image and video transformations with intelligent optimization. Resize, crop, convert formats, and deliver pixel-perfect media through our global CDN — all with a single API call.

12B+ Images transformed daily
99.99% Uptime SLA
40ms Avg response time
API Transformation
https://api.grainlux.com/v1/transform/w_800,h_600,f_webp,q_auto/my-photo.jpg
Original landscape photo
Original
JPEG • 4.2 MB • 4000×3000
Optimized landscape photo
Optimized
WebP • 186 KB • 800×600
96% file size reduction

Trusted by 100,000+ developers and leading brands worldwide

Shopify
Airbnb
Spotify
Notion
Figma
Vercel
Stripe
Discord

Powerful image transformations via simple URL parameters

Apply dozens of transformations by modifying the URL. No SDKs required — works with any HTTP client, img tag, or CDN.

Original landscape
Resized landscape

Smart Resize

w_800,h_600,c_fill

Intelligently resize images while preserving the subject. Content-aware cropping keeps faces and key elements in frame.

Nature photo before crop
Nature photo after crop

Creative Crop

c_crop,g_face,ar_1:1

Crop to any aspect ratio with gravity detection. Auto-detect faces, objects, or custom focal points for perfect framing.

.JPEG 4.2 MB
.WebP 320 KB ↓ 92%

Format Conversion

f_auto,q_auto

Automatically serve the best format (WebP, AVIF, JPEG XL) based on browser support. Zero configuration needed.

q_80 Perceptual

Quality Optimization

q_auto:best

Perceptual quality optimization finds the smallest file size with no visible quality loss. Save 60-80% bandwidth automatically.

Build transformations with our intuitive URL structure

Every transformation is a URL parameter. Chain them together for complex pipelines — no SDK installation required.

800px
600px
WebP AVIF JPEG PNG
auto
fill fit scale thumb
sharpen blur grayscale none
Generated URL
https://api.grainlux.com/v1/transform/w_800,h_600,c_fill,f_webp,q_auto,e_sharpen/product-hero.jpg
Nature landscape preview
800 × 600 WebP • 186 KB

Measurable impact on page speed & bandwidth

Our customers see dramatic improvements in Core Web Vitals, bandwidth costs, and user engagement after switching to GrainLux.

-73%
Average bandwidth reduction

Automatic format selection and quality optimization dramatically reduce file sizes without visible quality loss.

2.4x
Faster Largest Contentful Paint

Responsive images served from 300+ edge locations ensure your hero images load in milliseconds, not seconds.

96%
96%
Global CDN cache hit ratio

Intelligent caching across 300+ PoPs means transformations are computed once and served from edge forever after.

Automatic format selection for maximum compression

GrainLux analyzes each image and browser to deliver the optimal format. See the difference for yourself.

Format File Size Reduction Quality Score Browser Support Best For
JPEG 4.2 MB Baseline
100% Legacy compatibility
PNG 8.1 MB +93%
100% Transparency, lossless
WebP 1.1 MB -74%
97% General web use
AVIF 620 KB -85%
92% Maximum compression
JPEG XL 580 KB -86%
35% Future standard

With f_auto, GrainLux automatically serves AVIF to supported browsers, WebP as fallback, and JPEG for legacy — zero configuration required.

Works with your entire stack

Native SDKs, plugins, and integrations for every major framework, CMS, and e-commerce platform.

N
Next.js
React
V
Vue.js
A
Angular
S
Svelte
🛒
Shopify
W
WordPress
G
Gatsby
🔥
Firebase
Vercel
N
Netlify
AWS
AWS S3
GC
Google Cloud
Nx
Nuxt
M
Magento
WC
WooCommerce

Built for every visual media workflow

From e-commerce product shots to social media assets, GrainLux handles billions of transformations across every industry.

E-commerce store
Product display
Product thumbnail

E-Commerce Product Images

Auto-generate thumbnails, zoom views, and responsive variants for every product. Background removal, color correction, and watermarking built in.

  • Auto-crop to product bounds
  • Background removal & replacement
  • Responsive srcset generation

Social Media Assets

One upload, every platform. Automatically generate correctly-sized variants for Instagram, Twitter, LinkedIn, TikTok, and more.

  • Platform-specific aspect ratios
  • Text overlay & branding
  • Batch generation via API
📤
Upload
🔍
Moderate
Optimize
🚀
Deliver

User-Generated Content

Accept uploads from users, automatically moderate for safety, optimize for web delivery, and serve through our CDN — all in one pipeline.

  • AI content moderation
  • Auto-orientation & EXIF strip
  • Upload widget & signed URLs

Ship faster with developer-first APIs

Clean REST APIs, comprehensive SDKs, and URL-based transformations that work everywhere — from server-side rendering to static HTML.

URL-based Transformation
// Simple URL structure — works in any <img> tag

https://api.grainlux.com/v1/transform/
  w_400,        // Width: 400px
  h_300,        // Height: 300px
  c_fill,       // Crop: fill mode
  g_auto,       // Gravity: auto-detect subject
  f_auto,       // Format: best for browser
  q_auto        // Quality: perceptual auto
/products/shoe-red.jpg

// Chain multiple transformations
https://api.grainlux.com/v1/transform/
  w_800,h_600,c_fill/
  e_sharpen:80/
  o_watermark,g_southeast/
  uploads/hero-banner.png

Zero-config CDN

300+ edge locations worldwide. No setup, no configuration — just use the URL and images are cached globally.

Responsive by default

Generate srcset and sizes automatically. Serve the perfect resolution for every device and viewport.

Signed URLs

Prevent URL tampering with HMAC-signed transformation URLs. Control exactly which transformations are allowed.

Webhook notifications

Get notified when uploads complete, transformations finish, or moderation flags content. Build reactive pipelines.

Start free, scale without limits

Generous free tier for developers. Predictable pricing that scales with your media volume.

Free

$0 /month

Perfect for side projects and prototyping

  • 25 GB storage
  • 25 GB bandwidth / month
  • 25,000 transformations / month
  • All transformation types
  • Global CDN delivery
  • Community support
  • 3 team members
Get Started Free

Enterprise

Custom

For large-scale media operations

  • Unlimited storage
  • Unlimited bandwidth
  • Unlimited transformations
  • Dedicated infrastructure
  • Custom SLA (99.99%+)
  • 24/7 dedicated support
  • Unlimited team members
  • SSO & SAML
  • On-premise deployment option
  • Custom contracts
Contact Sales

Ready to transform your visual media pipeline?

Join 100,000+ developers who deliver optimized images and videos with GrainLux. Start with 25GB free — no credit card required.

No credit card required
25GB free forever
Setup in 5 minutes