---
title: "LLM INFERENCE for keyless agents — POST {prompt, system?} and get Claude Haiku's answer"
method: POST
path: "/api/llm"
tags: ["Inference"]
---

# LLM INFERENCE for keyless agents — POST {prompt, system?} and get Claude Haiku's answer

`POST /api/llm`

## Request

- Base URL: `https://api.webbersites.com`
- URL: `https://api.webbersites.com/api/llm`
- Auth: API key in header `X-PAYMENT`

LLM INFERENCE for keyless agents — POST {prompt, system?} and get Claude Haiku's answer: summarize, classify, extract, rewrite, translate, draft. No API key, no account, no subscription — the x402 payment IS the auth. One flat price per call. Caps: 8,000-char prompt, 2,000-char system, ~1,000-token response (stop_reason tells you if you hit it). Powered by Claude Haiku 4.5.

Price: $0.01 per call, paid in USDC via the x402 protocol (see the x402 security scheme).

## Request body

- object
  - `prompt` string, required: The task/question, up to 8,000 chars
  - `system` string: Optional system prompt (persona, format rules), up to 2,000 chars

## Response `200`

Success

- object
  - `response` string: the model's answer
  - `model` string
  - `stop_reason` string: end_turn, or max_tokens if the 1,000-token cap was hit
  - `usage` object

## Other responses

- `402`: Payment required — the response body lists accepted payment methods (amount, asset, network, pay-to address). Retry the request with a signed X-PAYMENT header.

---

[API](https://skmtc.dev/webbersites/apis/webbersites-x402-data-api.md) · [All operations](https://skmtc.dev/webbersites/apis/webbersites-x402-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/webbersites/apis/webbersites-x402-data-api/revisions/c14a76c67a94?raw)
