Onboarding & Key Management

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.

Inference API Key
Authorization

Primary bearer token passed in the Authorization header for all inference pipelines, translation, speech recognition, and audio synthesis compute calls.

User ID & ULCA Key
ulcaApiKey & userID

Unique organizational or personal identifier used for pipeline discovery, querying available model providers, and configuring dynamic Dhruva pipelines.

How Pipelines Work
POST /pipeline

A unified orchestration gateway where a single inference token authenticates both standalone tasks and complex multi-model pipelines (e.g. Speech → Translation → Speech).

1

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.
Bhashini onboarding registration screen
2

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.
3

Generate Your Inference API Key

Once your account is approved, generate your inference credentials:

1Log in to the Bhashini Portal.
2Navigate to My Profile → API Keys.
3Click Generate Inference API Key and assign it a descriptive label (e.g. translation-backend-dev).
4Copy both your Inference API Key and your User ID securely.
4

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.

.env
# Bhashini Inference Credentials
BHASHINI_INFERENCE_API_KEY="YOUR_INFERENCE_API_KEY"
BHASHINI_USER_ID="<your_user_id>"
5

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.

Live Dhruva ValidatorLIVE API
POST https://dhruva-api.bhashini.gov.in/services/inference/pipeline
6

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();