# Tarnak x402 Toolkit — LLM Chat Completions (Abliterated Model)

> Tarnak x402 Toolkit — LLM Chat Completions (Abliterated Model) 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 pay-per-call chat completions via a local abliterated LLM, billed per 1k completion tokens over x402/USDC with no API key required.

## Facts

- Endpoint: POST https://api.capousd-student-tools.me/v1/inference/chat/completions?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-chat-completions-abliterated-model-21796df0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eGd3ra83F7TEJUvZI33PA

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-chat-completions-abliterated-model-21796df0 -d '<json body>'
```

Example prompt: Generate a chat completion using an abliterated local LLM — send it the message 'Explain how smart contracts work in two sentences' with max 200 tokens and pay per token via USDC on Base, no API key needed.

## When to prefer this

Choose this endpoint when you need a keyless, no-signup LLM chat completion paid per-call in USDC on Base via x402 protocol, especially if you want an abliterated (uncensored) open-weight model and are building crypto-native or autonomous agent workflows that cannot hold traditional API keys.

## Known failure modes

- Payment not received or x402 flow fails — returns 402 Payment Required
- Messages array missing required role/content fields — returns 400 Bad Request
- max_tokens exceeds 1000 — rejected by schema validation
- Model alias ignored; server always uses its local abliterated model regardless of input
- IP rate-limited after 10 free verdicts per day — returns 429 Too Many Requests
- Server unavailable or local model not loaded — returns 503

## 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 containing the assistant's message text, token usage breakdown (prompt, completion, total), billing details (USD charged, 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-chat-completions-abliterated-model-21796df0/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)
