เปิดตัวใหม่! ใช้ AI สรุปเอกสารฟรี 10 ครั้งแรก
🎉 ลองเลย →

📘 API Documentation

PDFThai REST API v1 · Base URL: https://siampdf.com/api/v1

🔑 Authentication

ใช้ API Key ใน Authorization header:

Authorization: Bearer sk_live_xxxxx

🚀 Quick Start

# รวมไฟล์ PDF
curl -X POST https://siampdf.com/api/v1/tools/merge \
  -H "Authorization: Bearer sk_live_xxx" \
  -F "files[]=@file1.pdf" \
  -F "files[]=@file2.pdf"

# OCR ภาษาไทย
curl -X POST https://siampdf.com/api/v1/tools/ocr \
  -H "Authorization: Bearer sk_live_xxx" \
  -F "file=@scan.jpg" \
  -F "language=tha+eng"

# AI Chat
curl -X POST https://siampdf.com/api/v1/ai/chat \
  -H "Authorization: Bearer sk_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{"file_id":"xxx","message":"สรุปเอกสารให้หน่อย"}'

📋 Endpoints

POST /api/v1/tools/merge รวม PDF หลายไฟล์ 1 credits
POST /api/v1/tools/split แยก PDF 1 credits
POST /api/v1/tools/compress บีบอัด PDF 2 credits
POST /api/v1/tools/ocr OCR ภาษาไทย 5 credits
POST /api/v1/tools/convert แปลง PDF ↔ Office 3 credits
POST /api/v1/ai/chat Chat กับ PDF 3 credits
POST /api/v1/ai/summarize AI สรุปเอกสาร 3 credits
POST /api/v1/ai/translate AI แปลภาษา 10 credits
POST /api/v1/files Upload ไฟล์ 0 credits
GET /api/v1/jobs/{id} ดูสถานะงาน 0 credits
💚