Bhashik Text API

Detect language(s) in text

post
Authorizations
AuthorizationstringRequired

Provide your API key as a Bearer token: Authorization: Bearer <KRUTRIM_API_KEY>

Body
querystringRequired

Input text to analyze.

Example: Hey there, welcome to Language Labs
Responses
200

Detected languages with confidences.

application/json
post
/api/v1/languagelabs/language-detection

Extract entities and PII

post
Authorizations
AuthorizationstringRequired

Provide your API key as a Bearer token: Authorization: Bearer <KRUTRIM_API_KEY>

Body
textstringRequired

Input text to analyze.

lang_fromstring · enumRequired

Language code for input text (e.g., hin, ben, mar, tam, tel, kan, mal, pan, guj).

Example: hinPossible values:
Responses
200

Extracted entities and PII.

application/json
post
/api/v1/languagelabs/entity-extraction

Summarize text

post
Authorizations
AuthorizationstringRequired

Provide your API key as a Bearer token: Authorization: Bearer <KRUTRIM_API_KEY>

Body
textstringRequired

Text to summarize.

input_languagestring · enumRequired

Language code for the input text. Supported: eng (English), hin (Hindi), ben (Bengali), mar (Marathi), tam (Tamil), tel (Telugu), kan (Kannada), mal (Malayalam), pan (Punjabi), guj (Gujarati).

Example: engPossible values:
summary_sizeinteger · min: 1Required

Target summary size in words.

Example: 5
Responses
200

Summary generated successfully.

application/json
post
/api/v1/languagelabs/summarization

Translate text

post
Authorizations
AuthorizationstringRequired

Provide your API key as a Bearer token: Authorization: Bearer <KRUTRIM_API_KEY>

Body
textstringRequired

Input text to translate.

src_languagestringRequired

Source language code (e.g., eng_Latn).

Example: eng_Latn
tgt_languagestringRequired

Target language code (e.g., hin_Deva).

Example: hin_Deva
modelstring · enumRequired

Translation model to be used.

Example: krutrim-translate-v1.0Possible values:
Responses
200

Translation generated successfully.

application/json
post
/api/v1/languagelabs/translation

Analyze sentiment

post
Authorizations
AuthorizationstringRequired

Provide your API key as a Bearer token: Authorization: Bearer <KRUTRIM_API_KEY>

Body
textstringRequired

Input text to analyze.

lang_fromstring · enumRequired

Language code for input text (e.g., eng, hin, ben, mar, tam, tel, kan, mal, pan, guj).

Example: engPossible values:
Responses
200

Sentiment labels detected.

application/json
post
/api/v1/languagelabs/sentiment-analysis

Last updated

Was this helpful?