v1_run
Run an LLM prompt and receive raw model output, charging a flat $0.05 per call or metered usage. No API key needed—just a wallet for USDC payments with spend limits.
Instructions
[costs $0.05 USDC per call] Run an LLM prompt over x402: metered (pay actual usage) or flat per call. LLM inference over x402: POST a prompt (JSON body), get raw model output. Flat $0.05 per call (or metered pay-actual-usage when the upto scheme is on); every response prints tokens, upstream cost, margin, and the charge. Model: Anthropic Claude Haiku 4.5 via OpenRouter — no API key, bring a wallet. AI lane declared (aiUse: model-output): model output sold as model output, no system prompt injected. We never store prompts or completions; per-call and daily spend caps enforced.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model to run. Default and only option: anthropic/claude-haiku-4.5. | |
| prompt | Yes | The prompt to run, 1-8000 characters. Sent as a single user message. | |
| maxTokens | No | Completion token cap, 1-1024 (default 256). |