# Tanship PayAI Console — AI Lint Endpoint

> Tanship PayAI Console — AI Lint Endpoint is a paid API for AI agents from x402.tanship.dev, paid per call via x402, $0.15/call, status unknown (last checked 2026-09-14).

Lints or validates AI-related content (such as prompts, code, or configurations) via a payment-gated HTTP POST endpoint using the x402 USDC micropayment protocol on Base.

## Facts

- Endpoint: POST https://x402.tanship.dev/v1/ai/lint
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tanship-payai-console-ai-lint-endpoint-475e7c9e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hgX3wHknUu2_dvj4fZg-R

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 tanship-payai-console-ai-lint-endpoint-475e7c9e -d '<json body>'
```

Example prompt: Can you lint this prompt for me to catch any issues before I send it to my AI model: 'You are an assistant that helps users. Always be polite and answer questions about weather and travel.'

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-use AI content linter without API key subscriptions, especially in crypto-native or agent-to-agent workflows that already support the x402 micropayment protocol on Base. Ideal for one-off prompt or configuration validation at low cost ($0.008/call).

## Known failure modes

- Payment not provided or insufficient USDC balance — returns HTTP 402 with x402 payment requirements
- Invalid bodyType value (must be json, form-data, or text) — returns 400 validation error
- Missing required 'input' field or nested required fields — returns 400 schema validation error
- Network or service unavailability — returns 5xx error
- Malformed JSON body — returns 400 parse error

## 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 lint analysis results for the submitted content, including identified issues, warnings, suggestions for improvement, and overall quality feedback about the AI-related input (prompt, code, or configuration).

## 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/tanship-payai-console-ai-lint-endpoint-475e7c9e/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)
