Maithili AI

प्लेटफॉर्मPlatform

सहज मैथिली, अहाँक उत्पादमेNatural Maithili, inside your product

व्यवसाय लेल मैथिली भाषा API: लेखन, अनुवाद, आवाज, ट्रांसक्रिप्शन, मिथिलाक्षर आ चित्र।

Maithili language APIs for businesses: text, translation, speech, transcription, Mithilakshar conversion and images.

सेवाServices

लेखनText

सहज मैथिलीमे जवाब, सारांश आ सामग्री, बोली, सम्बोधन आ लिपिक नियंत्रणक संग।

Replies, summaries and content in natural Maithili, with control over dialect, tone and script.

अनुवादTranslation

मैथिली, अंग्रेजी, हिन्दी आ नेपाली बीच अनुवाद।

Translation between Maithili, English, Hindi and Nepali.

आवाजSpeech

लिखल पाठ सँ स्वाभाविक आवाज, स्त्री आ पुरुष स्वरमे।

Natural spoken audio from text, with female and male voices.

ट्रांसक्रिप्शनTranscription

मैथिली बोली सँ लिखित पाठ, हिन्दी, नेपाली वा अंग्रेजी मिलल बोली सेहो।

Speech to text for Maithili, including speech mixed with Hindi, Nepali or English.

मिथिलाक्षरMithilakshar

देवनागरी आ मिथिलाक्षर (तिरहुता) बीच तुरन्त रूपान्तरण।

Instant conversion between Devanagari and Mithilakshar (Tirhuta).

चित्रImages

मैथिली, हिन्दी, नेपाली वा अंग्रेजीमे लिखल विवरण सँ चित्र, आ देल चित्रमे बदलाव।

Images from a description in Maithili, Hindi, Nepali or English, and edits to an image you send.

भिडियोVideo

बाद मेLater

उपशीर्षक आ डबिंग बाद मे आओत।

Subtitles and dubbing will follow later.

अनुमति कोना भेटतHow access works

  1. 1

    अपन खाता बनाउCreate your account

    Google सँ खाता बनाउ वा प्रवेश करू।

    Create an account or sign in with Google.

  2. 2

    अनुमति माँगूRequest access

    अपन कंपनी, उत्पाद आ अनुमानित उपयोगक जानकारीक संग api@maithiliai.com पर लिखू।

    Write to api@maithiliai.com with your company, product and expected usage.

  3. 3

    काज शुरू करूStart building

    अनुमति भेटला पर एही पन्ना पर API कुंजी बनाउ आ काज शुरू करू।

    After approval, create API keys on this page and start making calls.

अनुमति दैत काल प्रत्येक व्यवसायक संग मूल्य तय कयल जाइत अछि।

Pricing is agreed with each business when access is approved.

अहाँक खाताYour account

API सन्दर्भAPI reference

हरेक अनुरोध POST अछि। अपन कुंजी Authorization हेडरमे पठाउ। जवाबक X-Daily-Remaining हेडर आजुक बाँचल सीमा बतबैत अछि।

Every request is a POST. Send your key in the Authorization header. The X-Daily-Remaining response header shows what is left of today's limit.

Base URL
https://maithiliai.com/api/v1

लेखनTextPOST /text

मैथिलीमे जवाब लिखैत अछि।

Writes a reply in Maithili.

messages
गप्प: role (user वा assistant) आ content। अंतिम संदेश user क होयबाक चाही।The conversation: role (user or assistant) and content. The last message must be from the user.
instructions
वैकल्पिक। अहाँक उत्पाद लेल निर्देश।Optional. Instructions for your product.
dialect
वैकल्पिक: auto, standard, nepal, eastern, thethi, bajjika, angika।Optional: auto, standard, nepal, eastern, thethi, bajjika, angika.
honorific
वैकल्पिक: tonh, ahan (मूल), apne।Optional: tonh, ahan (default), apne.
script
वैकल्पिक: deva (मूल), tirhuta, roman।Optional: deva (default), tirhuta, roman.
max_tokens
वैकल्पिक: १६ सँ ४०९६, मूल २०४८।Optional: 16 to 4096, default 2048.
Request
curl https://maithiliai.com/api/v1/text \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"messages":[{"role":"user","content":"मखान की होइत अछि?"}],"dialect":"standard"}'
Response
{
  "text": "मखान एकटा जलीय पौधाक बीया सँ बनैत अछि…",
  "truncated": false
}

अनुवादTranslationPOST /translate

भाषा: mai, en, hi, ne। पाठ ८,००० अक्षर धरि।

Languages: mai, en, hi, ne. Text up to 8,000 characters.

text
अनुवाद करबाक पाठ।The text to translate.
from, to
स्रोत आ लक्ष्य भाषा।The source and target languages.
dialect
वैकल्पिक, जखन लक्ष्य मैथिली हो।Optional, when the target is Maithili.
Request
curl https://maithiliai.com/api/v1/translate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"I will come home tomorrow.","from":"en","to":"mai"}'
Response
{
  "text": "हम काल्हि घर अएब।",
  "from": "en",
  "to": "mai"
}

