ðð° Thai Question Generator
ðð° āļĢāļ°āļāļāļŠāļĢāđāļēāļāļāļģāļāļēāļĄāļ āļēāļĐāļēāđāļāļĒāļāļąāļāđāļāļĄāļąāļāļī
Welcome to iApp Thai Question Generator API, an AI product developed by iApp Technology Co., Ltd. Our API provides powerful question generation capabilities for Thai language content, automatically creating relevant questions and answers from input text.
Try Demo
Visit our API Portal to test the Thai Question Generator API with your own text.
Getting Startedâ
-
Prerequisites
- An API key from iApp Technology
- Thai text input
- Internet connection
-
Quick Start
- Fast question generation
- Simple REST API interface
- Questions with corresponding answers
-
Key Features
- Automated question-answer generation
- Natural language understanding
- Fast response time
- Easy integration
-
Security & Compliance
- GDPR and PDPA compliant
- No data retention after processing
How to get API Key?
Please visit API Portal to view your existing API key or request a new one.
Exampleâ
Question Generation Requestâ
curl --location --request GET 'http://api.iapp.co.th/qa-generator-th?text=āļāļĄāļāļđāļāļ āļēāļĐāļēāđāļāļĒ&apikey={Your API KEY}'
Question Generation Responseâ
{
"QA": [
{
"answer": "āđāļāļĒ",
"question": "āļāļąāļāļāļđāļāļ āļēāļĐāļēāļāļ°āđāļĢ"
}
],
"context": "āļāļĄāļāļđāļāļ āļēāļĐāļēāđāļāļĒ",
"number": 1,
"time_process": 0.6306812763214111
}
Features & Capabilitiesâ
Core Featuresâ
- Automated Thai Question Generation: Generates relevant questions based on input Thai text, such as articles, textbooks, or any knowledge source.
- Context-Aware Questioning: Utilizes advanced Natural Language Processing (NLP) techniques to create questions that align with the context of the input text.
- Supports Various Question Types: Generates multiple types of questions, including factual, descriptive, and inferential questions.
Supported Fieldsâ
- Input: Thai text as a knowledge source for question generation.
- Output: Generated questions and answer in Thai based on the input context.
Additional Capabilitiesâ
- Easy integration through RESTful API for seamless usage in applications.
- Designed for educational platforms, quiz systems, and knowledge evaluation tools.
API Referenceâ
GET
http://api.iapp.co.th/qa-generator-th
Path Parametersâ
Name | Type | Description |
---|---|---|
text | String | String what you want to generate to question and anwser |
Headersâ
Name | Type | Description |
---|---|---|
apikey | String | The API Key to call this API |
Response Bodyâ
Name | Type | Description |
---|---|---|
QA | Array | Array of question and answer |
question | String | Generated question from original text |
answer | String | Gnerated answer from original text |
context | String | Original text |
number | Integer | Number of generated question |
time_process | Float | time to process questions |
Code Examplesâ
Pythonâ
import requests
url = "http://api.iapp.co.th/qa-generator-th?text=āļāļĢāļļāļāđāļāļāļĄāļŦāļēāļāļāļĢ āđāļāđāļāđāļĄāļ·āļāļāļŦāļĨāļ§āļāđāļĨāļ°āļāļāļĢāļāļĩāđāļĄāļĩāļāļĢāļ°āļāļēāļāļĢāļĄāļēāļāļāļĩāđāļŠāļļāļāļāļāļāļāļĢāļ°āđāļāļĻāđāļāļĒ āđāļāđāļāļĻāļđāļāļĒāđāļāļĨāļēāļāļāļēāļĢāļāļāļāļĢāļāļ āļāļēāļĢāļĻāļķāļāļĐāļē āļāļēāļĢāļāļĄāļāļēāļāļĄāļāļāļŠāđāļ āļāļēāļĢāđāļāļīāļāļāļēāļĢāļāļāļēāļāļēāļĢ āļāļēāļĢāļāļēāļāļīāļāļĒāđ āļāļēāļĢāļŠāļ·āđāļāļŠāļēāļĢ āđāļĨāļ°āļāļ§āļēāļĄāđāļāļĢāļīāļāļāļāļāļāļĢāļ°āđāļāļĻ āđāļāđāļāđāļĄāļ·āļāļāļāļĩāđāļĄāļĩāļāļ·āđāļāļĒāļēāļ§āļāļĩāđāļŠāļļāļāđāļāđāļĨāļ āļāļąāđāļāļāļĒāļđāđāļāļāļŠāļēāļĄāđāļŦāļĨāļĩāđāļĒāļĄāļāļēāļāđāļĄāđāļāđāļģāđāļāđāļēāļāļĢāļ°āļĒāļē āļĄāļĩāđāļĄāđāļāđāļģāđāļāđāļēāļāļĢāļ°āļĒāļēāđāļŦāļĨāļāđāļēāļāđāļĨāļ°āđāļāđāļāđāļĄāļ·āļāļāļāļāļāđ āļāđāļ 2 āļāļąāđāļ āļāļ·āļ āļāļąāđāļāļāļĢāļ°āļāļāļĢāđāļĨāļ°āļāļąāđāļāļāļāļāļļāļĢāļĩ āļāļĢāļļāļāđāļāļāļĄāļŦāļēāļāļāļĢāļĄāļĩāļāļ·āđāļāļāļĩāđāļāļąāđāļāļŦāļĄāļ 1,568.737 āļāļĢ.āļāļĄ. āļĄāļĩāļāļĢāļ°āļāļēāļāļĢāļāļēāļĄāļāļ°āđāļāļĩāļĒāļāļĢāļēāļĐāļāļĢāļāļ§āđāļē 5 āļĨāđāļēāļāļāļ āļāļģāđāļŦāđāļāļĢāļļāļāđāļāļāļĄāļŦāļēāļāļāļĢāđāļāđāļāđāļāļāļāļāļĢ (Primate City) āļāļąāļ āļĄāļĩāļāļđāđāļāļĨāđāļēāļ§āļ§āđāļē āļāļĢāļļāļāđāļāļāļĄāļŦāļēāļāļāļĢāđāļāđāļ âāđāļāļāļāļāļĢāļāļĩāđāļŠāļļāļāđāļāđāļĨāļâ āđāļāļĢāļēāļ°āļĄāļĩāļāļĢāļ°āļāļēāļāļĢāļĄāļēāļāļāļ§āđāļēāļāļāļĢāļāļĩāđāļĄāļĩāļāļĢāļ°āļāļēāļāļĢāļĄāļēāļāđāļāđāļāļāļąāļāļāļąāļ 2 āļāļķāļ 40 āđāļāđāļē"
payload = {}
headers = {
'apikey': 'YOUR_API_KEY'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
JavaScriptâ
const axios = require('axios');
let config = {
method: 'get',
maxBodyLength: Infinity,
url: 'http://api.iapp.co.th/qa-generator-th?text=āļāļĢāļļāļāđāļāļāļĄāļŦāļēāļāļāļĢ āđāļāđāļāđāļĄāļ·āļāļāļŦāļĨāļ§āļāđāļĨāļ°āļāļāļĢāļāļĩāđāļĄāļĩāļāļĢāļ°āļāļēāļāļĢāļĄāļēāļāļāļĩāđāļŠāļļāļāļāļāļāļāļĢāļ°āđāļāļĻāđāļāļĒ āđāļāđāļāļĻāļđāļāļĒāđāļāļĨāļēāļāļāļēāļĢāļāļāļāļĢāļāļ āļāļēāļĢāļĻāļķāļāļĐāļē āļāļēāļĢāļāļĄāļāļēāļāļĄāļāļāļŠāđāļ āļāļēāļĢāđāļāļīāļāļāļēāļĢāļāļāļēāļāļēāļĢ āļāļēāļĢāļāļēāļāļīāļāļĒāđ āļāļēāļĢāļŠāļ·āđāļāļŠāļēāļĢ āđāļĨāļ°āļāļ§āļēāļĄāđāļāļĢāļīāļāļāļāļāļāļĢāļ°āđāļāļĻ āđāļāđāļāđāļĄāļ·āļāļāļāļĩāđāļĄāļĩāļāļ·āđāļāļĒāļēāļ§āļāļĩāđāļŠāļļāļāđāļāđāļĨāļ āļāļąāđāļāļāļĒāļđāđāļāļāļŠāļēāļĄāđāļŦāļĨāļĩāđāļĒāļĄāļāļēāļāđāļĄāđāļāđāļģāđāļāđāļēāļāļĢāļ°āļĒāļē āļĄāļĩāđāļĄāđāļāđāļģāđāļāđāļēāļāļĢāļ°āļĒāļēāđāļŦāļĨāļāđāļēāļāđāļĨāļ°āđāļāđāļāđāļĄāļ·āļāļāļāļāļāđāļāđāļ 2 āļāļąāđāļ āļāļ·āļ āļāļąāđāļāļāļĢāļ°āļāļāļĢāđāļĨāļ°āļāļąāđāļāļāļāļāļļāļĢāļĩ āļāļĢāļļāļāđāļāļāļĄāļŦāļēāļāļāļĢāļĄāļĩāļāļ·āđāļāļāļĩāđāļāļąāđāļāļŦāļĄāļ 1,568.737 āļāļĢ.āļāļĄ. āļĄāļĩāļāļĢāļ°āļāļēāļāļĢāļāļēāļĄāļāļ°āđāļāļĩāļĒāļāļĢāļēāļĐāļāļĢāļāļ§āđāļē 5 āļĨāđāļēāļāļāļ āļāļģāđāļŦāđāļāļĢāļļāļāđāļāļāļĄāļŦāļēāļāļāļĢāđāļāđāļāđāļāļāļāļāļĢ (Primate City) āļāļąāļ āļĄāļĩāļāļđāđāļāļĨāđāļēāļ§āļ§āđāļē āļāļĢāļļāļāđāļāļāļĄāļŦāļēāļāļāļĢāđāļāđāļ âāđāļāļāļāļāļĢāļāļĩāđāļŠāļļāļāđāļāđāļĨāļâ āđāļāļĢāļēāļ°āļĄāļĩāļāļĢāļ°āļāļēāļāļĢāļĄāļēāļāļāļ§āđāļēāļāļāļĢāļāļĩāđāļĄāļĩāļāļĢāļ°āļāļēāļāļĢāļĄāļēāļāđāļāđāļāļāļąāļāļāļąāļ 2 āļāļķāļ 40 āđāļāđāļē',
headers: {
'apikey': 'YOUR_API_KEY'
}
};
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 => 'http://api.iapp.co.th/qa-generator-th?text=%E0%B8%81%E0%B8%A3%E0%B8%B8%E0%B8%87%E0%B9%80%E0%B8%97%E0%B8%9E%E0%B8%A1%E0%B8%AB%E0%B8%B2%E0%B8%99%E0%B8%84%E0%B8%A3%20%E0%B9%80%E0%B8%9B%E0%B9%87%E0%B8%99%E0%B9%80%E0%B8%A1%E0%B8%B7%E0%B8%AD%E0%B8%87%E0%B8%AB%E0%B8%A5%E0%B8%A7%E0%B8%87%E0%B9%81%E0%B8%A5%E0%B8%B0%E0%B8%99%E0%B8%84%E0%B8%A3%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%A1%E0%B8%B5%E0%B8%9B%E0%B8%A3%E0%B8%B0%E0%B8%8A%E0%B8%B2%E0%B8%81%E0%B8%A3%E0%B8%A1%E0%B8%B2%E0%B8%81%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%AA%E0%B8%B8%E0%B8%94%E0%B8%82%E0%B8%AD%E0%B8%87%E0%B8%9B%E0%B8%A3%E0%B8%B0%E0%B9%80%E0%B8%97%E0%B8%A8%E0%B9%84%E0%B8%97%E0%B8%A2%20%E0%B9%80%E0%B8%9B%E0%B9%87%E0%B8%99%E0%B8%A8%E0%B8%B9%E0%B8%99%E0%B8%A2%E0%B9%8C%E0%B8%81%E0%B8%A5%E0%B8%B2%E0%B8%87%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%9B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3%E0%B9%80%E0%B8%9B%E0%B9%87%E0%B8%99%20%E2%80%98%E0%B9%80%E0%B8%AD%E0%B8%81%E0%B8%99%E0%B8%84%E0%B8%A3%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%AA%E0%B8%B8%E0%B8%94%E0%B9%83%E0%B8%99%E0%B9%82%E0%B8%A5%E0%B8%81%E2%80%99%20%E0%B9%80%E0%B8%9E%E0%B8%A3%E0%B8%B2%E0%B8%B0%E0%B8%A1%E0%B8%B5%E0%B8%9B%E0%B8%A3%E0%B8%B0%E0%B8%8A%E0%B8%B2%E0%B8%81%E0%B8%A3%E0%B8%A1%E0%B8%B2%E0%B8%81%E0%B8%81%E0%B8%A7%E0%B9%88%E0%B8%B2%E0%B8%99%E0%B8%84%E0%B8%A3%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%A1%E0%B8%B5%E0%B8%9B%E0%B8%A3%E0%B8%B0%E0%B8%8A%E0%B8%B2%E0%B8%81%E0%B8%A3%E0%B8%A1%E0%B8%B2%E0%B8%81%E0%B9%80%E0%B8%9B%E0%B9%87%E0%B8%99%E0%B8%AD%E0%B8%B1%E0%B8%99%E0%B8%94%E0%B8%B1%E0%B8%9A%202%20%E0%B8%96%E0%B8%B6%E0%B8%87%2040%20%E0%B9%80%E0%B8%97%E0%B9%88%E0%B8%B2',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'apikey: YOUR_API_KEY'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Swiftâ
var request = URLRequest(url: URL(string: "http://api.iapp.co.th/qa-generator-th?text=%E0%B8%81%E0%B8%A3%E0%B8%B8%E0%B8%87%E0%B9%80%E0%B8%97%E0%B8%9E%E0%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0%B8%99%E0%B8%84%E0%B8%A3%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%A1%E0%B8%B5%E0%B8%9B%E0%B8%A3%E0%B8%B0%E0%B8%8A%E0%B8%B2%E0%B8%81%E0%B8%A3%E0%B8%A1%E0%B8%B2%E0%B8%81%E0%B9%80%E0%B8%9B%E0%B9%87%E0%B8%99%E0%B8%AD%E0%B8%B1%E0%B8%99%E0%B8%94%E0%B8%B1%E0%B8%9A%202%20%E0%B8%96%E0%B8%B6%E0%B8%87%2040%20%E0%B9%80%E0%B8%97%E0%B9%88%E0%B8%B2")!,timeoutInterval: Double.infinity)
request.addValue("YOUR_API_KEY", forHTTPHeaderField: "apikey")
request.httpMethod = "GET"
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 request = Request.Builder()
.url("http://api.iapp.co.th/qa-generator-th?text=āļāļĢāļļāļāđāļāļāļĄāļŦāļēāļāļāļĢ āđāļāđāļāđāļĄāļ·āļāļāļŦāļĨāļ§āļāđāļĨāļ°āļāļāļĢāļāļĩāđāļĄāļĩāļāļĢāļ°āļāļēāļāļĢāļĄāļēāļāļāļĩāđāļŠāļļāļāļāļāļāļāļĢāļ°āđāļāļĻāđāļāļĒ āđāļāđāļāļĻāļđāļāļĒāđāļāļĨāļēāļāļāļēāļĢāļāļāļāļĢāļāļ āļāļēāļĢāļĻāļķāļāļĐāļē āļāļēāļĢāļāļĄāļāļēāļāļĄāļāļāļŠāđāļ āļāļēāļĢāđāļāļīāļāļāļēāļĢāļāļāļēāļāļēāļĢ āļāļēāļĢāļāļēāļāļīāļāļĒāđ āļāļēāļĢāļŠāļ·āđāļāļŠāļēāļĢ āđāļĨāļ°āļāļ§āļēāļĄāđāļāļĢāļīāļāļāļāļāļāļĢāļ°āđāļāļĻ āđāļāđāļāđāļĄāļ·āļāļāļāļĩāđāļĄāļĩāļāļ·āđāļāļĒāļēāļ§āļāļĩāđāļŠāļļāļāđāļāđāļĨāļ āļāļąāđāļāļāļĒāļđāđāļāļāļŠāļēāļĄāđāļŦāļĨāļĩāđāļĒāļĄāļāļēāļāđāļĄāđāļāđāļģāđāļāđāļēāļāļĢāļ°āļĒāļē āļĄāļĩāđāļĄāđāļāđāļģāđāļāđāļēāļāļĢāļ°āļĒāļēāđāļŦāļĨāļāđāļēāļāđāļĨāļ°āđāļāđāļāđāļĄāļ·āļāļāļāļāļāđāļāđāļ 2 āļāļąāđāļ āļāļ·āļ āļāļąāđāļāļāļĢāļ°āļāļāļĢāđāļĨāļ°āļāļąāđāļāļāļāļāļļāļĢāļĩ āļāļĢāļļāļāđāļāļāļĄāļŦāļēāļāļāļĢāļĄāļĩāļāļ·āđāļāļāļĩāđāļāļąāđāļāļŦāļĄāļ 1,568.737 āļāļĢ.āļāļĄ. āļĄāļĩāļāļĢāļ°āļāļēāļāļĢāļāļēāļĄāļāļ°āđāļāļĩāļĒāļāļĢāļēāļĐāļāļĢāļāļ§āđāļē 5 āļĨāđāļēāļāļāļ āļāļģāđāļŦāđāļ āļĢāļļāļāđāļāļāļĄāļŦāļēāļāļāļĢāđāļāđāļāđāļāļāļāļāļĢ (Primate City) āļāļąāļ āļĄāļĩāļāļđāđāļāļĨāđāļēāļ§āļ§āđāļē āļāļĢāļļāļāđāļāļāļĄāļŦāļēāļāļāļĢāđāļāđāļ âāđāļāļāļāļāļĢāļāļĩāđāļŠāļļāļāđāļāđāļĨāļâ āđāļāļĢāļēāļ°āļĄāļĩāļāļĢāļ°āļāļēāļāļĢāļĄāļēāļāļāļ§āđāļēāļāļāļĢāļāļĩāđāļĄāļĩāļāļĢāļ°āļāļēāļāļĢāļĄāļēāļāđāļāđāļāļāļąāļāļāļąāļ 2 āļāļķāļ 40 āđāļāđāļē")
.addHeader("apikey", "YOUR_API_KEY")
.build()
val response = client.newCall(request).execute()
Javaâ
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
.url("http://api.iapp.co.th/qa-generator-th?text=āļāļĢāļļāļāđāļāļāļĄāļŦāļēāļāļāļĢ āđāļāđāļāđāļĄāļ·āļāļāļŦāļĨāļ§āļāđāļĨāļ°āļāļāļĢāļāļĩāđāļĄāļĩāļāļĢāļ°āļāļēāļāļĢāļĄāļēāļāļāļĩāđāļŠāļļāļāļāļāļāļāļĢāļ°āđāļāļĻāđāļāļĒ āđāļāđāļāļĻāļđāļāļĒāđāļāļĨāļēāļāļāļēāļĢāļāļāļāļĢāļāļ āļāļēāļĢāļĻāļķāļāļĐāļē āļāļēāļĢāļāļĄāļāļēāļāļĄāļāļāļŠāđāļ āļāļēāļĢāđāļāļīāļāļāļēāļĢāļāļāļēāļāļēāļĢ āļāļēāļĢāļāļēāļāļīāļāļĒāđ āļāļēāļĢāļŠāļ·āđāļāļŠāļēāļĢ āđāļĨāļ°āļāļ§āļēāļĄāđāļāļĢāļīāļāļāļāļāļāļĢāļ°āđāļāļĻ āđāļāđāļāđāļĄāļ·āļāļāļāļĩāđāļĄāļĩāļāļ·āđāļāļĒāļēāļ§āļāļĩāđāļŠāļļāļāđāļāđāļĨāļ āļāļąāđāļāļāļĒāļđāđāļāļāļŠāļēāļĄāđāļŦāļĨāļĩāđāļĒāļĄāļāļēāļāđāļĄāđāļāđāļģāđāļāđāļēāļāļĢāļ°āļĒāļē āļĄāļĩāđāļĄāđāļāđāļģāđāļāđāļēāļāļĢāļ°āļĒāļēāđāļŦāļĨāļāđāļēāļāđāļĨāļ°āđāļāđāļāđāļĄāļ·āļāļāļāļāļāđāļāđāļ 2 āļāļąāđāļ āļāļ·āļ āļāļąāđāļāļāļĢāļ°āļāļāļĢāđāļĨāļ°āļāļąāđāļāļāļāļāļļāļĢāļĩ āļāļĢāļļāļāđāļāļāļĄāļŦāļēāļāļāļĢāļĄāļĩāļāļ·āđāļāļāļĩāđāļāļąāđāļāļŦāļĄāļ 1,568.737 āļāļĢ.āļāļĄ. āļĄāļĩāļāļĢāļ°āļāļēāļāļĢāļāļēāļĄāļāļ°āđāļāļĩāļĒāļāļĢāļēāļĐāļāļĢāļāļ§āđāļē 5 āļĨāđāļēāļāļāļ āļāļģāđāļŦāđāļāļĢāļļāļāđāļāļāļĄāļŦāļēāļāļāļĢāđāļāđāļāđāļāļāļāļāļĢ (Primate City) āļāļąāļ āļĄāļĩāļāļđāđāļāļĨāđāļēāļ§āļ§āđāļē āļāļĢāļļāļāđāļāļāļĄāļŦāļēāļāļāļĢāđāļāđāļ âāđāļāļāļāļāļĢāļāļĩāđāļŠāļļāļāđāļāđāļĨāļâ āđāļāļĢāļēāļ°āļĄāļĩāļāļĢāļ°āļāļēāļāļĢāļĄāļēāļāļāļ§āđāļēāļāļāļĢāļāļĩāđāļĄāļĩāļāļĢāļ°āļāļēāļāļĢāļĄāļēāļāđāļāđāļāļāļąāļāļāļąāļ 2 āļāļķāļ 40 āđāļāđāļē")
.method("GET", body)
.addHeader("apikey", "YOUR_API_KEY")
.build();
Response response = client.newCall(request).execute();
Dartâ
var headers = {
'apikey': 'YOUR_API_KEY'
};
var request = http.Request('GET', Uri.parse('http://api.iapp.co.th/qa-generator-th?text=āļāļĢāļļāļāđāļāļāļĄāļŦāļēāļāļāļĢ āđāļāđāļāđāļĄāļ·āļāļāļŦāļĨāļ§āļāđāļĨāļ°āļāļāļĢāļāļĩāđāļĄāļĩāļāļĢāļ°āļāļēāļāļĢāļĄāļēāļāļāļĩāđāļŠāļļāļāļāļāļāļāļĢāļ°āđāļāļĻāđāļāļĒ āđāļāđāļāļĻāļđāļāļĒāđāļāļĨāļēāļāļāļēāļĢāļāļāļāļĢāļāļ āļāļēāļĢāļĻāļķāļāļĐāļē āļāļēāļĢāļāļĄāļāļēāļāļĄāļāļāļŠāđāļ āļāļēāļĢāđāļāļīāļāļāļēāļĢāļāļāļēāļāļēāļĢ āļāļēāļĢāļāļēāļāļīāļāļĒāđ āļāļēāļĢāļŠāļ·āđāļāļŠāļēāļĢ āđāļĨāļ°āļāļ§āļēāļĄāđāļāļĢāļīāļāļāļāļāļāļĢāļ°āđāļāļĻ āđāļāđāļāđāļĄāļ·āļāļāļāļĩāđāļĄāļĩāļāļ·āđāļāļĒāļēāļ§āļāļĩāđāļŠāļļāļāđāļāđāļĨāļ āļāļąāđāļāļāļĒāļđāđāļāļāļŠāļēāļĄāđāļŦāļĨāļĩāđāļĒāļĄāļāļēāļāđāļĄāđāļāđāļģāđāļāđāļēāļāļĢāļ°āļĒāļē āļĄāļĩāđāļĄāđāļāđāļģāđāļāđāļēāļāļĢāļ°āļĒāļēāđāļŦāļĨāļāđāļēāļāđāļĨāļ°āđāļāđāļāđāļĄāļ·āļāļāļāļāļāđāļāđāļ 2 āļāļąāđāļ āļāļ·āļ āļāļąāđāļāļāļĢāļ°āļāļāļĢāđāļĨāļ°āļāļąāđāļāļāļāļāļļāļĢāļĩ āļāļĢāļļāļāđāļāļāļĄāļŦāļēāļāļāļĢāļĄāļĩāļāļ·āđāļāļāļĩāđāļāļąāđāļāļŦāļĄāļ 1,568.737 āļāļĢ.āļāļĄ. āļĄāļĩāļāļĢāļ°āļāļēāļāļĢāļāļēāļĄāļāļ°āđāļāļĩāļĒāļāļĢāļēāļĐāļāļĢāļāļ§āđāļē 5 āļĨāđāļēāļāļāļ āļāļģāđāļŦāđāļāļĢāļļāļāđāļāļāļĄāļŦāļēāļāļāļĢāđāļāđāļāđāļāļāļāļāļĢ (Primate City) āļāļąāļ āļĄāļĩāļāļđāđāļāļĨāđāļēāļ§āļ§āđāļē āļāļĢāļļāļāđāļāļāļĄāļŦāļēāļāļāļĢāđāļāđāļ âāđāļāļāļāļāļĢāļāļĩāđāļŠāļļāļāđāļāđāļĨāļâ āđāļāļĢāļēāļ°āļĄāļĩāļāļĢāļ°āļāļēāļāļĢāļĄāļēāļāļāļ§āđāļēāļāļāļĢāļāļĩāđāļĄāļĩāļāļĢāļ°āļāļēāļāļĢāļĄāļēāļāđāļāđāļāļāļąāļāļāļąāļ 2 āļāļķāļ 40 āđāļāđāļē'));
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 Name | Endpoint | IC Per Characters | On-Premise |
---|---|---|---|
Question-Answer Generation from Paragraph Text for Exam / Chatbot | iapp_thai_qa_generation_v1 | 1 IC/400 Characters | Contact |