๐Ÿซ˜ GoldBean

July 11, 2026 ยท View on GitHub

Access Baidu AI (OCR, Translation, TTS, ASR, ERNIE LLM, HelixFold) from anywhere โ€” no Chinese phone number, no Baidu Cloud account required

API Status public-apis awesome-mcp-servers awesome-x402 Glama Score MCPize npm License

GoldBean is the easiest way for global developers to access 46 Baidu AI endpoints โ€” OCR (general, high-accuracy, table, handwriting, VIN), TTS, ASR, ERNIE LLM, translation, image recognition (plant, animal, dish, ingredient, currency, car type, red wine, logo), face detection, comparison & liveness, gesture, object detection, landmark, image processing (colorize, style transfer, selfie anime, dehaze), content moderation, NLP (sentiment, summary, word embedding, text correction, comment tag, emotion, keyword, address, text similarity), and HelixFold protein structure prediction โ€” all through a unified API with PayPal, Alipay, or x402 USDC micropayments.

Baidu AI is world-class at Chinese text, voice, and image processing. But using it directly requires a Chinese phone number, real-name verification, and a Baidu Cloud account. GoldBean removes that barrier.

No Chinese phone number. No Baidu account. No subscription. Pay per call.


โœจ Features

FeatureDetails
78 API Routes (53 paid + 25 free)OCR (10 types), TTS, ASR, Translation, LLM Chat, Face (detect + compare + liveness), Gesture, Object Detect, Landmark, Plant/Animal/Dish/Ingredient/Currency/Car/RedWine/Logo Recognition, Image Processing (colorize, style transfer, selfie anime, dehaze), Content Moderation, NLP (10 types), HelixFold
x402 MicropaymentsPay $0.01โ€“$0.05 per call with USDC on Base network
Free Tier5 free calls/day per IP + 20 credits on registration โ€” no wallet needed
PayPal & AlipayAlso supported for prepaid credits
MCP CompatibleWorks with Cursor, Claude Desktop, Cline, Codex, Continue
Baidu AI PoweredEnterprise-grade AI from China's leading AI platform
HelixFold3Nature-published, AlphaFold3-class protein/RNA structure prediction

๐Ÿค” Why GoldBean?

Need Baidu OCR but don't have a Chinese phone number?

GoldBean is the easiest way for overseas developers to use Baidu AI APIs without a Chinese phone number, real-name verification, or WeChat Pay.

  • โœ… Use Baidu API without registration โ€” no Chinese ID, no real-name auth
  • โœ… Baidu OCR API without Chinese phone โ€” just sign up with any email
  • โœ… No KYC, no subscription โ€” pay cents per call via USDC, PayPal, or Alipay
  • โœ… Free credits to start โ€” 5 calls/day per IP (no signup) + 20 credits on registration
  • โœ… Works globally โ€” no mainland China restrictions for foreign users

Whether you need Baidu OCR for document scanning, Baidu Translation for multilingual text, or Baidu ASR/TTS for voice processing โ€” GoldBean unlocks it all without the registration barriers.


๐Ÿš€ Quick Start

1. Install the MCP Server

npx goldbean-mcp

2. Add to Your MCP Client

Claude Desktop / Cursor / Continue:

{
  "mcpServers": {
    "goldbean": {
      "command": "npx",
      "args": ["goldbean-mcp"]
    }
  }
}

3. Use Free Credits (No Wallet)

# Register for 20 free API calls
curl -X POST https://goldbean-api.xyz/paid/user/register \
  -H "Content-Type: application/json" \
  -d '{"userId": "your-user-id"}'

# Response: {"freeCredits": 20, "apiKey": "GB_XXXXXX"}

# Call an API with free credits
curl "https://goldbean-api.xyz/paid/baidu-ocr?image=https://example.com/doc.jpg" \
  -H "x-user-id: GB_XXXXXX"

๐Ÿ“š Code Examples

We provide ready-to-use code examples in the examples/ directory:

ExampleLanguageDescription
claude-desktop-config.mdConfigClaude Desktop MCP configuration guide
python-integration.pyPythonMCP SDK + x402 payment integration
nodejs-x402-example.jsNode.jsBatch calls with @goldbean/x402-sdk
git clone https://github.com/wuzenghai616-lang/goldbean.git
cd goldbean/examples

# Python: Install deps and run
pip install mcp web3
python python-integration.py

# Node.js: Install deps and run
npm install @modelcontextprotocol/sdk @goldbean/x402-sdk
node nodejs-x402-example.js

๐Ÿ“ก API Endpoints

๐Ÿ†“ Free System Endpoints

EndpointDescription
GET /healthService health check
GET /btc-priceBitcoin real-time price ($)
GET /weather-now?city=LanzhouCurrent weather in any city
GET /gasEthereum gas price (Gwei)
GET /.well-known/x402-bazaarx402 payment discovery
GET /api/routesFull route registry

๐ŸŽฏ Baidu AI Endpoints (Pay-per-Call) โ€” 26 APIs

