This site aims to help people become more proficient in Thai through our state-of-the-art AI-backed translator.
frontend: https://khongchai.github.io/SonThaiMaiDai/frontend/index.html
backend: https://son-thai-mai-dai.vercel.app/api
Check your dms for the OpenAI's Api key.
- POST /api/translate
interface TranslateRequest {
sentence: string; // soft-max 50 characters. (ถ้าให้เกิน 50 ได้ 200 ครับแต่จะโดนด่า)
}
interface TranslateResponse {
result: string; // same key as request.
}
- GET /api/ping
interface PingResponse {
data: "pong";
}
- GET /api/wordoftheday
interface WordOfTheDayResponse {
thaiWord: string;
englishWord: string;
}
- GET /api/tired
interface TiredResponse {
result: string;
}