# ApexAPI AI URL Shortener

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

Shortens a long URL into a compact short link using an AI-powered endpoint

## Facts

- Endpoint: POST https://apex-api-gamma.vercel.app/api/ai/shorten
- Price: $0.113406/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apexapi-ai-url-shortener-5925f53f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Spb4JPMxKHtijTFkJCA-T

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

Example prompt: Can you shorten this URL for me — https://www.example.com/very/long/path/to/some/article?utm_source=newsletter&utm_medium=email&utm_campaign=spring2024 — I need a compact link I can share.

## When to prefer this

Choose this endpoint when you need to programmatically shorten URLs without managing API keys, paying per call in USDC on Base via x402 protocol. Useful for agents that need quick, keyless URL shortening in automated workflows.

## Known failure modes

- Invalid or malformed URL input returns an error
- Empty query string causes a bad request
- Upstream shortening service unavailable returns a server error
- Payment of 0.113406 USDC not fulfilled returns 402 Payment Required
- Rate limiting or quota exceeded returns a 429 or error response

## How this service works

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

## Output

A shortened URL or compact link that redirects to the original long URL, returned as JSON response data.

## 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/apexapi-ai-url-shortener-5925f53f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apex-api-gamma.vercel.app](https://www.zero.xyz/host/apex-api-gamma.vercel.app/llms.txt)
