Introduction
The Vanguard AI API is a Computer Vision & AI platform built for Lao documents. It extracts structured data from images (OCR), transcribes and synthesises speech (STT / TTS), and exposes a multi‑model LLM chat — all behind a single API key.
Base URLs
| Environment | Base URL |
|---|---|
| Production | https://api-ocr.vanguardinitiative.com |
| Local development | http://localhost:8000 |
What you can do
- OCR — read passports, ID cards, driving licenses, bank cards and enterprise registrations into clean JSON.
- Speech‑to‑Text — transcribe Lao and other languages from audio.
- Text‑to‑Speech — synthesise natural speech from text.
- Chat — stream responses from multiple LLM providers with tool use.
How the API is organised
- Control‑plane calls (auth, account, billing) use JSON.
- Document scans upload
multipart/form-data. - Long‑running work (STT, TTS) runs as asynchronous jobs you poll for completion.
- Every response uses the same envelope:
{ "status": "success" | "error", ... }.
Next steps
- Follow the Quickstart to make your first call in minutes.
- Learn how Authentication and API keys work.
- Browse the API Reference for every endpoint.