Generating & Using Your Inference API Key
Authenticate your applications to access Bhashini's production Indian language AI models (IndicTrans2, Conformer ASR, FastSpeech2 TTS, and Aksharantar) across 30+ languages through unified Dhruva inference pipelines.
Primary bearer token passed in the Authorization header for all inference pipelines, translation, speech recognition, and audio synthesis compute calls.
Unique organizational or personal identifier used for pipeline discovery, querying available model providers, and configuring dynamic Dhruva pipelines.
A unified orchestration gateway where a single inference token authenticates both standalone tasks and complex multi-model pipelines (e.g. Speech → Translation → Speech).
Register on the Bhashini Dashboard
To obtain API access, create an account on the official Bhashini ULCA dashboard. You can register as an Organization (Central/State Government, Academia, Private Enterprise) or as an Individual Developer:
- Organization Type: Select the entity category best matching your use case (Government, Academia, Enterprise, or Individual).
- Official Email: Use your institutional or corporate domain email for expedited approval.
- Email Verification: After submitting the registration form, check your inbox for a verification link.
Spam Folder Notice: If the confirmation link does not appear within 2 minutes, check your email spam or promotional folder.
Approval by DIBD
Once your email is verified, your account is queued for review by the Digital India Bhashini Division (DIBD):
- Turnaround Time: Standard developer credentials are typically reviewed and provisioned within 1 to 2 business days.
- Status Checks: You can log in to the Bhashini Dashboard at any time to inspect your onboarding status.
Generate Your Inference API Key
Once your account is approved, generate your inference credentials:
translation-backend-dev).Store Credentials in Environment Variables
Store your key as a protected environment variable. Never commit live secrets to version control or expose them in browser JavaScript bundles.
# Bhashini Inference Credentials
BHASHINI_INFERENCE_API_KEY="YOUR_INFERENCE_API_KEY"
BHASHINI_USER_ID="<your_user_id>"Security Guardrail: Always proxy requests to Bhashini through your application's server-side runtime (e.g. Next.js API route, Node.js Express, Python FastAPI) so that your Authorization key is never exposed to client devices.
Interactive Key Validator (Test Live)
Paste your key below to verify it has active permissions — this runs a live Hindi-to-English translation ("नमस्ते" → "Hello") using IndicTrans2. This is for testing only; your key never leaves this test call.
Execute Your First API Call
Use the copyable code snippets below to execute your first call in your preferred programming environment — replace YOUR_INFERENCE_API_KEY with your own key before running them:
const API_KEY = process.env.BHASHINI_INFERENCE_API_KEY || "YOUR_INFERENCE_API_KEY";
const URL = "https://dhruva-api.bhashini.gov.in/services/inference/pipeline";
async function runTranslation() {
const response = await fetch(URL, {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: API_KEY,
},
body: JSON.stringify({
pipelineTasks: [
{
taskType: "translation",
config: {
language: {
sourceLanguage: "hi",
targetLanguage: "en",
},
serviceId: "ai4bharat/indictrans-v2-all-gpu--t4",
},
},
],
inputData: {
input: [{ source: "नमस्ते" }],
},
}),
});
const data = await response.json();
const translated = data.pipelineResponse[0].output[0].target;
console.log("Translation:", translated);
}
runTranslation();