Examples
Authentication & Setup
# Login to get token
60db auth:login --email [email protected] --password yourpassword
# Check session
60db auth:session
# Or manually set API key
60db config --set apiKey=your_token_here
AI Chat Completion
# Simple chat
60db ai:chat --prompt "Explain quantum computing"
# With system prompt for specific behavior
60db ai:chat --prompt "Review this code" --system "You are an expert code reviewer. Be concise and actionable."
# Higher temperature for creative responses
60db ai:chat --prompt "Write a poem about AI" --temperature 0.9
TTS - Generate Speech
# Generate speech from text
60db tts:synthesize --text "Hello, this is devendra" --voice-id "1a8c6331-c79b-47d3-9893-09160a245a3e"
# List available voices first
60db tts:voices
# Save to specific file
60db tts:synthesize --text "Welcome to our service" --voice-id "abc123" --output welcome.mp3
STT - Transcribe Audio
# Transcribe audio file
60db stt:transcribe --file meeting.wav
# Transcribe Hindi audio
60db stt:transcribe --file recording.wav --language hi
# List available languages
60db stt:languages
AI Meeting Notes Analysis
# Analyze meeting transcript
60db ai:meeting --transcript "John: We need to finish by Friday. Jane: I'll handle frontend." --title "Sprint Planning"
# Get structured JSON output
60db --json ai:meeting --transcript "$TRANSCRIPT" > meeting-notes.json
Add Credits to Multiple Users
for user_id in 123 456 789; do
60db credits:add --user-id $user_id --amount 10 --description "Monthly bonus"
done
Export User Data to JSON
60db --json users --list > users.json
Monitor Transactions in Real-Time
watch -n 5 '60db --json billing:transactions --limit 5'