# Tanship PayAI Console — KV Set

> Tanship PayAI Console — KV Set is a paid API for AI agents from x402.tanship.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-27).

Stores a key-value pair in a payment-gated persistent key-value store via the x402 micropayment protocol

## Facts

- Endpoint: POST https://x402.tanship.dev/v1/kv/set?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tanship-payai-console-kv-set-424a6c42
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QFx6wxhPk5yuj0CuEKuvI

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-kv-set-424a6c42 -d '<json body>'
```

Example prompt: Store the value 'active' under the key 'session_status' in Tanship's KV store — it'll charge $0.003 USDC via x402 on Base.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-use remote key-value write operation and are already operating within the x402 micropayment ecosystem on Base. Ideal for AI agents that need to persist small state values, flags, or tokens without managing a full database, especially when cost-per-write accountability via USDC is desired. Not suited for bulk storage, large payloads, or use cases requiring free or subscription-based storage.

## Known failure modes

- Payment not provided or insufficient USDC — returns HTTP 402 with x402 payment requirements
- Invalid JSON body or missing required fields — returns HTTP 400
- Key or value exceeds allowed size limits — returns HTTP 413 or 400
- Authentication or wallet verification failure — returns HTTP 401
- Network or upstream storage error — returns HTTP 500

## 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

A confirmation response indicating whether the key-value pair was successfully written to the store. May include the key name, a success status, and metadata about the write operation. Payment of $0.003 USDC on Base (eip155:8453) via x402 v2 is required before the write is processed.

## 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-kv-set-424a6c42/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)
