# Aile Web Search via AI Model Exchange

> Aile Web Search via AI Model Exchange is a paid API for AI agents from api.aile.sh, paid per call via x402, $0.0025/call, status unknown (last checked 2026-10-11).

Performs a web search using a chosen AI-powered search model (e.g. Brave) routed through Aile's metered AI model marketplace, returning ranked URLs, titles, and snippets.

## Facts

- Endpoint: POST https://api.aile.sh/v1/search?utm_source=zero.xyz
- Price: $0.0025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aile-web-search-via-ai-model-exchange-a902f779
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3i7jhNhuadqtFJAMsmuQ7

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 aile-web-search-via-ai-model-exchange-a902f779 -d '<json body>'
```

Example prompt: Search for the latest news on quantum computing breakthroughs using brave/web-search on Aile, limit to results from the past week, up to 10 results, with moderate safe search, in English.

## When to prefer this

Choose this endpoint when you need programmatic web search with per-call USDC micropayment billing and the flexibility to select among multiple AI-powered search models (e.g. Brave). It is ideal for agents that need real-time, filterable web results with built-in freshness, language, and safe-search controls, without managing long-term API subscriptions. Prefer it over raw search APIs when you want the Aile model-exchange routing layer and on-chain Solana settlement.

## Known failure modes

- Invalid or unavailable model identifier returns an error — check /v1/models for supported models
- Query string missing causes a 400 validation error
- max_results exceeding billing tier increments (every 10 results) increases cost unexpectedly
- Invalid freshness enum value returns a 422 error
- Insufficient USDC balance on Solana causes payment failure and request rejection
- Unsupported language or country code may return empty results

## How this service works

Rent trusted AI models priced per token; lend idle subscriptions and API keys. A live, metered market that settles every call in USDC on Solana.

## Output

Returns a JSON object with an array of search results, each containing a URL, page title, and a short text snippet summarizing the page content. Results are ranked by relevance to the query.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "model",
  "query"
 ],
 "properties": {
  "model": {
   "type": "string",
   "description": "`<provider>/<model>`, e.g. `brave/web-search`. GET /v1/models?output_modalities=text lists what is servable, with prices."
  },
  "query": {
   "type": "string"
  },
  "country": {
   "type": "string"
  },
  "language": {
   "type": "string"
  },
  "freshness": {
   "enum": [
    "day",
    "week",
    "month",
    "year"
   ],
   "type": "string"
  },
  "max_results": {
   "type": "integer",
   "description": "Priced per 10 results: 11-20 is two queries."
  },
  "safe_search": {
   "enum": [
    "off",
    "moderate",
    "strict"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "object": "search",
 "results": [
  {
   "url": "https://…",
   "title": "…",
   "snippet": "…"
  }
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aile-web-search-via-ai-model-exchange-a902f779/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.aile.sh](https://www.zero.xyz/host/api.aile.sh/llms.txt)
