Space Settings
Space settings allow you to configure default behaviors, security policies, and feature toggles that apply to all media storages within a space. Individual storages can override these defaults.
To access space settings, navigate to Settings in the left sidebar of your dashboard, then select the space you want to configure.
Default Transformation
Section titled “Default Transformation”Set a default transformation that is automatically applied to all media served from your space. This is useful for enforcing consistent output format, quality, or size across all images.
For example, you can set a default quality of 80 and format of WebP so all images are automatically optimized without needing to specify these parameters in every URL.
To configure default transformations:
- Navigate to Space Settings in your dashboard.
- Find the Default Transformation section.
- Configure the desired output settings:
| Setting | Description |
|---|---|
| Format | Output image format (e.g., WebP, JPEG, PNG, AVIF) |
| Quality | Output quality (1—100) |
| Strip Metadata | Remove EXIF and other metadata from output images |
- Click Save to apply your changes.
Aliased Transformations
Section titled “Aliased Transformations”Create named presets for commonly used transformation combinations. Instead of repeating the same set of parameters in every URL, define an alias and reference it with a single ?alias=name parameter.
To create an alias:
- Navigate to Space Settings in your dashboard.
- Find the Aliased Transformations section.
- Click Add alias.
- Enter a name for the alias (1—16 characters, lowercase letters, digits, and hyphens only).
- Configure the transformation settings you want this alias to apply (resize dimensions, format, quality, etc.).
- Click Save.
Then use the alias in your image URLs:
?alias=thumbnailRestrict to Known Aliases
Section titled “Restrict to Known Aliases”You can toggle the Restrict to known aliases option in the Aliased Transformations section. When enabled, only pre-defined aliased transformations are accepted. Any request with custom transformation parameters (such as ?width=500) will be rejected. This is useful for:
- Preventing unexpected image sizes or formats
- Controlling bandwidth usage
- Enforcing brand-consistent image outputs
Watermarks
Section titled “Watermarks”Manage watermark images that can be applied to your media. Watermarks are uploaded once and referenced by name in transformation URLs.
To manage watermarks:
- Navigate to Space Settings in your dashboard.
- Find the Watermarks section.
- To add a watermark, click New watermark, give it a name, and upload a PNG image (PNG format is recommended for transparency support).
- To delete a watermark, click the delete icon next to the watermark you want to remove.
Security
Section titled “Security”Configure how media access is secured in your space.
Transformation Security Level
Section titled “Transformation Security Level”In the Security section of your space settings, select the security level from the dropdown:
| Level | Description |
|---|---|
| Token | Requires JWT token authentication for all requests |
| Signature | Requires URL signature with validity duration |
| Unsecured | No authentication required (use with caution) |
API Keys
Section titled “API Keys”Generate scoped API keys for programmatic access to your space.
- Navigate to Security in your space settings.
- In the API Keys section, click Generate new key.
- The new key is displayed once — copy and store it securely.
- To revoke a key, click the delete icon next to it.
Each API key has a unique key ID for reference and can be revoked individually.
Signature Keys
Section titled “Signature Keys”Generate ECDSA key pairs for URL signature verification.
- Navigate to Security in your space settings.
- In the Signature Keys section, click Generate new key pair.
- Copy the generated key details and store them securely.
Allowed Origins
Section titled “Allowed Origins”Configure CORS allowed origins for your media.
- Navigate to Security in your space settings.
- In the Allowed Origins section, enter the origins you want to permit.
Supported formats:
- Exact domain matching (e.g.,
https://example.com) - Wildcard subdomains (e.g.,
https://*.example.com) - Custom ports (e.g.,
http://localhost:3000) - Wildcard
*to allow all origins - Maximum 50 origins per space
Adaptive Media Policy
Section titled “Adaptive Media Policy”Automatically adjust image quality and dimensions based on client capabilities using Client Hints.
To configure adaptive media:
- Navigate to Space Settings in your dashboard.
- Find the Adaptive Media Policy section.
- Toggle the feature on or off.
- When enabled, configure the following settings:
| Setting | Description |
|---|---|
| Max DPR | Maximum device pixel ratio to support (max: 5.0) |
| Allowed Resolutions | List of allowed width/height pairs |
| Lower quality based on network speed | Reduce quality for slow network connections |
Supported Client Hints:
Sec-CH-DPR— Device pixel ratioSec-CH-Viewport-Width— Viewport widthSec-CH-Width— Resource widthSec-CH-ECT— Effective connection typeSec-CH-Downlink— Downlink speed
Versioning
Section titled “Versioning”Enable file versioning to track the history of media files. When versioning is enabled, previous versions of files are retained when they are overwritten.
To enable versioning:
- Navigate to Space Settings in your dashboard.
- Find the Versioning toggle.
- Switch it on to enable, or off to disable.
Default AI Models
Section titled “Default AI Models”Configure which AI model tier is used by default for AI-powered operations.
- Navigate to Space Settings in your dashboard.
- Find the Default AI Models section.
- Select the model tier for each operation from the dropdown:
| Operation | Description | Models Available |
|---|---|---|
| Remove Background | Automatically remove image backgrounds | Basic, Quality |
| AI Edit | Prompt-based image editing | Basic, Quality |
Max Storage Media Content Length
Section titled “Max Storage Media Content Length”Set the maximum allowed file size for uploaded media. The default is 25 MB.
- Navigate to Space Settings in your dashboard.
- Find the Max file size setting.
- Enter the maximum file size in bytes (e.g., 26214400 for 25 MB).
- Click Save.
Storage-Level Overrides
Section titled “Storage-Level Overrides”Individual media storages can override space-level settings. This allows you to apply different security policies, default transformations, or watermarks to specific storages.
To configure storage-level overrides:
- Navigate to the Storages section in your dashboard.
- Select the storage you want to customize.
- Open the storage’s Settings tab.
- Override any of the following per storage:
- Default transformation
- Watermarks
- Security configuration
- Adaptive media policy
- Aliased transformations
Settings not explicitly overridden will inherit from the space defaults.