Spellcheck
Paid Spellcheck proxy via x402 pay-per-use (HTTP 402).
Prerequisites: This skill requires x402-payment. Complete the setup steps before first use.
Security: Documentation only — no executable code or credentials. Wallet/keys stay on your machine; never stored here.
Service URLs
| Role | Domain |
|---|
| API Provider | https://www.cpbox.io |
| Facilitator |
https://www.cppay.finance |
Endpoint (Agent Interface)
CODEBLOCK0
Payment Flow (x402 Protocol)
- 1. First request ->
402 Payment Required with requirements JSON - Sign & retry with
PAYMENT-SIGNATURE -> result JSON
With @springmint/x402-payment or x402-sdk-go, payment is automatic.
Quick Start (cURL)
CODEBLOCK1
Using with x402-payment
CODEBLOCK2
Parameters
| Parameter | Type | Required | Default | Description |
|---|
| INLINECODE4 | string | Yes | — | Query to spell check (1-400 chars, max 50 words) |
| INLINECODE5 |
string | No |
en | Language preference (2+ char language code, e.g.
en,
fr,
de,
pt-br,
zh-hans). 51 codes supported |
|
country | string | No |
US | Search country (2-letter country code or
ALL) |
Response Fields
| Field | Type | Description |
|---|
| INLINECODE15 | string | Always INLINECODE16 |
| INLINECODE17 |
string | The input query as submitted |
|
results | array | Spell-corrected suggestions. May be empty when no correction is found |
|
results[].query | string | A corrected version of the query |
Example Response
CODEBLOCK3
Use Cases
- - Pre-search query cleanup: Check spelling before deciding which search endpoint to call
- "Did you mean?" UI: Show users a corrected suggestion before running the search
- Batch query normalization: Clean up user inputs in bulk
Notes
- - Built-in alternative: Web Search and LLM Context have
spellcheck=true by default — use this standalone endpoint only when you need the correction before searching - Context-aware: Corrections consider the full query context, not just individual words
拼写检查
通过 x402 按次付费(HTTP 402)的付费拼写检查代理。
前置条件:此技能需要 x402 支付。首次使用前请完成设置步骤。
安全性:仅提供文档——不含可执行代码或凭证。钱包/密钥保留在您的机器上;绝不在此处存储。
服务地址
| 角色 | 域名 |
|---|
| API 提供商 | https://www.cpbox.io |
| 协调方 |
https://www.cppay.finance |
端点(代理接口)
http
GET /api/x402/spellcheck
支付流程(x402 协议)
- 1. 首次请求 -> 返回 402 Payment Required 及需求 JSON
- 签名并重试,附带 PAYMENT-SIGNATURE -> 返回结果 JSON
使用 @springmint/x402-payment 或 x402-sdk-go 时,支付过程自动完成。
快速开始(cURL)
bash
curl -s https://www.cpbox.io/api/x402/spellcheck \
-H Accept: application/json \
-G \
--data-urlencode q=artifical inteligence \
--data-urlencode lang=en \
--data-urlencode country=US
配合 x402-payment 使用
bash
npx @springmint/x402-payment \
--url https://www.cpbox.io/api/x402/spellcheck?q=artifical%20inteligence&lang=en&country=US \
--method GET
参数
| 参数 | 类型 | 必填 | 默认值 | 描述 |
|---|
| q | 字符串 | 是 | — | 待拼写检查的查询(1-400 字符,最多 50 个单词) |
| lang |
字符串 | 否 | en | 语言偏好(2 位以上语言代码,例如 en、fr、de、pt-br、zh-hans)。支持 51 种代码 |
| country | 字符串 | 否 | US | 搜索国家(2 位国家代码或 ALL) |
响应字段
| 字段 | 类型 | 描述 |
|---|
| type | 字符串 | 固定为 spellcheck |
| query.original |
字符串 | 提交的原始输入查询 |
| results | 数组 | 拼写纠正建议。未找到纠正时可能为空 |
| results[].query | 字符串 | 查询的纠正版本 |
示例响应
json
{
type: spellcheck,
query: {
original: artifical inteligence
},
results: [
{
query: artificial intelligence
}
]
}
使用场景
- - 搜索前查询清理:在决定调用哪个搜索端点前检查拼写
- 您是不是要找?界面:在运行搜索前向用户显示纠正建议
- 批量查询规范化:批量清理用户输入
注意事项
- - 内置替代方案:网页搜索和 LLM 上下文默认已启用 spellcheck=true——仅在搜索前需要纠正时才单独使用此端点
- 上下文感知:纠正会考虑完整查询上下文,而非仅单个单词