# Tarnak x402 Toolkit — LLM Inference (Chat Completions)

> Tarnak x402 Toolkit — LLM Inference (Chat Completions) is a paid API for AI agents from api.capousd-student-tools.me, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Provides keyless, pay-per-call LLM chat completions via a local abliterated Qwen2.5 model, billed per 1k completion tokens over x402/USDC on Base.

## Facts

- Endpoint: POST https://api.capousd-student-tools.me/v1/inference?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tarnak-x402-toolkit-llm-inference-chat-completions-271cde48
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N_yYX5_0iioqEwk74h7yt

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 tarnak-x402-toolkit-llm-inference-chat-completions-271cde48 -d '<json body>'
```

Example prompt: Send this conversation to the Tarnak keyless LLM inference endpoint and get a response — system prompt: 'You are a helpful assistant', user message: 'Explain DeFi in one paragraph', max 200 tokens, temperature 0.7.

## When to prefer this

Choose this endpoint when you need a keyless, signup-free LLM inference call billed in USDC micropayments via x402 on Base, especially when you want an abliterated (uncensored) local model and don't want to manage API keys. Prefer it over OpenAI or Anthropic APIs when operating in a crypto-native agent context that already handles x402 payments, or when anonymity and per-call billing without subscriptions are priorities.

## Known failure modes

- Payment not received or x402 handshake fails — returns 402 Payment Required
- max_tokens exceeds 1000 — validation error
- messages array missing required role or content fields — 400 Bad Request
- Model unavailable or server overloaded — 503 or timeout
- 10 free daily verdicts per IP exhausted — payment required for further calls

## How this service works

Keyless pay-per-call APIs for AI agents on Base: token risk verdict, rug/honeypot report, gas estimate, URL-to-markdown and more. x402 v2, USDC, no API key or signup. 10 free verdicts per IP per day.

## Output

Returns an OpenAI-compatible chat completion JSON object with the assistant's message content, token usage breakdown (prompt, completion, total), billing details (charged USD, unit price, blocks), model name, and finish reason.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "stop": {
   "oneOf": [
    {
     "type": "string"
    },
    {
     "type": "array",
     "items": {
      "type": "string"
     }
    }
   ]
  },
  "model": {
   "type": "string",
   "description": "Ignored alias; the server selects the local abliterated model."
  },
  "top_p": {
   "type": "number"
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role",
     "content"
    ],
    "properties": {
     "role": {
      "enum": [
       "system",
       "user",
       "assistant",
       "tool"
      ],
      "type": "string"
     },
     "content": {
      "type": "string"
     }
    }
   }
  },
  "max_tokens": {
   "type": "integer",
   "default": 256,
   "maximum": 1000,
   "minimum": 1
  },
  "temperature": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "chatcmpl-local",
  "model": "huihui_ai/qwen2.5-abliterate:latest",
  "usage": {
   "total_tokens": 9,
   "prompt_tokens": 8,
   "completion_tokens": 1
  },
  "object": "chat.completion",
  "billing": {
   "unit": "per_1k_completion_tokens",
   "blocks": 1,
   "charged_usd": 0.002,
   "unit_price_usd": 0.002,
   "completion_tokens": 1
  },
  "choices": [
   {
    "index": 0,
    "message": {
     "role": "assistant",
     "content": "Hello"
    },
    "finish_reason": "stop"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tarnak-x402-toolkit-llm-inference-chat-completions-271cde48/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.capousd-student-tools.me](https://www.zero.xyz/host/api.capousd-student-tools.me/llms.txt)
