# ScriptMasterLabs ACP x402 LLM Chat API

> ScriptMasterLabs ACP x402 LLM Chat API is a paid API for AI agents from acp-x402-discovery.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Send a natural language prompt to an LLM (e.g. Grok) via a pay-per-call x402 endpoint, receiving a generated text response settled in USDC on Base.

## Facts

- Endpoint: GET https://acp-x402-discovery.onrender.com/x402/llm-chat
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scriptmasterlabs-acp-x402-llm-chat-api-a2c361e6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y-h_2cv3Q6CLRFiT3eS19

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 scriptmasterlabs-acp-x402-llm-chat-api-a2c361e6
```

Example prompt: Ask the Grok 4.5 model 'What are the top 3 trends in RWA tokenization right now?' with a max of 300 tokens and a temperature of 0.3, paying per call with USDC on Base.

## When to prefer this

Choose this endpoint when you need on-demand LLM text generation without a subscription, want to pay per call in USDC on Base via the x402 protocol, or are building crypto-native agentic workflows that require metered AI inference. Prefer this over OpenAI or Anthropic direct APIs when crypto micropayment settlement is required or when integrating with the ScriptMasterLabs ACP ecosystem for crypto, RWA, or compliance data tasks.

## Known failure modes

- Payment not settled (402 response) if USDC balance or x402 header is missing
- Invalid or unsupported model name returns an error
- Prompt or message field missing triggers a validation error
- max_tokens exceeding model context window may cause truncation or error
- High temperature values may produce incoherent or off-topic responses
- Service unavailability on Render hosting causing 502/503 errors

## How this service works

Pay-per-call crypto, RWA, federal, SEC, and compliance APIs. Settled in USDC on Base via x402. Hyphen routes only (e.g. /x402/rwa-aggregates, /x402/gas-tracker).

## Output

The agent receives a generated text response from the specified LLM model (e.g. Grok 4.5), reflecting the prompt submitted. The response is the model's completion, constrained by the provided max_tokens and temperature. Payment of $0.001 USDC is settled on Base via x402 per 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "model": {
       "type": "string",
       "example": "x-ai-grok-4-5"
      },
      "prompt": {
       "type": "string",
       "example": "Say hi in one sentence"
      },
      "message": {
       "type": "string",
       "example": "Hello"
      },
      "max_tokens": {
       "type": "integer",
       "default": 256,
       "example": 256
      },
      "temperature": {
       "type": "number",
       "default": 0.2,
       "example": 0.2
      }
     }
    }
   }
  },
  "output": {
   "properties": {
    "example": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scriptmasterlabs-acp-x402-llm-chat-api-a2c361e6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from acp-x402-discovery.onrender.com](https://www.zero.xyz/host/acp-x402-discovery.onrender.com/llms.txt)