आवाजSpeechPOST /speech

WAV ऑडियो दैत अछि। पाठ ३,००० अक्षर धरि।

Returns WAV audio. Text up to 3,000 characters.

text
बाजबाक पाठ।The text to speak.
voice
वैकल्पिक: female (मूल), male।Optional: female (default), male.
language
वैकल्पिक: mai (मूल), en, hi, ne।Optional: mai (default), en, hi, ne.
Request
curl https://maithiliai.com/api/v1/speech \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"प्रणाम, अहाँक स्वागत अछि।","voice":"female"}' \
  --output speech.wav
Response
audio/wav

ट्रांसक्रिप्शनTranscriptionPOST /transcribe

WAV फाइल सँ लिखित पाठ। फाइल ४ MB धरि।

Text from a WAV file. Files up to 4 MB.

audio
multipart फॉर्ममे WAV फाइल।A WAV file in a multipart form.
Request
curl https://maithiliai.com/api/v1/transcribe \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F audio=@speech.wav
Response
{
  "text": "प्रणाम, अहाँक स्वागत अछि।"
}

मिथिलाक्षरMithilaksharPOST /mithilakshar

लिपि बदलैत अछि। पाठ ५०,००० अक्षर धरि।

Converts the script. Text up to 50,000 characters.

text
बदलबाक पाठ।The text to convert.
to
mithilakshar वा devanagari।mithilakshar or devanagari.
Request
curl https://maithiliai.com/api/v1/mithilakshar \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"मिथिला","to":"mithilakshar"}'
Response
{
  "text": "𑒧𑒱𑒟𑒱𑒪𑒰",
  "to": "mithilakshar"
}

चित्रImagesPOST /image

चित्र base64 मे दैत अछि। एक चित्रमे २० सँ ४० सेकेंड लगैत अछि।

Returns the image as base64. One image takes about 20 to 40 seconds.

prompt
चित्रक विवरण, वा बदलाव, १,५०० अक्षर धरि।What to make, or what to change, up to 1,500 characters.
aspect
वैकल्पिक: 1:1 (मूल), 4:5, 3:4, 9:16, 16:9।Optional: 1:1 (default), 4:5, 3:4, 9:16, 16:9.
image
वैकल्पिक। बदलबाक चित्र: mime_type आ base64 data।Optional. An image to change: mime_type and base64 data.
Request
curl https://maithiliai.com/api/v1/image \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"साँझ मे पोखरिक कात दीप जरबैत बच्चा सभ","aspect":"4:5"}'
Response
{
  "mime_type": "image/png",
  "data": "iVBORw0KGgo…",
  "aspect": "4:5"
}

त्रुटिErrors

त्रुटि JSON मे अबैत अछि, जेना:

Errors come back as JSON, for example:

{ "error": { "code": "invalid_key", "message": "This API key is not valid." } }
400
invalid_request
अनुरोधमे किछु गलत अछि। संदेश समस्या बतबैत अछि।Something in the request is wrong. The message names the problem.
401
missing_key, invalid_key
कुंजी नहि भेटल, वा ठीक नहि अछि।The key is missing or not valid.
403
not_approved
एहि खाताक अनुमति सक्रिय नहि अछि।Access for this account is not active.
413, 415
too_large, unsupported_audio
ऑडियो फाइल बहुत पैघ अछि, वा WAV नहि अछि।The audio file is too large or is not WAV.
422
blocked, no_output, no_image
एहि अनुरोधक जवाब नहि बनि सकल।No answer could be produced for this request.
429
daily_limit
आजुक सीमा पूरा भेल।The daily limit has been reached.
5xx
busy, timeout, unavailable, server_error
हमरा दिस समस्या अछि। किछु काल बाद फेर प्रयास करू।A problem on our side. Please try again shortly.

उपयोगक नियमUsage rules

  • कुंजी अपन सर्वरे पर राखू। वेबसाइट वा ऐपक कोड मे कहियो नहि राखू।Keep your key on your server. Never put it in the code of a website or app.
  • हरेक खाताक एक दैनिक सीमा अछि, जे अनुमति दैत काल तय होइत अछि। ई भारतीय समयक मध्यरात्रि मे शून्य होइत अछि। विफल अनुरोध नहि गनल जाइत अछि।Each account has a daily limit, set when access is approved. It resets at midnight India time. Failed calls are not counted.
  • प्लेटफॉर्म पर बनल उत्पाद १८ बरख वा ओहि सँ बेसी उमेरक लोक लेल होयबाक चाही।Products built on the platform must be for people aged 18 and over.
  • ताजा वेब खोज API मे शामिल नहि अछि।Live web search is not part of the API.

API सँ जुड़ल प्रश्न लेल लिखू: api@maithiliai.comQuestions about the API? Write to api@maithiliai.com