Skip to main content

OpenThai 2.0 Legal free API extended to 30 September 2026

· 2 min read
Kobkrit Viriyayudhakorn
CEO @ iApp Technology

OpenThai 2.0 Legal — open-weight Thai legal LLM

The free period of the hosted OpenThai 2.0 Legal API was scheduled to end on 24 August 2026. We are extending it: the API remains free through 30 September 2026 with any free iApp API key.

In its first month the endpoint served nearly 2,000 requests from 88 registered developers — lawyers, legal-tech builders and researchers asking real Thai legal questions and getting answers grounded in the current statute text. The extra five weeks give everyone still evaluating the model time to finish their integration on the free tier.

What you get during the free period

The hosted API is the full production setup, not a trial build:

  • RAG built in — every request hybrid-searches a 39-law, 6,300-section Thai statute corpus and grounds the answer in the current law text, returning the exact sections used in a retrieved_documents array.
  • OpenAI-compatible — the OpenAI SDK works unchanged; point base_url at the endpoint.
  • Verifiable citations — answers cite the applicable law and มาตรา in a fixed JSON contract.
  • Rate limit 30 requests/minute; a free iApp API key is the only requirement (registerAPI Keys).
from openai import OpenAI
client = OpenAI(base_url="https://api.iapp.co.th/v3/llm/openthai2p0-legal",
api_key="YOUR_IAPP_API_KEY")

r = client.chat.completions.create(
model="openthai2.0-legal",
messages=[{"role": "user", "content": "ลักทรัพย์ในเวลากลางคืน ผิดมาตราใด"}],
max_tokens=1024,
)
print(r.choices[0].message.content)
print(r.model_extra.get("retrieved_documents"))

After 30 September 2026

The endpoint stays available at standard Thanoy-rate pricing: 0.01 / 0.02 IC per 1K input / output tokens. Nothing else changes — same URL, same key, same RAG-connected behavior.

The model itself remains open weight regardless of the promo: download it from Hugging Face and self-host it on a single 24 GB GPU, with our Open WebUI & OpenThaiRAG tutorial covering the retrieval stack.

Questions or production deployments: sale@iapp.co.th · 086-322-5858 · Discord