API Documentation

GET http://api.iapp.co.th/qa-generator-th

Path Parameters

NameTypeDescription

text*

String

String what you want to generate to question and anwser

Headers

NameTypeDescription

apikey*

String

The API Key to call this API

{
    "QA": [
        {
            "answer": "ไทย",
            "question": "ฉันพูดภาษาอะไร"
        }
    ],
    "context": "ผมพูดภาษาไทย",
    "number": 1,
    "time_process": 0.6306812763214111
}

Response Body

NameTypeDescription

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

Sample Request

curl --location --request GET 'http://api.iapp.co.th/qa-generator-th?text=ผมพูดง่วงมาก&apikey={Your API KEY}'

Last updated