# PrimeAPI AI URL Shortener

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

Shortens a long URL into a compact, shareable short link using an AI-powered shortening service

## Facts

- Endpoint: POST https://prime-api-seven.vercel.app/api/ai/shorten?utm_source=zero.xyz
- Price: $0.113406/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/primeapi-ai-url-shortener-be24dd09
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I5ygVj8fn4cz6Pru4JH4y

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-ai-url-shortener-be24dd09 -d '<json body>'
```

Example prompt: Can you shorten this URL for me so I can share it more easily: https://www.example.com/some/very/long/path/to/a/page?with=lots&of=query&parameters=here

## When to prefer this

Use this endpoint when you need a simple pay-per-call URL shortening service with no API key setup, paying in USDC on Base. Suitable for agents that need on-demand link shortening without managing API credentials.

## Known failure modes

- Invalid or malformed URL input returns an error response
- Empty query string may result in a 400 bad request
- Payment failure (insufficient USDC) returns 402 Payment Required
- Service unavailability on Vercel may return 503
- Unsupported URL schemes (non-http/https) may be rejected

## 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 compact link that redirects to the original long URL provided in the query input.

## 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-ai-url-shortener-be24dd09/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)
