# X402 Hub SafeVision API

> X402 Hub SafeVision API is a paid API for AI agents from x402-hub.vercel.app, paid per call via x402, $0.075/call, status unknown (last checked 2026-10-12).

Analyzes images or visual content for safety, moderation, or vision-based queries via a micropayment-gated endpoint on Base

## Facts

- Endpoint: POST https://x402-hub.vercel.app/api/safevision?utm_source=zero.xyz
- Price: $0.075/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-hub-safevision-api-d5a245b9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_b6_4-xrWmFxP_thljJ6RJ

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 x402-hub-safevision-api-d5a245b9 -d '<json body>'
```

Example prompt: Can you run this image through SafeVision and tell me whether it's safe to display publicly — check the query 'https://example.com/photo.jpg' and flag any issues?

## When to prefer this

Choose this endpoint when you need per-image, pay-per-use content safety analysis without committing to a subscription, especially in crypto-native or Base/x402-compatible agent workflows where micropayments are preferred over API key management.

## Known failure modes

- Missing or empty 'query' field returns a validation error
- Invalid image URL or unparseable content reference may return empty or error data
- Insufficient USDC balance causes payment failure and 402 response
- Upstream vision service unavailability may result in timeout or null data response
- Malformed request body returns a 400-level error

## How this service works

63 paid API endpoints protected by x402 micropayments on Base

## Output

Returns a structured data object containing the safety classification, moderation flags, and any relevant confidence scores or detected categories from the vision analysis of the submitted query.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "description": "Query parameter for the API"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object",
   "description": "Response data from upstream API"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-hub-safevision-api-d5a245b9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-hub.vercel.app](https://www.zero.xyz/host/x402-hub.vercel.app/llms.txt)
