# Hollateknologi AI — paid LLM API (x402)

Pay-per-call LLM inference. No API key, no signup. **First call per IP per day is free — opt in with header x-free-trial: 1 (or ?free=1).**

- Base URL: https://ai.hollateknologi.id
- Pricing: 0.001 USDC for deepseek-v4.1-flash-1017; 0.002 USDC for claude-haiku-5-5 and gpt-6-luna
- Networks: eip155:8453 (Base) USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
- payTo (Base): 0xc1ca300da511c0fadd5163aa04f306da32e7bfe8
- payTo (Solana): 3wM7ucmrWjXCxRHkAt3dLJyXZK23ex7uatv5p71yaiUw
- Facilitators: Coinbase CDP (https://ai.hollateknologi.id/v1/*) and PayAI (https://ai.hollateknologi.id/payai/v1/*)
- Streaming: supported (stream:true -> SSE)

## Models
- deepseek-v4.1-flash-1017 — 0.0005 USDC
- claude-haiku-5-5 — 0.002 USDC
- gpt-6-luna — 0.002 USDC

## Call it

1. POST https://ai.hollateknologi.id/v1/chat/completions with `{"model":"deepseek-v4.1-flash-1017","messages":[{"role":"user","content":"hi"}]}`
2. First call from an IP within 24h returns 200 + header `x-free-trial: 1` — no payment.
3. After that an unpaid call returns 402 with x402 terms in `PAYMENT-REQUIRED` (base64 JSON). Pay with an x402 client and retry with `PAYMENT-SIGNATURE`.
4. Unknown model -> 400 before payment, nothing charged.

Client snippet (TypeScript, @x402/fetch):

```ts
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchPaid = wrapFetchWithPaymentFromConfig(fetch, {
  schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(account) }],
});
const res = await fetchPaid("https://ai.hollateknologi.id/v1/chat/completions", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({ model: "deepseek-v4.1-flash-1017", messages: [{ role: "user", content: "hi" }] }),
});
console.log(await res.json());
```

## Free discovery
- GET /v1/models — models + pricing
- GET /health — liveness + upstream latency
- GET /activity.json — recent settled sales
- GET /openapi.json — OpenAPI 3.1 contract
- GET /.well-known/x402 — discovery manifest
- GET /mcp — tool manifest

Contact: info@hollateknologi.id
