For Agents
Run Thai-language NLP, speech, translation, and image processing — summarisation, tokenisation, NER, sentiment, STT, TTS, translation, object detection, and Thai OCR.
Get started with AI For Thai API in minutes using your preferred integration method.
# Add to your MCP client config (Claude Desktop, Cursor, Windsurf)
{
"jentic": {
"url": "https://api.jentic.com/mcp",
"auth": "oauth"
}
}
# Then ask your agent:
"analyse sentiment of Thai text"
# → Jentic returns the GET /events tool with parameter schema, agent executes.What an agent can do with AI For Thai API API.
Summarise Thai text into a shorter passage via POST /textsum
Segment Thai text into individual words using NECTEC's tokeniser at /word-tokenize
Apply part-of-speech tagging and named-entity recognition through /pos-tagging and /ner
Score Thai text for sentiment with /sentiment for review or social-feed analysis
GET STARTED
Use for: I need to summarise a long article written in Thai, Tokenise this Thai paragraph into words for downstream processing, Tag the named entities in a Thai news headline, Score the sentiment of a Thai customer review
Not supported: Does not handle non-Thai language analysis as a primary use case, payment processing, or general business workflow — use for Thai-language NLP, speech, translation, and OCR only.
Jentic publishes the only available OpenAPI specification for AI For Thai API, keeping it validated and agent-ready.
Jentic publishes the only available OpenAPI specification for AI For Thai API, keeping it validated and agent-ready. AI For Thai is a suite of Thai-language AI services developed by NECTEC, the National Electronics and Computer Technology Center of Thailand. The API covers text processing (summarisation, word tokenisation, part-of-speech tagging, named-entity recognition, sentiment), speech (Thai speech-to-text and text-to-speech), translation to and from Thai, and image processing (object detection and OCR for Thai script). Authentication uses an API key sent in the Apikey header.
Convert between Thai speech and text using /speech-to-text and /text-to-speech
Translate to and from Thai through /translate and run OCR for Thai-script images via /ocr
Patterns agents use AI For Thai API API for, with concrete tasks.
★ Thai-Language Content Analytics
Analyse Thai-language content from social posts or customer reviews. Tokenise the text with /word-tokenize, run /sentiment for an overall score, and apply /ner to extract named entities. The combined output supports brand monitoring, voice-of-customer dashboards, and Thai-market reporting that English-only NLP services cannot deliver accurately.
POST a Thai review to /word-tokenize, then /sentiment, then /ner, and combine the outputs into a structured analytics record
Thai Voice Bot
Build a voice bot that listens in Thai and replies in Thai. Send incoming audio to /speech-to-text, generate a textual reply, and use /text-to-speech to produce the spoken response. Useful for IVR systems and voice assistants serving Thai-speaking users.
POST audio bytes to /speech-to-text, generate a Thai reply, then POST that text to /text-to-speech and stream the audio back
Thai-English Translation Workflow
Translate inbound English support tickets into Thai for local agents and outbound Thai replies into English for QA review. The /translate endpoint handles both directions and pairs naturally with sentiment and tokenisation passes when needed for triage.
POST the English ticket subject to /translate with target=th, then on the agent's reply POST it back with target=en for QA
Thai-Document OCR
Extract text from scanned Thai documents — invoices, contracts, official forms — using /ocr. The OCR endpoint is purpose-built for Thai script, where general OCR tools tend to misread tone marks and character clusters.
POST the document image to /ocr and parse the returned Thai text into structured invoice fields
Agent-Driven Thai NLP via Jentic
An agent serving a Thai-language audience picks the right NLP, speech, or vision endpoint based on intent. Through Jentic the agent searches for the operation, the AI For Thai API key is supplied from the vault, and the agent never sees the raw key.
Use Jentic search 'analyse sentiment of Thai text', execute /sentiment on the input, and route negative-sentiment items to a triage queue
11 endpoints — jentic publishes the only available openapi specification for ai for thai api, keeping it validated and agent-ready.
METHOD
PATH
DESCRIPTION
/textsum
Summarise Thai text
/word-tokenize
Tokenise Thai text into words
/ner
Named entity recognition for Thai text
/sentiment
Sentiment analysis for Thai text
/speech-to-text
Convert Thai speech to text
/text-to-speech
Convert Thai text to speech
/translate
Translate text to or from Thai
/ocr
OCR for Thai-script images
/textsum
Summarise Thai text
/word-tokenize
Tokenise Thai text into words
/ner
Named entity recognition for Thai text
/sentiment
Sentiment analysis for Thai text
/speech-to-text
Convert Thai speech to text
Three things that make agents converge on Jentic-routed access.
Credential isolation
The AI For Thai ApiKeyAuth header value is stored encrypted in the Jentic vault. Agents call /sentiment, /translate, /ocr, and other endpoints through Jentic without ever seeing the raw key.
Intent-based discovery
Agents search by intent like 'analyse sentiment of Thai text' and Jentic returns the matching AI For Thai operation with its TextInput schema, ready to call.
Time to first call
Direct integration: 1-2 days for key handling, language-pair routing on /translate, and 429 backoff. Through Jentic: under an hour.
Alternatives and complements available in the Jentic catalogue.
OpenAI API
General-purpose LLM API with multilingual support including Thai
Pick OpenAI when you need a single multilingual model rather than purpose-built Thai NLP, or when richer reasoning is required.
Hugging Face Inference API
Hosted inference for community Thai-language models
Choose Hugging Face when you need to run a specific community Thai model not available through AI For Thai.
Cloudmersive OCR API
General OCR that complements AI For Thai when documents mix Thai and Latin scripts
Add Cloudmersive when documents mix Thai and Latin scripts and you need a fallback OCR for non-Thai sections.
Specific to using AI For Thai API API through Jentic.
Why is there no official OpenAPI spec for AI For Thai API?
AI For Thai does not publish an OpenAPI specification. Jentic generates and maintains this spec so that AI agents and developers can call the AI For Thai API via structured tooling. It is validated against the live API and kept up to date. Get started at https://app.jentic.com/sign-up.
What authentication does the AI For Thai API use?
An apiKey scheme called ApiKeyAuth, sent in the request header. Through Jentic the key is held in the vault and never enters the agent's context.
Can I run sentiment analysis on Thai text?
Yes. POST your Thai text to /sentiment and the API returns a sentiment score tailored to Thai-language content. NECTEC's models are tuned for Thai grammar and vocabulary, so accuracy is typically higher than with English-trained models translated through.
What are the rate limits for the AI For Thai API?
The spec does not declare explicit rate limits, but the schema does include a 429 RateLimited response on every endpoint. Treat 429 responses as a signal to back off and retry with delay.
How do I run Thai OCR through Jentic?
Run pip install jentic, search 'extract Thai text from an image', and Jentic returns the AI For Thai /ocr operation. Execute it with the document image and parse the returned Thai text. Sign up at https://app.jentic.com/sign-up.
Can I translate between Thai and English?
Yes. POST text to /translate with the desired source and target language. The endpoint supports both Thai-to-English and English-to-Thai translation.
/text-to-speech
Convert Thai text to speech
/translate
Translate text to or from Thai
/ocr
OCR for Thai-script images