Goldbean Api

GoldBean API

Pay-per-call AI API marketplace bridging Baidu AI to the global agent economy. 47 endpoints covering OCR, speech recognition, image generation, TTS, LLM chat,…

AI & machine learning#machine-learning

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Pay-per-call AI API marketplace bridging Baidu AI to the global agent economy. 47 endpoints covering OCR, speech recognition, image generation, TTS, LLM chat, translation, and more. x402-native payments with USDC on Base. MCP-compatible.

Endpoints 37

OCR

  • GETBaidu OCR (general)/paid/baidu-ocr?url=https://example.comGeneral-purpose text recognition.
  • GETBaidu OCR (high-accuracy)/paid/baidu-ocr-accurate?url=https://example.comHigh-accuracy OCR for complex images.
  • GETID card recognition/paid/baidu-idcard?url=https://example.comChinese ID card OCR.

Speech

  • GETText-to-speech/paid/baidu-tts?text=stringBaidu TTS with multiple voices. Returns MP3.
  • GETSpeech recognition/paid/baidu-asr?url=https://example.comBaidu ASR. Audio to text.

LLM

  • GETERNIE LLM chat/paid/baidu-llm-chat?message=stringBaidu ERNIE LLM chat completion.
  • GETNLP analysis/paid/baidu-nlp?text=stringSentiment analysis, keyword extraction.
  • GETHelixFold protein prediction/paid/baidu-helixfold?sequence=stringProtein structure from amino acid sequence.

Image

  • GETImage recognition/paid/baidu-image-recognition?url=https://example.comObject and scene recognition.
  • GETImage enhancement/paid/baidu-image-enhance?url=https://example.comDenoising, dehazing, contrast.
  • GETFace detection/paid/baidu-face-detect?url=https://example.comFace location, age, gender, expression.
  • GETBody analysis/paid/baidu-body-analysis?url=https://example.comKeypoint detection, gesture recognition.

Translation

  • GETBaidu Translate/paid/baidu-translate?q=string&from=string&to=stringMulti-language translation.

Payment

  • GETPricing plans/api/pricing/plansAvailable plans and credit packages.
  • GETEndpoint pricing/api/pricing/endpoint?endpoint=stringPricing for a specific endpoint.
  • POSTRegister user/paid/user/registerRegister and get user ID + free credits.
  • POSTCreate PayPal order/paid/paypal/create-orderCreate PayPal order for credits.
  • POSTCapture PayPal payment/paid/paypal/captureCapture payment and add credits.
  • GETCheck credits/user/creditsCheck remaining credits.
  • GETVerify payment/paid/verifyVerify x402 on-chain payment.

System

  • GETHealth check/healthService health status and version.
  • GETService info/infoAPI name, version, auth method, route count.
  • GETx402 discovery/.well-known/x402.jsonx402 service discovery endpoint.
  • GETMCP server card/.well-known/mcp.jsonMCP server card with 21 tool capabilities.
  • GETx402 Bazaar/.well-known/x402-bazaarBazaar listing. Free: 50 calls/day, Standard: 0.01 USD/call.
  • GETLLM-readable catalog/llms.txtComplete endpoint catalog for LLMs.
  • GETOpenAPI spec/openapi.jsonOpenAPI 3.1 specification.
  • GETList all routes/api/routesAll registered routes by type.
  • GETGas price/gasCurrent Base network gas price.
  • GETBitcoin price/btc-priceCurrent BTC price in USD.
  • GETWeather/weather-now?city=stringCurrent weather for a city.

OpenAI-Compatible

  • POSTChat completions/v1/chat/completionsOpenAI-compatible chat completions via ERNIE.
  • GETList models/v1/modelsOpenAI-compatible model listing.
  • POSTImage generation/v1/images/generationsOpenAI-compatible image generation.
  • POSTText to speech/v1/audio/speechOpenAI-compatible TTS.
  • POSTSpeech to text/v1/audio/transcriptionsOpenAI-compatible transcription.
  • POSTEmbeddings/v1/embeddingsOpenAI-compatible embeddings via Baidu.

API details

Base URL
https://goldbean-api.xyz
Authentication
HTTP x402 authentication
Operations
37 operations on 37 pathsGET 29POST 8
Main resources
System 11Payment 7OpenAI-Compatible 6Image 4LLM 3OCR 3Speech 2Translation 1
Description format
OpenAPI 3.1.0, API version 8.0.0

How to test the GoldBean API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the GoldBean API collection, without the publisher's secrets.
  3. Add your credentialsThis API uses HTTP x402 authentication. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Baidu OCR (general)” (GET /paid/baidu-ocr?url=https://example.com), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the GoldBean API?

Pay-per-call AI API marketplace bridging Baidu AI to the global agent economy. 47 endpoints covering OCR, speech recognition, image generation, TTS, LLM chat,… It is listed under AI & machine learning and has 37 endpoints.

Who publishes the GoldBean API?

It is listed from Goldbean Api's public API description (an OpenAPI document), not published by Goldbean Api on Swastik Codes. Anyone who controls goldbean-api.xyz can claim the profile by adding a DNS TXT record.

What is the base URL of the GoldBean API?

Requests go to https://goldbean-api.xyz. Endpoint paths are added to this base URL.

How do I authenticate with the GoldBean API?

With HTTP x402 authentication.

How many endpoints does the GoldBean API have?

37 operations on 37 paths (29 GET, 8 POST). The largest groups are System, Payment, OpenAI-Compatible, Image.

Is forking the GoldBean API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.