# OmniAPI URL Shortener

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

Shortens a long URL into a compact, shareable short link

## Facts

- Endpoint: POST https://omni-api-cyan.vercel.app/api/tools/url/shorten
- Price: $0.048953/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/omniapi-url-shortener-82e74355
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7hiwiaVcddPWfCNYpwgEj

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-url-shortener-82e74355 -d '<json body>'
```

Example prompt: Can you shorten this URL for me? https://www.example.com/this-is-a-very-long-article-path/with-many-query-params?utm_source=newsletter&utm_medium=email&utm_campaign=spring2025

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call URL shortening service integrated into a crypto-native or x402-payment workflow, without needing a dedicated URL shortening service account. Best when already using OmniAPI for other tools and want a single unified billing interface via USDC.

## Known failure modes

- Invalid or malformed URL input returns an error response
- URL is unreachable or non-existent, leading to rejection
- Rate limiting or quota exceeded if too many calls are made
- Generic schema means the query field may be misinterpreted if not properly formatted as a URL
- API may return a vague error if required 'query' field is missing

## 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 that redirects to the original long URL, typically as a compact link string or object containing the short URL and possibly metadata like creation time or click tracking info.

## 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-url-shortener-82e74355/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)
