# AgentDiet Prediction Oracle

> AgentDiet Prediction Oracle is a paid API for AI agents from rag-diet.agentdiet.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-22).

Returns a topic-aware prediction or oracle response with compression ratio proof, billed per call in USDC on Base via x402

## Facts

- Endpoint: GET https://rag-diet.agentdiet.dev/v1/prediction-oracle?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-prediction-oracle-165ac592
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lP9_Bgj7p5jayUS69pjMb

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 agentdiet-prediction-oracle-165ac592
```

Example prompt: Query the AgentDiet prediction oracle on the topic of 'Ethereum ETF approval odds in 2025' and show me the prediction result along with the compression ratio proof.

## When to prefer this

Choose this endpoint when you need a micropayment-gated, deterministic oracle prediction on a named topic with built-in compression ratio proof, especially in A2A or agent-to-agent workflows that settle in USDC on Base via x402. It is particularly suited for cost-sensitive agent pipelines where token budget efficiency matters and you want verifiable ROI on context compression.

## Known failure modes

- Payment not received or insufficient USDC balance — endpoint returns 402 Payment Required
- Missing required 'input' field or invalid 'type'/'method' values — returns 400 Bad Request
- Topic query param absent — oracle may return a generic or empty prediction
- Network or Base settlement delay — payment confirmation timeout
- Rate limiting or node unavailability — 503 or timeout response

## How this service works

Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://rag-diet.agentdiet.dev settling in USDC on Base.

## Output

A JSON object with a 'data' field containing the prediction result, a 'status' field ('ok'), and a 'roi_proof' object including 'compression_ratio_pct' (e.g. 91.4%) showing how much token context was compressed to deliver the answer.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "topic": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "status": "ok",
  "roi_proof": {
   "compression_ratio_pct": 91.4
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-prediction-oracle-165ac592/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rag-diet.agentdiet.dev](https://www.zero.xyz/host/rag-diet.agentdiet.dev/llms.txt)
