# Kimchi Premium API (x402)

> Kimchi Premium API (x402) is a paid API for AI agents from kr-x402-mvp.kgy5612.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Returns the kimchi premium — the price spread between Korean crypto exchanges and global markets — for BTC and/or ETH, paid per-call via x402 USDC on Base.

## Facts

- Endpoint: GET https://kr-x402-mvp.kgy5612.workers.dev/api/kimchi-premium?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kimchi-premium-api-x402-cd9e30a3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8mNim1pNjO-CSvVcSyz7g

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 kimchi-premium-api-x402-cd9e30a3
```

Example prompt: What's the current kimchi premium for BTC and ETH — how much more expensive are they on Korean exchanges like Upbit compared to global prices, and what's the USD/KRW rate right now?

## When to prefer this

Use this endpoint when you need real-time kimchi premium data (Korean vs global crypto price spread) without any API key setup, paying only $0.002 USDC per call via x402. Ideal for AI agents doing crypto arbitrage analysis, market monitoring, or needing a lightweight pay-per-use feed for BTC/ETH Korean market premiums without committing to a subscription.

## Known failure modes

- Payment failure or missing x402 USDC payment header returns 402 Payment Required
- Invalid or unsupported symbol in `symbols` param may return empty assets array or error
- Upstream exchange APIs (Upbit, Coinbase, Kraken, etc.) temporarily unavailable causing stale or missing data
- Malformed query string for symbols parameter returns 400 Bad Request
- Network timeout to worker endpoint returns 5xx error

## How this service works

Pay-per-call crypto microdata for trading/onchain AI agents via x402 (USDC on Base): Base gas, token risk, balances, multi-venue prices, Hyperliquid book/funding, kimchi premium. No API keys.

## Output

A JSON object containing, for each requested symbol (default BTC, ETH): the Upbit KRW price, global USD price, premium percentage adjusted for FX, premium percentage vs USDT, plus the live USD/KRW rate, the Upbit USDT/KRW rate, source exchange URLs, and an updated_at timestamp.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "symbols": {
       "type": "string",
       "examples": [
        "BTC,ETH",
        "BTC"
       ],
       "description": "Comma-separated filter (default BTC,ETH)"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "assets": [
   {
    "symbol": "BTC",
    "upbit_krw": 108533000,
    "global_usd": 80867.7,
    "premium_pct_fx": 1.15,
    "premium_pct_usdt": 0.16
   },
   {
    "symbol": "ETH",
    "upbit_krw": 3162000,
    "global_usd": 2356.1,
    "premium_pct_fx": 1.15,
    "premium_pct_usdt": 0.15
   }
  ],
  "usdkrw": 1326.8,
  "sources": [
   "https://api.upbit.com",
   "https://api.exchange.coinbase.com",
   "https://api.kraken.com",
   "https://www.bitstamp.net",
   "https://open.er-api.com"
  ],
  "updated_at": "2026-10-28T03:00:00Z",
  "upbit_usdt_krw": 1340
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kimchi-premium-api-x402-cd9e30a3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kr-x402-mvp.kgy5612.workers.dev](https://www.zero.xyz/host/kr-x402-mvp.kgy5612.workers.dev/llms.txt)
