ShortPixel is an image optimization and compression service that offers APIs and plugins to enhance website performance by reducing image sizes without compromising quality.
ShortPixel is an image optimization and compression service that offers APIs and plugins to enhance website performance by reducing image sizes without compromising quality. On Nagent, Shortpixel is exposed as a fully-configurable images & design integration that any agent can call — 12 actions, and API key authentication. No code is required to wire Shortpixel into your workflow — connect it once via the External Integrations panel and reuse it across every agent you build.
Agent builders use Shortpixel to automate the kinds of tasks images & design teams previously handled manually. Concrete examples — each one is a single agent step in Nagent — include:
Every action and trigger is paired with a structured input/output schema (visible in the sections below), so when you wire Shortpixel into Helix — our agentic agent builder — the editor knows exactly what each step expects and produces. Configure once, deploy anywhere across your Nagent agents.
Every operation an agent can call against Shortpixel, with input parameters and output schema. Drop these into any step of an agent built in Helix.
SHORTPIXEL_ADD_CDN_DOMAINTool to add a new domain to the ShortPixel CDN system and associate it with your API key. Use when you need to register a domain for CDN services. If the domain already exists without a user, it will be associated with your API key.
Input parameters
Domain name to add to the CDN (e.g., example.com or test-domain-example.com)
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
SHORTPIXEL_BULK_PURGE_STORAGETool to purge all files stored on ShortPixel storage servers for a domain. Use when you need to remove all stored files for a site in bulk.
Input parameters
The domain whose files will be purged from ShortPixel storage
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
SHORTPIXEL_CHECK_IMAGE_STATUSTool to check the optimization status of an image being processed by ShortPixel. Returns current status of queued images including URLs and size information.
Input parameters
URL of the image to check status for
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
SHORTPIXEL_CLEAN_UP_IMAGETool to remove images from the processing queue. Use when you need to optimize another image with the same URL but different contents within the next hour.
Input parameters
List of image URLs to remove from the processing queue
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
SHORTPIXEL_GET_ADAPTIVE_IMAGE_CDNTool to optimize images on-the-fly via ShortPixel CDN. Transform images by URL with parameters for width, height, cropping, quality, and format conversion. Returns the optimized image directly without CDN caching.
Input parameters
Crop style options.
Desired width in pixels for the optimized image
Desired height in pixels for the optimized image
Image quality/compression level options.
Absolute URL of the original image to optimize (e.g., 'https://example.com/image.jpg')
Whether to keep EXIF metadata in the optimized image. False removes metadata for smaller file size.
Output format conversion options.
Return behavior options.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
SHORTPIXEL_GET_API_STATUSTool to retrieve the current status of your API key, including available credits. Use when you need to monitor your account usage before making additional API calls.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
SHORTPIXEL_GET_CDN_USAGETool to retrieve detailed CDN usage statistics for a domain including traffic, API calls, monthly quota, remaining credits, and historical usage breakdown by date. Use when you need to monitor CDN consumption or check quota status.
Input parameters
Domain name to get CDN usage statistics for (e.g., example.com)
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
SHORTPIXEL_OPTIMIZE_IMAGES_BY_URLTool to optimize images by providing their URLs. Supports batch processing of up to 100 URLs per request with options for lossy, glossy, or lossless compression, resizing, format conversion (WebP/AVIF), and background removal. Use when you need to compress and optimize images accessible online.
Input parameters
Wait time in seconds (0-30) for optimization before returning. Use 0 to return immediately with scheduled status. Higher values wait for completion.
Image compression type.
Image resize type.
Re-fetch and re-optimize image from source URL: 0 to use cached version, 1 to force fresh optimization
Image upscaling factor.
Array of image URLs to optimize. Images must be accessible online. Maximum 100 URLs per request.
Convert CMYK color space to RGB: 0 to skip conversion, 1 to convert (default is 1)
Background removal options: '1' for transparent background, URL for custom background image, '#rrggbbxx' for color with transparency (xx is alpha in hex)
Format conversion options: '+webp' (add WebP version), '+avif' (add AVIF version), '+webp\\ | +avif' (add both), 'webp\\ | avif' (replace with first available), 'jpg', 'png', 'gif' (convert to format)
Preserve EXIF metadata in optimized images: 0 to remove (default), 1 to keep
Array of custom optimization parameters for each URL, allowing per-image settings. Must match urllist length if provided.
Target width in pixels for resizing. Required if resize is specified.
Target height in pixels for resizing. Required if resize is specified.
5-character max alphanumeric code identifying your API client
Any array to be returned unchanged in the API response for tracking purposes
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
SHORTPIXEL_READ_CDN_DOMAINTool to check the status of a domain and its CDN quota on ShortPixel. Returns a status code indicating credit availability. Use when you need to verify domain accessibility and quota status.
Input parameters
Domain name to check CDN status and quota (e.g., example.com)
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
SHORTPIXEL_REVOKE_CDN_DOMAINTool to revoke a domain association from ShortPixel CDN. Only works if the API key belongs to the current domain owner. Use when you need to remove the association between a domain and the user account.
Input parameters
Domain name to revoke from ShortPixel CDN (e.g., example.com)
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
SHORTPIXEL_SET_CDN_DOMAINTool to associate an API key with an existing domain. Unlike add-domain, this does not create a new domain - it only associates a user ID if not already associated. Use when you need to claim unassociated domains.
Input parameters
Domain name to associate with the API key (e.g., example.com)
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
SHORTPIXEL_UPLOAD_AND_OPTIMIZE_IMAGESTool to upload and optimize images that are not accessible online. Uses multipart form data to upload files directly and applies optimization parameters like compression type, resize options, and format conversion.
Input parameters
First image file to upload and optimize.
Second image file to upload and optimize (optional).
Compression type for image optimization.
Resize type for image resizing.
Format conversion options: +webp, +avif, or +webp\\ | +avif
5 character max alphanumeric code for your API client identifier
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
No publicly available marketplace agent is found using this tool yet. There are 34 agents privately built on Nagent that already use Shortpixel.
Build on Nagent
Connect Shortpixel to any Nagent agent in minutes — no API key management, no boilerplate. Just configure and deploy.
The five questions agent builders ask before adopting a new integration.
Open the External Integrations panel inside Nagent (app.nagent.ai/externalIntegration), find Shortpixel, and click "Connect Now." You'll authenticate with an API key — Nagent handles credential storage and refresh automatically. Once connected, Shortpixel is available to any agent in your workspace.
No. Nagent provides no-code integration for every tool. Once Shortpixel is connected, you configure its 12 actions directly in the agent builder UI — no API calls, no boilerplate, no schema management.
Helix — Nagent's agentic agent builder — lets you drop Shortpixel steps into any workflow visually. Pick an action (e.g., one of those listed above), fill in the inputs (Helix knows the required vs. optional schema for each parameter), and connect it to upstream/downstream steps. Triggers run as the entry point of an agent, so when a Shortpixel event fires, the agent kicks off automatically.
Every Shortpixel action and trigger ships with a fully-typed schema — input parameters with name, type, required flag, and description, plus the output payload shape. The schemas are documented in the sections above. Helix uses these schemas to validate your configuration at build time and to type-check the data flowing between steps.
Yes. While Shortpixel ships with 12 pre-built images & design actions, you can layer custom logic around them inside Helix — pre/post-processing steps, conditional branches, retries, or stitching Shortpixel together with other connected tools. For deeper customization, talk to our team about Nagent's Agentic AI Lab — forward-deployed engineers who build Shortpixel-based workflows tailored to your business.