canonical: https://jentic.com/apis/shortpixel.com/shortpixel

# ShortPixel Image Optimization API

ShortPixel API for image optimization, compression, resizing, format conversion, and background removal. Supports lossy, lossless, and glossy compression modes. The API exposes 3 endpoints secured with apiKey authentication.

## For AI agents

Programmatically optimize images by url, optimize a single image synchronously. Covers 3 operations with apiKey authentication.

## Scope

Does not handle payments, communications, or developer tools - use for crm only.

## Capabilities

- Optimize images by URL
- Manage crm data programmatically
- Integrate ShortPixel Image Optimization API into automated workflows
- Query and filter ShortPixel Image Optimization API records by parameters
- Monitor ShortPixel Image Optimization API operational status and events

## Use cases

### CRM Operations

Use the ShortPixel Image Optimization API to perform crm operations programmatically. The API provides 3 endpoints covering core functionality including optimize images by url, optimize a single image synchronously, optimize images by file upload.

Example prompt: Call POST /reducer.php to optimize images by url

### Automated Post Reducer.Php Management

Automate post reducer.php operations by combining multiple ShortPixel Image Optimization API endpoints. Agents can optimize a single image synchronously and then optimize images by file upload in a single workflow.

Example prompt: Call POST /reducer-sync.php to optimize a single image synchronously, then verify the result

### AI Agent Integration via Jentic

AI agents discover and call ShortPixel Image Optimization API endpoints through Jentic without managing credentials directly. An agent searches for the required operation by intent, receives the matching endpoint schema, and executes the call with Jentic-managed authentication. This eliminates the need to read API documentation or handle apiKey tokens manually.

Example prompt: Search Jentic for 'optimize images by url', load the operation schema, and execute with Jentic-managed credentials

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/reducer.php` | Optimize images by URL |
| POST | `/reducer-sync.php` | Optimize a single image synchronously |
| POST | `/post-reducer.php` | Optimize images by file upload |

## Key resources

- **Post Reducer.Php** — Operations for post reducer.php
- **Reducer Sync.Php** — Operations for reducer sync.php
- **Reducer.Php** — Operations for reducer.php

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 48 / 100
- **Maturity:** Foundational
- **Dimensions:**
  - Foundational Compliance: 90 / 100
  - Developer Experience & Jentic Compatibility: 63 / 100
  - AI-Readiness & Agent Experience: 49 / 100
  - Agent Usability: 94 / 100
  - Security: 15 / 100
  - AI Discoverability: 75 / 100
- **View full report:** https://jentic.com/apis/shortpixel.com/shortpixel/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring the ShortPixel Image Optimization API by hand means sending your API key on every reducer request against api.shortpixel.com and handling its synchronous and asynchronous optimization responses yourself. Through Jentic you install once, import the ShortPixel Image Optimization API from the API Directory, store the key once, and your agent calls it.
- **Permission scoping:** ShortPixel takes the images to optimize in the request body rather than as owned path resources, so you limit the agent to the operations it needs, such as the synchronous or the queued reducer, and it can call nothing beyond the operations you choose.
- **Credential handling:** Your ShortPixel key is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'optimize images by URL' or 'optimize images synchronously', and Jentic returns the matching ShortPixel operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Hubspot** — Alternative crm API
- **Salesforce** — Alternative crm API
- **Pipedrive** — Complementary crm API
- **Zoho** — Complementary crm API

## FAQ

### What authentication does the ShortPixel Image Optimization API use?

The ShortPixel Image Optimization API uses an API key passed in the `key` query. Through Jentic, these credentials are stored encrypted in your Jentic One instance and injected at execution time, so raw secrets never enter the agent context.

### Can I optimize images by url with the ShortPixel Image Optimization API?

Yes. Use the POST /reducer.php endpoint. The API returns structured JSON responses that agents can parse and act on directly.

### What are the rate limits for the ShortPixel Image Optimization API?

Rate limits are not specified in the OpenAPI spec. Check the vendor documentation for current limits. Through Jentic, rate limiting is handled automatically with retry logic built into the execution layer.

### How do I optimize images by url through Jentic?

Install the Jentic SDK with pip install jentic, authenticate through Jentic One, the self-hosted execution layer, then search for 'optimize images by url'. Jentic returns the matching ShortPixel Image Optimization API operation with its input schema. Load the schema and execute the call - credentials are injected automatically.

### How many endpoints does the ShortPixel Image Optimization API have?

The ShortPixel Image Optimization API exposes 3 endpoints covering post reducer.php, reducer sync.php, reducer.php operations.

### Can I limit what my agent is allowed to do with the ShortPixel Image Optimization API?

Yes. Jentic One is self-hosted, so you set the rules that decide which ShortPixel operations and credentials your agent may use. Because ShortPixel takes the images to optimize in the request body rather than as owned path resources, you grant only the operations the agent needs, such as the synchronous reducer, the queued reducer, or file upload, and it can call nothing beyond the operations you allow. Your API key is injected at execution time and never enters the agent's prompt or logs.
