Skip to main content

Thanoy Legal AI Chatbot

Token-Based Pricing
Input: 0.01 IC / 1K tokens (~10 THB/1M, ~$0.30/1M)Output: 0.02 IC / 1K tokens (~20 THB/1M, ~$0.60/1M)
v1.0 Active POST /v3/store/llm/thanoy-legal-ai

Welcome to iApp Thanoy Legal AI Chatbot, an AI-powered legal consultant developed by iApp Technology Co., Ltd. Our API provides intelligent legal advice and consultation through an advanced chatbot system.

Try Demo

Try Our AI Demo

Login or create a free account to use this AI service demo and explore our powerful APIs.

Get 100 Free Credits (IC) when you sign up!

Offer ends December 31, 2025

Thanoy Legal AI Chat

Start a conversation with the AI assistant

Type your message below and press Enter or click Send

Getting Started

  1. Prerequisites

    • An API key from iApp Technology
    • Legal query text in Thai
    • Internet connection
  2. Quick Start

    • Fast legal consultation responses
    • Simple REST API interface
    • Comprehensive legal advice
  3. Key Features

    • AI-powered legal consultation
    • 15-second response time
    • Access to 10,000+ legal articles
    • Unbiased legal information
  4. Security & Compliance

    • GDPR and PDPA compliant
    • No data retention after processing
How to get API Key?

Please visit API Key Management page to view your existing API key or request a new one.

Code Examples

Request

curl -X POST 'https://api.iapp.co.th/thanoy' \
--header 'apikey: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"query": "โดนโจรตีหัว ผิดมาตราอะไรอ่ะครับ"
}'

Response

{
"token_size": {
"input_text": 329,
"output_text": 890,
"total": 1219
},
"response": [
{
"text": "สวัสดีครับ! ผมทนอย ที่ปรึกษาทางกฎหมายจาก iApp Technology ยินดีให้บริการครับผม!\n\nกรณีที่โดนโจรตีหัวเนี่ย มันขึ้นอยู่กับความรุนแรงของการกระทำและผลกระทบที่เกิดขึ้นนะครับ...",
"type": "text"
}
],
"responseType": "gpt",
"query": "โดนโจรตีหัว ผิดมาตราอะไรอ่ะครับ"
}

Features & Capabilities

Core Features

  • Rapid Legal Consultations: Delivers swift legal responses within 15 seconds.
  • Comprehensive Legal Knowledge: Trained on a database of over 10,000 legal articles to ensure accurate and unbiased answers.
  • Efficiency for Legal Professionals: Streamlines workflows by handling repetitive and common legal inquiries.

Use Cases

  • Enhanced Legal Collaboration: Assists legal professionals in improving the efficiency of legal processes.
  • AI-Powered Legal Chatbot: Implements a chatbot system for providing immediate legal consultations.
  • Legal Tutoring System: Supports legal exam preparation and detailed legal analysis for students and professionals.

API Endpoints

EndpointMethodDescriptionCost
/v3/store/llm/thanoy-legal-ai
/thanoy (legacy)
POSTAI-powered legal consultation chatbot - provides legal advice in Thai0.01 IC/1K input + 0.02 IC/1K output tokens

API Reference

ParameterTypeDescription
API KeyStringYour API key

Body Parameters

ParameterTypeDescription
queryStringThe question string that you need to input to API

Code Example

Python

import requests
import json

url = "https://api.iapp.co.th/thanoy"

payload = json.dumps({
"query": "{YOUR QUESTION ABOUT LAW & REGULATION}"
})
headers = {
'apikey': '{YOUR_API_KEY}',
'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

JavaScript

const axios = require('axios');
let data = JSON.stringify({
"query": "{YOUR QUESTION ABOUT LAW & REGULATION}"
});

let config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://api.iapp.co.th/thanoy',
headers: {
'apikey': '{YOUR_API_KEY}',
'Content-Type': 'application/json'
},
data : data
};

axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});

PHP

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.iapp.co.th/thanoy',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"query": "{YOUR QUESTION ABOUT LAW & REGULATION}"
}',
CURLOPT_HTTPHEADER => array(
'apikey: {YOUR_API_KEY}',
'Content-Type: application/json'
),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Swift

let parameters = "{\n  \"query\": \"{YOUR QUESTION ABOUT LAW & REGULATION}\"\n}"
let postData = parameters.data(using: .utf8)

var request = URLRequest(url: URL(string: "https://api.iapp.co.th/thanoy")!,timeoutInterval: Double.infinity)
request.addValue("{YOUR_API_KEY}", forHTTPHeaderField: "apikey")
request.addValue("application/json", forHTTPHeaderField: "Content-Type")

request.httpMethod = "POST"
request.httpBody = postData

let task = URLSession.shared.dataTask(with: request) { data, response, error in
guard let data = data else {
print(String(describing: error))
return
}
print(String(data: data, encoding: .utf8)!)
}

task.resume()

Kotlin

val client = OkHttpClient()
val mediaType = "application/json".toMediaType()
val body = "{\n \"query\": \"{YOUR QUESTION ABOUT LAW & REGULATION}\"\n}".toRequestBody(mediaType)
val request = Request.Builder()
.url("https://api.iapp.co.th/thanoy")
.post(body)
.addHeader("apikey", "{YOUR_API_KEY}")
.addHeader("Content-Type", "application/json")
.build()
val response = client.newCall(request).execute()

Java

OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"query\": \"{YOUR QUESTION ABOUT LAW & REGULATION}\"\n}");
Request request = new Request.Builder()
.url("https://api.iapp.co.th/thanoy")
.method("POST", body)
.addHeader("apikey", "{YOUR_API_KEY}")
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();

Dart

var headers = {
'apikey': '{YOUR_API_KEY}',
'Content-Type': 'application/json'
};
var request = http.Request('POST', Uri.parse('https://api.iapp.co.th/thanoy'));
request.body = json.encode({
"query": "{YOUR QUESTION ABOUT LAW & REGULATION}"
});
request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
print(await response.stream.bytesToString());
}
else {
print(response.reasonPhrase);
}

Pricing

AI API Service NameEndpointIC CostOn-Premise
Thanoy Legal AI Chatbot [v1.0]/v3/store/llm/thanoy-legal-ai

Input: 0.01 IC / 1K tokens (~10 THB/1M, ~$0.30/1M)
Output: 0.02 IC / 1K tokens (~20 THB/1M, ~$0.60/1M)

Contact