# Script Master Labs — x402 Data API (LLM Chat)

> Script Master Labs — x402 Data API (LLM Chat) is a paid API for AI agents from mcp-x402.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-12).

Answers natural language prompts about U.S. federal data using an LLM, with each call paid via USDC on Base using the x402 payment protocol.

## Facts

- Endpoint: GET https://mcp-x402.onrender.com/x402/llm-chat
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/script-master-labs-x402-data-api-llm-chat-5ecf2d04
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ay-jmLndJYnIbrGrCps9Z

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 script-master-labs-x402-data-api-llm-chat-5ecf2d04
```

Example prompt: Using the Script Master Labs x402 federal data API, ask: 'What was the total U.S. federal discretionary spending in fiscal year 2023?' — pay $0.001 USDC per call via x402 on Base.

## When to prefer this

Choose this endpoint when you need pay-per-use, micropayment-gated access to U.S. federal government data via a conversational LLM interface, particularly when operating in a crypto-native or x402-compatible payment context on Base. Prefer it over open federal APIs when you want a single natural-language interface rather than structured REST queries across multiple federal datasets.

## Known failure modes

- Payment failure: x402 USDC payment on Base not settled, call rejected with 402 Payment Required
- Missing required 'prompt' query parameter returns validation error
- Invalid or unsupported model identifier may produce errors or fall back to default
- Prompt outside U.S. federal data domain may yield vague or hallucinated responses
- Service unavailability on Render.com free-tier hosting causing timeouts
- Ambiguous or overly broad prompts returning low-quality or generic answers

## How this service works

Pay-per-call crypto, RWA, federal, SEC, Section 8/HUD housing, and compliance APIs via x402. Primary: USDC on Base (eip155:8453). Also accepts Global Dollar (USDG) on Robinhood Chain (eip155:4663) via sovereign X-PAYMENT-TX. Hyphen routes only (e.g. /x402/gas-tracker, /x402/pha-lookup, /x402/sec-8k). MARKETPLACE REVIEW: use free /x402/playground/* (no key, no payment). Production /x402/* returns 402 unless paid via x402 or X-Api-Market-Key / X-API-Key from seller dashboard.

## Output

Returns an LLM-generated text response grounded in U.S. federal data, answering the submitted natural language prompt. The response format is loosely defined (example schema only), typically a text completion or structured answer from the underlying model.

## 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": {
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "prompt"
     ],
     "properties": {
      "model": {
       "type": "string"
      },
      "prompt": {
       "type": "string"
      },
      "message": {
       "type": "string"
      },
      "max_tokens": {
       "type": "integer"
      }
     }
    }
   }
  },
  "output": {
   "properties": {
    "example": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/script-master-labs-x402-data-api-llm-chat-5ecf2d04/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp-x402.onrender.com](https://www.zero.xyz/host/mcp-x402.onrender.com/llms.txt)
