# 2s.io Chinese Pinyin Converter

> 2s.io Chinese Pinyin Converter is a paid API for AI agents from 2s.io, paid per call via x402, $0.0025/call, status unknown (last checked 2026-09-14).

Converts Chinese Hanzi text to pinyin romanization with configurable tone style (symbol, numbered, or none), auto word-segmentation, and per-syllable array output.

## Facts

- Endpoint: GET https://2s.io/api/chinese/pinyin
- Price: $0.0025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-chinese-pinyin-converter-2741dab8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ejiS8RNRxpR_OTbFryOjB

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 2s-io-chinese-pinyin-converter-2741dab8
```

Example prompt: Convert this Chinese text '汉语拼音' to pinyin using tone marks (symbol style) and include the per-syllable segment array.

## When to prefer this

Use this endpoint when you need fast, deterministic, keyless Chinese-to-pinyin conversion at low cost ($0.001/call), especially for TTS preparation, pronunciation guides, search index generation, or language learning tools. Prefer over LLM-based transliteration when consistency and correctness are critical.

## Known failure modes

- Missing 'text' query parameter returns an error
- Non-Chinese or empty text may return empty pinyin or error
- text exceeding 2000 characters is rejected
- Invalid 'tone' enum value returns a validation error
- Payment failure (x402) if USDC funds are insufficient

## How this service works

Convert Chinese (Hanzi) text to pinyin romanization. Choose tone marks (symbol, e.g. hàn yǔ), numbered tones (han4 yu3), or no tones. Auto-segments words and returns the full pinyin string plus a per-syllable array. Deterministic, keyless — useful for transliteration, pronunciation, search indexing, and TTS prep.

## Output

Returns the full pinyin string (e.g. 'hàn yǔ pīn yīn') and optionally a per-syllable or per-word array breakdown, depending on tone format chosen (symbol, numbered, or none).

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "maxLength": 2000,
       "minLength": 1
      },
      "tone": {
       "enum": [
        "symbol",
        "num",
        "none"
       ],
       "type": "string"
      },
      "segmented": {
       "type": "boolean",
       "description": "Include the per-word segment array."
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-chinese-pinyin-converter-2741dab8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
