# OmniAPI AI URL Shortener

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

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

## Facts

- Endpoint: POST https://omni-api-cyan.vercel.app/api/ai/shorten
- Price: $0.073094/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/omniapi-ai-url-shortener-188e27bb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9dDmDZq420K9vsYLb6VNI

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

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

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call URL shortening service that accepts crypto micropayments via x402 and requires no upfront subscription. Useful in agent workflows that occasionally need to shorten URLs without integrating a dedicated shortening service.

## Known failure modes

- Invalid or malformed URL input returns an error response
- Missing required 'query' field causes a 400-level validation error
- Service unavailability or upstream shortener failure returns a 5xx error
- Rate limiting or payment failure via x402 protocol blocks the request

## How this service works

444 endpoints across 9+ chains. Crypto, AI, Social, Finance, Weather, Tools. Pay per call in USDC via x402 with 4 facilitators: Dexter, Meridian, FluxA, GoPlausible.

## Output

Returns a shortened URL object containing the compact short link corresponding to the provided long URL input, suitable for sharing on social media, messages, or anywhere character count is limited.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "input": {
   "type": "string",
   "description": "Input data for the endpoint"
  },
  "query": {
   "type": "string",
   "description": "Search query or input text"
  },
  "params": {
   "type": "object",
   "description": "Additional parameters"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/omniapi-ai-url-shortener-188e27bb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from omni-api-cyan.vercel.app](https://www.zero.xyz/host/omni-api-cyan.vercel.app/llms.txt)
