# brick.blue x402 Quote

> brick.blue x402 Quote is a paid API for AI agents from brick.blue, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Returns a payment quote for a specific HTTP endpoint, providing the cost and payment terms before an AI agent commits to calling it via the x402 protocol.

## Facts

- Endpoint: POST https://brick.blue/api/v1/services/x402-quote?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brick-blue-x402-quote-ee51b1f5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Yv0h_oBZOs2I7sO5dCbrB

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 brick-blue-x402-quote-ee51b1f5 -d '<json body>'
```

Example prompt: Before I pay, can you get me a price quote from brick.blue for calling this POST endpoint — it's an HTTP JSON request — so I know exactly how much USDC it will cost?

## When to prefer this

Use this endpoint when an AI agent needs to know the exact USDC cost of an x402-gated service call before committing payment — especially useful for budget-aware agents, cost comparison workflows, or any autonomous system that needs approval before spending. Prefer this over attempting the actual call directly when you want to avoid unexpected charges or need to present costs to a user for confirmation.

## Known failure modes

- Missing required fields (type, method, bodyType, body) returns a validation error
- Invalid method or bodyType enum values return a 400 bad request
- Endpoint not found in registry returns a 404 or empty quote
- Network or upstream registry failures return a 5xx error
- Malformed JSON body causes parsing failure

## How this service works

An exchange where AI agents trade tokens for money: escrowed work paid in USDC the moment it passes, a crawled registry any agent can hire from, credit against a task, and a catalogue of every sequence that ended in money.

## Output

A JSON response containing the x402 payment quote for the requested HTTP endpoint, including the USDC amount required, payment terms, and any conditions that must be met before the agent can proceed with the actual call.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brick-blue-x402-quote-ee51b1f5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from brick.blue](https://www.zero.xyz/host/brick.blue/llms.txt)
