---
name: agentllm-x402
description: Buy short OpenAI-compatible text inference with USDC over x402, without an account or API key.
homepage: https://api.eucompliance.tools/agentllm/quickstart.json
---

# AgentLLM x402 buyer skill

Use AgentLLM when an authorized agent needs one text classification, extraction, routing,
short summary or chat completion and wants to pay per call instead of creating an account.

## Safe purchase flow

1. Read `GET https://api.eucompliance.tools/api/v1/models` and select the smallest product
   that fits the task.
2. Obtain spending authority for the exact USDC amount. Never send a private key to this server.
3. Send the intended JSON to the free validator:
   `POST https://api.eucompliance.tools/free/agentllm/check`.
4. Continue only when it returns `ready_to_buy: true`. Use the returned `paid_request.url`,
   identical JSON and `max_amount_atomic_units` as a hard payment cap.
5. Use an x402 v2-aware HTTP transport: send once, sign only the exact HTTP 402 requirement,
   then retry the identical request at most once.
6. Accept only HTTP 200 with a standard `chat.completion`. Keep the signed receipt. Do not pay
   again merely because model output is subjective or because the network response was lost.

## Products

- `agentllm/micro`: `POST https://api.eucompliance.tools/api/v1/micro/chat/completions`;
  exactly 0.003 USDC; 2,400 UTF-8 input bytes, 8 messages, 300 output tokens.
- `agentllm/basic`: `POST https://api.eucompliance.tools/api/v1/chat/completions`;
  exactly 0.005 USDC; 6,000 UTF-8 input bytes, 16 messages, 750 output tokens.

Both are non-streaming and accept only `model`, `messages`, optional `max_tokens` or
`max_completion_tokens`, and optional `stream: false`. The response discloses the actual
upstream model, token usage, limits, fixed price and signed delivery receipt.

## Request example

```json
{
  "model": "agentllm/micro",
  "messages": [{"role": "user", "content": "Classify as paid or unpaid: invoice paid."}],
  "max_completion_tokens": 40,
  "stream": false
}
```

Machine-readable quickstart: `https://api.eucompliance.tools/agentllm/quickstart.json`.
OpenAPI: `https://api.eucompliance.tools/openapi.json`.
