# Agent Embassy Compute Market History

> Agent Embassy Compute Market History is a paid API for AI agents from agent-embassy.fly.dev, paid per call via x402, $0.25/call, status unknown (last checked 2026-10-11).

Returns historical price snapshots for the AI compute market (optionally filtered by GPU class), delivered with a signed Outcome Receipt proving the data was retrieved and paid for.

## Facts

- Endpoint: POST https://agent-embassy.fly.dev/v1/markets/compute/history?utm_source=zero.xyz
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-embassy-compute-market-history-23f94f6f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TfS5HE_qJlOy81nbSOKu6

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 agent-embassy-compute-market-history-23f94f6f -d '<json body>'
```

Example prompt: Pull the last 100 historical price snapshots for H100 SXM GPUs from the compute market and give me a signed receipt proving the data was delivered — use idempotency key '3e7a1b22-cc4f-4d8a-9f11-abc123456789' so I can retry safely if needed.

## When to prefer this

Choose this endpoint when you need historical GPU and compute market pricing data AND require a cryptographically signed, machine-verifiable proof that the data was retrieved and paid for — particularly useful for compliance, auditing, or multi-agent workflows where one agent must prove to another that it obtained real market data. Prefer over generic market data APIs when you need the chain-of-custody Outcome Receipt or when operating in a USDC-on-Base/Arbitrum payment context via x402.

## Known failure modes

- Payment not verified or x402 authorization missing — returns 402 Payment Required
- GPU class string not recognized — may return empty snapshot array or validation error
- limit out of range (< 1 or > 200) — returns 400 Bad Request
- Invalid idempotency_key format — returns 400 with schema validation error
- Network or compute market data source unavailable — returns 503 or partial data
- Wallet address malformed in DEV MODE — returns 400

## How this service works

Agent Embassy lets AI agents pay for work and prove what happened. $0.15 verified web checks with signed Outcome Receipts, $1.00 encrypted recovery registration, paid compute market data. USDC on Base and Arbitrum One via x402 v2.

## Output

A JSON object containing an array of compute market price snapshots (oldest-first, up to the requested limit), the GPU class filtered on (if any), the payer wallet address, a unique receipt ID, and a signed Outcome Receipt with a full chain-of-custody chain (request → authorization → action → proof → liability_boundary) and receipt version, proving the data retrieval was paid for and completed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "gpu": {
   "type": "string",
   "description": "Optional GPU filter, e.g. 'H100 SXM' (max 64 chars). Omit for whole-market history"
  },
  "limit": {
   "type": "number",
   "description": "Max history points to return; integer 1-200. Defaults to 50"
  },
  "agent_wallet": {
   "type": "string",
   "description": "Dev mode only: declares the account wallet (string, min 20 chars) when no x402 payment is present. Ignored in live mode — there the wallet is recovered from the verified payment authorization."
  },
  "idempotency_key": {
   "type": "string",
   "description": "Idempotency key: any non-empty string (a UUID is recommended; no format is enforced). Replaying the same key on this tool returns the original receipt — the action is not re-run, and the first request's receipt wins even if you resend different inputs. Keys are scoped per tool: the same key on another tool is unrelated."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tool": "compute_history",
  "chain": [
   "request",
   "authorization",
   "action",
   "proof",
   "liability_boundary"
  ],
  "status": "complete",
  "account": "0x6fc297afb7e4af856cea20801f8313b6df65b924",
  "receipt_id": "emb_mno345",
  "receipt_version": "embassy-receipt/1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-embassy-compute-market-history-23f94f6f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-embassy.fly.dev](https://www.zero.xyz/host/agent-embassy.fly.dev/llms.txt)
