Kraken.io

Compresses website imagery in real time, monitors your monthly credit quota, and automates the optimization of externally hosted assets to speed up page loads.

Try Kraken.io in Ceven

Ask Ceven anything
Standard

Why use Ceven?

  1. AI native Kraken.io integration

    • Describe the outcome and Ceven picks the right Kraken.io calls, fills the parameters, and checks the result.
    • Structured, agent friendly tool schemas so each call runs reliably instead of by guesswork.
    • Rich coverage for reading, writing, and querying your Kraken.io data, across all 3 of its actions.
  2. Managed auth

    • Built in OAuth with automatic token refresh and rotation.
    • One place to manage, scope, and revoke Kraken.io access.
    • Per user and per environment credentials instead of shared keys.
  3. Agent optimized design

    • Actions are tuned from real success and error rates so reliability climbs over time.
    • Full execution logs so you always know what ran in Kraken.io, when, and on whose behalf.
    • The agent pauses and asks when Kraken.io is unclear instead of plowing ahead.
  4. Enterprise grade security

    • Fine grained access so you control which agents and people can reach Kraken.io.
    • Least privilege by default, read scopes first and only the writes a workflow needs.
    • A full audit trail of every Kraken.io action to support review and sign off.

Supported tools

Every action Ceven's agents can run on Kraken.io, and when to use it.

Check user status
Use this to retrieve current account status and quota usage. Pull this before processing large batches to verify remaining credits.
Optimize image by URL
Compress, resize, or convert an image hosted at a public URL. Use this to shrink assets before they hit your CDN.
Preserve image metadata
Maintain EXIF and other metadata during the optimization process. Use this when SEO or photo credits must remain intact.
Sandbox image upload
Upload and optimize images in sandbox mode. Use this to test API settings without consuming your paid credits.
Verify quota limit
Check if the current plan can handle a specific number of image requests. Use this for workflow guardrails.
Trigger lossless compression
Run an optimization pass that removes no visual data. Use this for logos or medical imagery.
Trigger lossy compression
Run an optimization pass that reduces file size aggressively. Use this for general website photography.
Fetch optimization result
Pull the final compressed image URL after a processing job completes. Use this to update database records.
Set resize dimensions
Define the target width and height for an image during optimization. Use this for thumbnail generation.
Convert image format
Change the image file type to a more efficient format like WebP. Use this for modern browser optimization.
List recent jobs
Pull a list of recent image processing requests and their status. Use this for auditing usage.
Clear image cache
Force a re optimization of a previously processed image. Use this when the original source file changes.
Check Kraken.io User Status
Tool to retrieve current kraken.io account status and quota usage. use when you need to verify plan limits and remaining quota before processing images.

13 actions · scroll to see them all

Frequently asked questions

Ceven monitors your Kraken.io credits by calling the user status endpoint before initiating large batch jobs. If your quota is too low to complete a requested workflow, the agent will pause the process and notify you rather than letting the API return a failure error mid way through. This prevents partial updates to your website where some images are optimized and others remain raw. You can set a specific credit threshold in your workflow settings so that Ceven alerts you via email or Slack when your balance dips below a certain number of images, allowing you to top up your plan before your site performance suffers.
Yes. Ceven utilizes the Kraken.io sandbox mode for this purpose. When you select the sandbox action, the agent uploads the image to a test environment where you can experiment with different compression levels, resizing parameters, and format conversions. No credits are deducted from your account balance during these calls. This is highly recommended when you are building a new automated pipeline for a client and want to ensure the visual quality meets their standards before you commit to processing thousands of production images which would consume your paid quota.
By default, many optimization tools strip metadata to save space, but Ceven allows you to control this. Using the preserve metadata action, the agent instructs Kraken.io to keep the EXIF data, GPS coordinates, and copyright information intact. This is critical for photographers or news organizations that need to maintain the provenance of an image while still benefiting from a smaller file size. If you do not explicitly trigger the preserve metadata flag, Kraken.io will follow its default stripping behavior to ensure the smallest possible file size for the end user.
One specific quirk of the Kraken.io API is the way it handles synchronous versus asynchronous requests. If you set the wait parameter to true, the API holds the connection open until the image is processed, which is great for single images but can lead to timeout errors on very large files. For larger assets, Ceven manages the process asynchronously by submitting the job and then polling for the result. Additionally, there are strict rate limits on the number of concurrent requests depending on your plan tier. Ceven handles this by queuing your images and spacing out the API calls to avoid 429 too many requests errors.
Kraken.io requires a public URL to optimize images via the URL endpoint. If your images are stored in a private S3 bucket or behind a login, Ceven cannot simply pass the link. In these cases, the agent must first move the image to a temporary public location or use a signed URL that grants temporary access. Once the optimization is complete and the image is downloaded back to your secure storage, Ceven can trigger the deletion of the temporary public file to ensure your assets remain secure and are not indexed by search engines.
Yes. Ceven can call the format conversion parameters within the Kraken.io API to transform JPG or PNG files into WebP. This is a common workflow for improving PageSpeed Insights scores. The agent can be configured to create multiple versions of a single upload, such as a high quality PNG for retina displays and a highly compressed WebP version for mobile users. Ceven then updates your database with both URLs so your front end can serve the correct version based on the user agent of the visitor.
The limit is determined by your Kraken.io plan rather than Ceven. Most plans have a maximum file size limit for individual uploads. If you attempt to process an image that exceeds this limit, the Kraken.io API will return an error. Ceven catches this error and can be programmed to either skip the image, notify an administrator, or attempt to resize the image using a different tool before trying the Kraken.io optimization again. This ensures your entire automation does not crash just because one oversized image entered the pipeline.

Alternatives to Kraken.io

Other tools that solve a similar problem. Ceven supports these too, so you can switch or run more than one at once.

Try Ceven on your stack

Plug Ceven on top of the tools you already run. Connect Kraken.io and the rest of your stack, describe the outcome, and its agents handle the work end to end, days of it in minutes.

Get started for free