# PrimeAPI URL Shortener

> PrimeAPI URL Shortener is a paid API for AI agents from prime-api-seven.vercel.app, paid per call via x402, $0.059672/call, status unknown (last checked 2026-09-14).

Shortens a long URL into a compact, shareable short link

## Facts

- Endpoint: POST https://prime-api-seven.vercel.app/api/tools/url/shorten
- Price: $0.059672/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/primeapi-url-shortener-8fd564c2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3Vp3ddhDPtFIVZS8SC2VZ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability primeapi-url-shortener-8fd564c2 -d '<json body>'
```

Example prompt: Can you shorten this URL for me — https://www.example.com/some/very/long/path/with/lots/of/query?params=true&another=value — I need a compact link I can share.

## When to prefer this

Use this endpoint when you need a quick, pay-per-call URL shortening service without managing API keys, paying with USDC on Base. Suitable for agents that occasionally shorten URLs on demand without needing a dedicated URL shortening account or subscription.

## Known failure modes

- Invalid or malformed URL input returns an error
- URL that is already very short may still be processed but offers minimal compression
- Network timeout or server unavailability returns a 5xx error
- Payment failure or insufficient USDC balance prevents the call from executing
- Rate limiting may occur under high request volume

## How this service works

Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.

## Output

Returns a shortened URL or short link that redirects to the original long URL when visited

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Search query or input parameter"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/primeapi-url-shortener-8fd564c2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from prime-api-seven.vercel.app](https://www.zero.xyz/host/prime-api-seven.vercel.app/llms.txt)
