XiaoKe API Gateway: PDF OCR Scrape Translate Review SummarizeXiaoKe API Gateway

xiaoke-api1 pts0 comments

GitHub - y9695430-lang/xiaoke-api-gateway · GitHub

/" data-turbo-transient="true" />

Skip to content

Search or jump to...

Search code, repositories, users, issues, pull requests...

-->

Search

Clear

Search syntax tips

Provide feedback

--><br>We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Cancel

Submit feedback

Saved searches

Use saved searches to filter your results more quickly

-->

Name

Query

To see all available qualifiers, see our documentation.

Cancel

Create saved search

Sign in

/;ref_cta:Sign up;ref_loc:header logged out"}"<br>Sign up

Appearance settings

Resetting focus

You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.

Dismiss alert

{{ message }}

y9695430-lang

xiaoke-api-gateway

Public

Notifications<br>You must be signed in to change notification settings

Fork

Star

main

BranchesTags

Go to file

CodeOpen more actions menu

Folders and files<br>NameNameLast commit message<br>Last commit date<br>Latest commit

History<br>2 Commits<br>2 Commits

README.md

README.md

index.html

index.html

main.py

main.py

railway.toml

railway.toml

requirements.txt

requirements.txt

View all files

Repository files navigation

XiaoKe API Gateway

7 micro-APIs for AI agents. Pay via x402/USDC. Zero auth. Zero KYC.

AI agents discover, pay, and call autonomously — no human in the loop.

Services

Endpoint<br>Price<br>Description

POST /pdf<br>$0.01<br>PDF → structured JSON with table extraction

POST /scrape<br>$0.02<br>Any URL → clean Markdown

POST /ocr<br>$0.015<br>Image → text (Apple Vision OCR)

POST /review<br>$0.03<br>Code review → security & quality report

POST /translate<br>$0.01<br>Translate between 20+ languages

POST /summarize<br>$0.01<br>Long text → key sentences (extractive)

POST /md2html<br>$0.005<br>Markdown → styled HTML (GitHub/Dark/Minimal)

How It Works

AI Agent → POST /scrape → 402 Payment Required<br>AI Agent → Pays USDC on Base → Retries with X-x402-Payment header<br>AI Agent → Gets result ✅

Tech Stack

Framework : FastAPI (Python)

PDF : pdfplumber

Scraping : requests + BeautifulSoup4

OCR : Apple Vision (macOS) / PIL fallback

Payments : x402 protocol (USDC on Base)

Deploy : Railway / Render / any Docker host

Quick Start

pip install -r requirements.txt<br>uvicorn main:app --host 0.0.0.0 --port 8765

Then visit http://localhost:8765/docs for interactive Swagger docs.

Live Demo

https://xiaoke-pdf-api.loca.lt — Try GET /pricing or see x402 in action with POST /scrape

License

MIT — build your own, list on AgenticTrade, keep 100% revenue.

About

No description, website, or topics provided.

Resources

Readme

Uh oh!

There was an error while loading. Please reload this page.

Activity

Stars

stars

Watchers

watching

Forks

forks

Report repository

Releases

No releases published

Packages

Uh oh!

There was an error while loading. Please reload this page.

Contributors

Uh oh!

There was an error while loading. Please reload this page.

Languages

Python<br>77.3%

HTML<br>22.7%

You can’t perform that action at this time.

post reload xiaoke gateway search scrape

Related Articles