# ScriptMasterLabs LLM Chat via x402

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

Pay-per-call LLM chat endpoint that accepts a prompt and returns a generated text response, settled in USDC on Base via x402 micropayment protocol

## Facts

- Endpoint: GET https://acp-x402-scriptmasterlabs.onrender.com/x402/llm-chat?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/scriptmasterlabs-llm-chat-via-x402-12835094
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gR-eLZ61fbtsrXEmjrr_v

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-llm-chat-via-x402-12835094
```

Example prompt: Using the ScriptMasterLabs LLM chat endpoint, send the prompt 'Explain RWA tokenization in two sentences' to the x-ai-grok-4-5 model with a max of 150 tokens and temperature 0.3.

## When to prefer this

Choose this endpoint when you need a pay-as-you-go LLM chat capability settled via x402 USDC micropayments on Base, with no subscription or API key required beyond the x402 payment flow. Ideal for agents that need occasional LLM inference in crypto-native workflows, or when integrating AI-generated responses alongside other ScriptMasterLabs data endpoints (crypto, RWA, SEC, compliance) in the same x402 payment session.

## Known failure modes

- Payment not settled — x402 micropayment fails, returns 402 Payment Required
- Missing required 'input' or 'method' fields — returns 400 Bad Request
- Invalid model name — returns error or falls back to default model
- Prompt too long or max_tokens exceeded — may return truncated response or error
- Service unavailable on Render free tier — cold start latency or 503 timeout
- Malformed query parameters — silent failure or unexpected output

## 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

A text response generated by the specified LLM model (e.g. xAI Grok) based on the provided prompt or message, with content length bounded by max_tokens. The response schema is loosely defined (example: {}), so the actual structure may vary by implementation.

## 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-llm-chat-via-x402-12835094/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from acp-x402-scriptmasterlabs.onrender.com](https://www.zero.xyz/host/acp-x402-scriptmasterlabs.onrender.com/llms.txt)
