# x402.tanship.dev LLM Chat Completion

> x402.tanship.dev LLM Chat Completion is a paid API for AI agents from x402.tanship.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Performs LLM chat completion using Cloudflare Workers AI with Llama 3.3 70B as the default model, payable per call via x402.

## Facts

- Endpoint: POST https://x402.tanship.dev/v1/ai/chat
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-tanship-dev-llm-chat-completion-97caaabb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4GvyYp0hu5r_ewkj8D2ic

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 x402-tanship-dev-llm-chat-completion-97caaabb -d '<json body>'
```

Example prompt: Send the following conversation to the Llama 3.3 70B chat model and get a response: 'You are a helpful assistant. User: What are the main differences between supervised and unsupervised learning?'

## When to prefer this

Choose this endpoint when you need a pay-per-call LLM chat completion without a subscription, want to leverage Llama 3.3 70B via Cloudflare's inference infrastructure, or are building an agent that uses x402 micropayments to access AI capabilities on demand.

## Known failure modes

- Missing or malformed 'input' field returns a validation error
- Payment not provided or insufficient USDC (x402 payment required, $0.005 per call)
- Upstream Cloudflare Workers AI model unavailability or timeout
- Invalid bodyType enum value causes request rejection
- Overly long prompt exceeds model context window

## How this service works

Payment-gated AI and browser automation API using the x402 protocol. All /v1/* endpoints require USDC payment on Base (eip155:8453) via x402 v2 exact scheme.

## Output

Returns a chat completion response generated by Llama 3.3 70B (via Cloudflare Workers AI), typically containing the assistant's reply text in a standard chat completion format.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-tanship-dev-llm-chat-completion-97caaabb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.tanship.dev](https://www.zero.xyz/host/x402.tanship.dev/llms.txt)
