Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Install and configure AssemblyAI SDK authentication. Use when setting up a new AssemblyAI integration, configuring API keys, or initializing the assemblyai npm package in your project. Trigger with phrases like "install assemblyai", "setup assemblyai", "assemblyai auth", "configure assemblyai API key".
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 42% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 44% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 35% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 17% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 6% | 0% |
Install the assemblyai npm package and configure API key authentication for transcription, LeMUR, and streaming APIs.
bash# Node.js (official SDK) npm install assemblyai # Python pip install assemblyai
bash# Set environment variable (recommended) export ASSEMBLYAI_API_KEY="your-api-key-here" # Or add to .env file echo 'ASSEMBLYAI_API_KEY=your-api-key-here' >> .env
Add to .gitignore:
.env
.env.local
.env.*.localtypescript// src/assemblyai/client.ts import { AssemblyAI } from 'assemblyai'; const client = new AssemblyAI({ apiKey: process.env.ASSEMBLYAI_API_KEY!, }); export default client;
typescript// verify-connection.ts import { AssemblyAI } from 'assemblyai'; const client = new AssemblyAI({ apiKey: process.env.ASSEMBLYAI_API_KEY!, }); async function verify() { // Transcribe a short public audio to confirm everything works const transcript = await client.transcripts.transcribe({ audio: 'https://storage.googleapis.com/aai-web-samples/5_common_sports_702.wav', }); if (transcript.status === 'error') { console.error('Transcription failed:', transcript.error); process.exit(1); } console.log('Connection verified. Transcript ID:', transcript.id); console.log('Status:', transcript.status); console.log('Text preview:', transcript.text?.slice(0, 100)); } verify().catch(console.error);
pythonimport assemblyai as aai import os # Configure globally aai.settings.api_key = os.environ["ASSEMBLYAI_API_KEY"] # Or pass per-client transcriber = aai.Transcriber() transcript = transcriber.transcribe( "https://storage.googleapis.com/aai-web-samples/5_common_sports_702.wav" ) print(transcript.text)
assemblyai package in node_modules or site-packages.env file| Error | Cause | Solution | |-------|-------|----------| | Authentication error | Invalid or missing API key | Verify key at https://www.assemblyai.com/app/account | | Cannot find module 'assemblyai' | SDK not installed | Run npm install assemblyai | | transcript.status === 'error' | Invalid audio URL or format | Check audio URL is publicly accessible | | ENOTFOUND api.assemblyai.com | Network/firewall issue | Ensure outbound HTTPS to api.assemblyai.com is allowed |
After successful auth, proceed to assemblyai-hello-world for your first transcription.
Other measured skills in the registry, with their headline benchmark lift.