EndpointPriceDescription
GET /paid/baidu-ocr$0.02General text OCR
GET /paid/baidu-ocr-accurate$0.02High-accuracy OCR
GET /paid/baidu-ocr-table$0.02Table structure OCR
GET /paid/baidu-idcard$0.02ID card recognition
GET /paid/baidu-tts?text=...$0.02Text-to-Speech (Chinese)
GET /paid/baidu-translate?text=...$0.01Multi-language translation
GET /paid/baidu-llm-chat?prompt=...$0.002/1K tokensERNIE chat (GPT-class LLM)
GET /paid/baidu-asr?audio=...$0.02Speech-to-Text
GET /paid/baidu-image-recognition?image=...$0.02Object/scene recognition
GET /paid/baidu-image-enhance?image=...$0.02Image enhancement
GET /paid/baidu-object-detect?image=...$0.02Object detection with bounding boxes
GET /paid/baidu-landmark?image=...$0.02Landmark recognition
GET /paid/baidu-face-detect?image=...$0.02Face detection & analysis
GET /paid/baidu-face-compare?image1=...&image2=...$0.021:1 face comparison
GET /paid/baidu-body-analysis?image=...$0.02Body/gesture analysis
GET /paid/baidu-gesture?image=...$0.02Hand gesture recognition
GET /paid/baidu-nlp?text=...$0.01NLP (lexer, sentiment, etc.)
GET /paid/baidu-sentiment?text=...$0.01Sentiment analysis
GET /paid/baidu-summary?text=...$0.01Text summarization
GET /paid/baidu-word-embedding?text=...$0.01Word vector embedding
GET /paid/baidu-text-correction?text=...$0.01Text error correction
GET /paid/baidu-comment-tag?text=...$0.01Comment opinion tag extraction
GET /paid/baidu-emotion?text=...$0.01Emotion detection in text
GET /paid/baidu-keyword?text=...$0.01Article keyword extraction
GET /paid/baidu-address?text=...$0.01Address parsing & structuring
GET /paid/baidu-text-similarity?text1=...&text2=...$0.01Short text similarity score
GET /paid/baidu-text-review?text=...$0.01Text content moderation
GET /paid/baidu-image-review?image=...$0.01Image content moderation
GET /paid/baidu-plant?image=...$0.02Plant species recognition
GET /paid/baidu-animal?image=...$0.02Animal species recognition
GET /paid/baidu-dish?image=...$0.02Dish/cuisine recognition
GET /paid/baidu-ingredient?image=...$0.02Fruit/vegetable recognition
GET /paid/baidu-currency?image=...$0.02Banknote/currency recognition
GET /paid/baidu-car-type?image=...$0.02Car make/model recognition
GET /paid/baidu-redwine?image=...$0.02Red wine label recognition
GET /paid/baidu-logo?image=...$0.02Brand logo recognition
GET /paid/baidu-ocr-handwrite?image=...$0.02Handwritten text OCR
GET /paid/baidu-ocr-vin?image=...$0.02VIN code OCR
GET /paid/baidu-image-colorize?image=...$0.02B&W photo colorization
GET /paid/baidu-style-trans?image=...$0.02Artistic style transfer
GET /paid/baidu-selfie-anime?image=...$0.02Portrait to anime conversion
GET /paid/baidu-dehaze?image=...$0.02Image dehazing
GET /paid/baidu-body-count?image=...$0.02People counting
GET /paid/baidu-body-keypoints?image=...$0.02Body skeleton keypoints
GET /paid/baidu-face-liveness?image=...$0.02Face liveness (anti-spoofing)
GET /paid/baidu-helixfold?seq=...$0.05Protein structure prediction

๐Ÿ’ณ Account & Payment

EndpointDescription
POST /paid/user/registerRegister for 20 free credits
GET /paid/plansPrepaid plans & pricing
POST /paid/paypal/create-orderCreate PayPal payment
POST /paid/paypal/captureCapture PayPal payment
POST /paid/alipay/create-orderCreate Alipay payment
GET /paid/alipay/queryQuery Alipay order status

๐Ÿ’ฐ How x402 Payments Work

1. Agent calls endpoint โ†’ 402 Payment Required
2. Wallet signs USDC tx on Base โ†’ sends payment payload
3. Server verifies on-chain โ†’ serves the data

No KYC. No subscription. No credit card required.

Powered by the x402 protocol โ€” decentralized micropayments for AI agents.

Accepting wallet: 0x7484b0bca25d2ee56e9b0535572d4cf44a047d98 (Base/USDC)


๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    HTTPS    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  MCP Client   โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ†’ โ”‚  GoldBean API Server  โ”‚
โ”‚  (Claude,     โ”‚ โ†โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚  v8.0.0 on VPS       โ”‚
โ”‚   Cursor,     โ”‚    402/200  โ”‚  port 9879            โ”‚
โ”‚   Cline)      โ”‚             โ”‚                      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜             โ”œโ”€โ”€ Baidu AI (OCR/TTS)  โ”‚
                              โ”œโ”€โ”€ CoinGecko (BTC)     โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”             โ”œโ”€โ”€ Etherscan (Gas)     โ”‚
โ”‚  Web Browser  โ”‚โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ†’ โ”‚โ”€โ”€ HelixFold3          โ”‚
โ”‚  (curl/REST)  โ”‚             โ”‚โ”€โ”€ PayPal/Alipay       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜             โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ† Platform Presence

PlatformStatusLink
public-apis (39.8kโญ)โœ… ListedView
awesome-mcp-servers (76kโญ)โœ… ListedView
Glama.aiโœ… ActiveScore โ†’
Smithery.aiโœ… DeployedView
npmโœ… Publishedgoldbean-mcp
Dev.toโœ… 6 articlesProfile
awesome-x402โœ… ListedView
MCPizeโœ… MonetizedView
MCP.Directoryโณ PendingSubmitted

๐Ÿ“– Documentation


๐Ÿค Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

Quick ways to help:

  • โญ Star this repo โ€” it helps others discover GoldBean
  • ๐Ÿ› Report bugs via GitHub Issues
  • ๐Ÿ“ Improve documentation
  • ๐ŸŒ Share on social media

๐Ÿ“„ License

MIT License โ€” see LICENSE for details.


GoldBean (GB) โ€” Wishing You Good Fortune & Prosperity ๐Ÿซ˜
Baidu AI APIs for Global Developers โ€” Pay-per-Use.