๐ซ GoldBean โ Payment-Powered AI API Gateway
Access Baidu AI (OCR, Translation, TTS, ASR, LLM) from anywhere โ no Chinese phone number required
GoldBean is a pay-per-use AI API gateway. Access Baidu AI products (OCR, TTS, ASR, Translation, NLP, Face Detection, Image Analysis) and HelixFold3 protein structure prediction โ all through a unified API with x402 USDC micropayments.
No subscription. No KYC. Pay cents per call.
โจ Features
| Feature | Details |
|---|---|
| 23+ API Routes | OCR, TTS, ASR, Translation, LLM Chat, Face Detection, NLP, Image, HelixFold3 |
| x402 Micropayments | Pay $0.01โ$0.05 per call with USDC on Base network |
| Free Tier | 20 free API calls per registration โ no wallet needed |
| PayPal & Alipay | Also supported for prepaid credits |
| MCP Compatible | Works with Cursor, Claude Desktop, Cline, Codex, Continue |
| Baidu AI Powered | Enterprise-grade AI from China's leading AI platform |
| HelixFold3 | Nature-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 โ 20 free API calls, no wallet required
- โ 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"
๐ก API Endpoints
๐ Free System Endpoints
| Endpoint | Description |
|---|---|
GET /health | Service health check |
GET /btc-price | Bitcoin real-time price ($) |
GET /weather-now?city=Lanzhou | Current weather in any city |
GET /gas | Ethereum gas price (Gwei) |
GET /.well-known/x402-bazaar | x402 payment discovery |
GET /api/routes | Full route registry |
๐ฏ Baidu AI Endpoints (Pay-per-Call)
| Endpoint | Price | Description |
|---|---|---|
GET /paid/baidu-ocr | $0.01 | General text OCR |
GET /paid/baidu-ocr-accurate | $0.02 | High-accuracy OCR |
GET /paid/baidu-idcard | $0.02 | ID card recognition |
GET /paid/baidu-tts?text=... | $0.01 | Text-to-Speech (Chinese) |
GET /paid/baidu-translate?text=... | $0.01 | Multi-language translation |
GET /paid/baidu-llm-chat?prompt=... | $0.03 | ERNIE chat (GPT-class LLM) |
GET /paid/baidu-asr?audio=... | $0.03 | Speech-to-Text |
GET /paid/baidu-image-recognition?image=... | $0.02 | Object/scene recognition |
GET /paid/baidu-image-enhance?image=... | $0.02 | Image enhancement |
GET /paid/baidu-face-detect?image=... | $0.02 | Face detection & analysis |
GET /paid/baidu-body-analysis?image=... | $0.02 | Body/gesture analysis |
GET /paid/baidu-nlp?text=... | $0.02 | NLP (lexer, sentiment, etc.) |
GET /paid/baidu-helixfold?seq=... | $0.05 | Protein structure prediction |
๐ณ Account & Payment
| Endpoint | Description |
|---|---|
POST /paid/user/register | Register for 20 free credits |
GET /paid/plans | Prepaid plans & pricing |
POST /paid/paypal/create-order | Create PayPal payment |
POST /paid/paypal/capture | Capture PayPal payment |
POST /paid/alipay/create-order | Create Alipay payment |
GET /paid/alipay/query | Query 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
| Platform | Status | Link |
|---|---|---|
| public-apis (39.8kโญ) | โ Listed | View |
| awesome-mcp-servers (76kโญ) | โ Listed | View |
| Glama.ai | โ Active | Score โ |
| Smithery.ai | โ Deployed | View |
| MCP.Directory | โ Submitted | Pending review |
| npm | โ Published | goldbean-mcp |
| Dev.to | โ 6 articles | Profile |
๐ Documentation
- API Reference: https://goldbean-api.xyz/openapi.json
- Route Registry: https://goldbean-api.xyz/api/routes
- x402 Bazaar: https://goldbean-api.xyz/.well-known/x402-bazaar
- Pricing: https://goldbean-api.xyz/paid/plans
- MCP Config: https://goldbean-api.xyz/.well-known/mcp.json
๐ค 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 ๐ซ <br> Pay-per-use AI for everyone.