Developer quickstart

Learn how to make your first BHASHINI API request. The BHASHINI APIs provide a simple interface to state-of-the-art language and speech models and features. Follow this guide to onboard, retrieve your keys, and make your first call. See the developer guides for more examples with other capabilities.

Follow these steps to onboard, get your keys, and make your first call. Need help generating credentials? Read the dedicated Authentication & API Keys Guide → for a visual walkthrough and in-browser key validator.

1) Create an API key

1

Create an API key

Generate an Inference API Key via the Bhashini Developer Dashboard (see our detailed step-by-step key generation instructions).


Store the key as a managed secret and pass it to the SDKs either as an environment variable via an .env file, or directly in your app's configuration depending on your preference.
.env
BHASHINI_INFERENCE_API_KEY=<your_inference_api_key>
2

Make your first request

Enter your inference API key, choose source (hi) and target (gu) languages, provide the service ID, and run a translation. The curl command updates automatically so you can copy it.

Service ID: ai4bharat/indictrans-v2-all-gpu--t4
Use the Text-to-Text API
Translate text using Dhruva. Defaults: hi → gu, service: ai4bharat/indictrans-v2-all-gpu--t4
Request
Find it in your dashboard after approval.
25 of 37 languages — limited by the selected model. Clear Service ID to see all.
24 of 38 languages — limited by the selected model. Clear Service ID to see all.
Recommended: ai4bharat/indictrans-v2-all-gpu--t4
curl
curl --location 'https://dhruva-api.bhashini.gov.in/services/inference/pipeline' \
--header 'Accept: */*' \
--header 'Authorization: YOUR_INFERENCE_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"pipelineTasks": [
{
"taskType": "translation",
"config": {
"language": {
"sourceLanguage": "hi",
"targetLanguage": "gu"
},
"serviceId": "ai4bharat/indictrans-v2-all-gpu--t4"
}
}
],
"inputData": {
"input": [
{
"source": "मेरा नाम विहिर है और मैं भाषाावर्ष यूज कर रहा हूँ"
}
]
}
}'
Response
Send a request to see the live response here.

Explore our developer guides

Now that you've made your first BHASHINI API request, you can explore the other products and tutorials that BHASHINI offers.

Next steps