Enable flexible variants
Flexible variants allow you to create variants with dynamic resizing which can provide more options than regular variants allow. This option is not enabled by default.
- 
In the Cloudflare dashboard, go to the Variants page.
Go to Variants - 
Enable Flexible variants.
 
Make a PATCH request to the Update a variant endpoint.
curl --request PATCH https://api.cloudflare.com/client/v4/accounts/{account_id}/images/v1/config \--header "Authorization: Bearer <API_TOKEN>" \--header "Content-Type: application/json" \--data '{"flexible_variants": true}'After activation, you can use transformation parameters on any Cloudflare image. For example,
https://imagedelivery.net/{account_hash}/{image_id}/w=400,sharpen=3
Note that flexible variants cannot be used for images that require a signed delivery URL.
Was this helpful?
- Resources
 - API
 - New to Cloudflare?
 - Directory
 - Sponsorships
 - Open Source
 
- Support
 - Help Center
 - System Status
 - Compliance
 - GDPR
 
- Company
 - cloudflare.com
 - Our team
 - Careers
 
- © 2025 Cloudflare, Inc.
 - Privacy Policy
 - Terms of Use
 - Report Security Issues
 - Trademark