e904b667c6
Build/Publish Develop Docs / deploy (push) Failing after 1s
PaddleOCR Code Style Check / check-code-style (push) Failing after 1s
PaddleOCR PR Tests GPU / detect-changes (push) Failing after 1s
PaddleOCR PR Tests / detect-changes (push) Failing after 1s
PaddleOCR PR Tests GPU / test-pr-gpu (push) Has been cancelled
PaddleOCR PR Tests / test-pr (push) Has been cancelled
PaddleOCR PR Tests GPU / test-pr-gpu-impl (push) Has been cancelled
PaddleOCR PR Tests / test-pr-python (3.13) (push) Has been cancelled
PaddleOCR PR Tests / test-pr-python (3.8) (push) Has been cancelled
PaddleOCR PR Tests / test-pr-python (3.9) (push) Has been cancelled
1.3 KiB
1.3 KiB
comments
| comments |
|---|
| true |
PaddleOCR official API Overview
The PaddleOCR official API SDKs are client libraries for the PaddleOCR official API. They submit local files or file URLs to hosted PaddleOCR services, poll asynchronous jobs, and parse typed results. They do not run local PaddleOCR inference or load local models.
The current clients include Python, TypeScript, Go, and the paddleocr api command in the PaddleOCR CLI.
Authentication
First obtain an access token from the AI Studio Access Token page.
All SDKs and the CLI read PADDLEOCR_ACCESS_TOKEN by default:
export PADDLEOCR_ACCESS_TOKEN="your-access-token"
You can also pass the token explicitly when constructing a client or invoking the CLI. Missing or invalid credentials are reported through typed authentication errors.
Documentation Entry Points
- Python SDK: best for projects already using the
paddleocrPython package; provides syncPaddleOCRClientand asyncAsyncPaddleOCRClient. - TypeScript SDK: best for Node.js 18+ server-side projects.
- Go SDK: best for statically typed services that need context cancellation and binary deployment.
- CLI: best for scripts, debugging, and quick no-code validation.