DJ Library
Create
Voice Toolkit
Generate Accent with AI
Developer Reference
Authentication
All authenticated endpoints require either a Firebase ID token or an API key.
Firebase Google Sign-In
Browser authentication uses Firebase Google Sign-In. After signing in, the Firebase ID token is sent as a Bearer token in the Authorization header.
Authorization: Bearer <firebase-id-token>
API Key Authentication
For programmatic access, use an API key in the X-API-Key header. Create keys in the API Keys tab.
X-API-Key: djb_your_api_key_here
DJ Management
/djs/submit
AUTH
Submit a new DJ profile with character data.
{
"json_data": {
"character_uuid": "550e8400-e29b-41d4-a716-446655440000",
"name": "DJ Awesome",
"sex": "Non-binary",
"age": 28,
"summary": "An amazing DJ with unique style",
"species": "Human",
"appearance": "Tall with colorful hair",
"personality": "Energetic and creative"
}
}
/djs
List all DJ profiles with optional filtering.
| Parameter | Type | Description |
|---|---|---|
| search | string | Filter by name, species, or summary |
| limit | integer | Maximum results to return (default: 100) |
| offset | integer | Number of results to skip (pagination) |
/djs/count
Get total number of DJ profiles in the system.
/djs/{character_uuid}
Retrieve detailed information for a specific DJ by UUID.
/djs/{character_uuid}/pretty
Get DJ details as formatted HTML for display purposes.
/djs/{character_uuid}
AUTH
Update an existing DJ profile.
/djs/{character_uuid}
AUTH
Permanently delete a DJ profile and all associated data.
// 200
{ "message": "DJ deleted successfully" }
// 404
{ "detail": "DJ not found" }
Voice Accents
Manage voice accent profiles for character audio generation.
/accents
List all available voice accents.
/accents
AUTH
Create a new voice accent profile.
{
"accent_name": "Southern American",
"accent_description_short": "Warm Southern drawl",
"accent_description_long": "A distinctive Southern American accent with elongated vowels and gentle rhythm",
"accent_notes": "Popular in country music and storytelling",
"tags": ["american", "southern", "warm", "storytelling"]
}
/accents/{accent_id}
AUTH
Update an existing voice accent.
/accents/{accent_id}
AUTH
Delete a voice accent profile permanently.
// 200
{ "message": "Accent deleted successfully" }
/accents/generate
AUTH
Generate a new voice accent using AI based on description.
{
"description": "Create a mysterious Eastern European accent suitable for a vampire character"
}
/accents/{accent_id}/json
Get accent data in JSON format for API consumption.
/accents/{accent_id}/pretty
Get accent as formatted HTML for display.
/accents/{accent_id}/download
Download accent data as a file.
/accents/pretty
Get all accents as formatted HTML page.
/accents/download
Download all accent data as export file.
Voice Modifiers
Manage voice modifier effects and processing options.
/voice-modifiers
List all available voice modifiers.
/voice-modifiers
AUTH
Create a new voice modifier.
{
"modifier_name": "Robotic Effect",
"modifier_description_short": "Mechanical voice processing",
"modifier_description_long": "Adds robotic metallic effect with digital distortion and monotone delivery",
"modifier_notes": "Great for AI character voices",
"tags": ["robotic", "mechanical", "sci-fi", "digital"]
}
/voice-modifiers/{modifier_id}
AUTH
Update an existing voice modifier.
/voice-modifiers/{modifier_id}
AUTH
Delete a voice modifier permanently.
// 200
{ "message": "Voice modifier deleted successfully" }
/voice-modifiers/generate
AUTH
Generate a new voice modifier using AI.
{
"description": "Create an ethereal angelic voice modifier with reverb and harmony"
}
/voice-modifiers/{modifier_id}/json
Get voice modifier data in JSON format.
/voice-modifiers/{modifier_id}/pretty
Get voice modifier as formatted HTML.
/voice-modifiers/{modifier_id}/download
Download voice modifier data.
/voice-modifiers/pretty
Get all voice modifiers as formatted HTML.
/voice-modifiers/download
Download all voice modifier data.
Voice Generation
Generate audio using various voice synthesis engines.
/voice/generate
AUTH
Generate voice audio with specified configuration.
Request Body:
{
"text": "Hello, this is a test of the voice generation system!",
"voice_factory": "elevenlabs_v3",
"voice_id": "pNInz6obpgDQGcFmaJgB",
"voice_settings": {
"stability": 0.75,
"similarity_boost": 0.75,
"style": 0.5
}
}
Response:
{
"audio_url": "https://storage.googleapis.com/bucket/generated_audio_123.mp3",
"duration": 3.2,
"character_count": 52,
"generation_time": 1.8
}
/voice/test
AUTH
Test voice configuration with sample text.
/voice/presets
Get available voice presets and configurations.
{
"elevenlabs_v3": {
"voices": [
{
"voice_id": "pNInz6obpgDQGcFmaJgB",
"name": "Adam",
"gender": "Male",
"description": "Deep, authoritative voice"
}
]
},
"gemini": {
"voices": [
{
"voice_id": "en-US-Journey-D",
"name": "Journey",
"gender": "Male",
"description": "Natural, conversational"
}
]
}
}
/voice/factory-config/{factory}
Get configuration options for specific voice factory.
/voice/save-configuration/{dj_id}
AUTH
Save voice configuration to a DJ profile.
File Upload
Upload and manage media files for DJ profiles.
/photo
AUTH
Upload photo files for DJ profiles.
| Parameter | Type | Description |
|---|---|---|
| file | multipart/form-data | Image file (JPEG, PNG, GIF, WebP) |
| character_uuid | string | UUID of the DJ to associate with |
// Response 200
{
"message": "Photo uploaded successfully",
"photo_url": "https://storage.googleapis.com/bucket/photos/uuid_photo.jpg",
"file_size": 1024576,
"dimensions": "1920x1080"
}
/audio
AUTH
Upload audio files for DJ profiles.
| Parameter | Type | Description |
|---|---|---|
| file | multipart/form-data | Audio file (MP3, WAV, OGG, WebM) |
| character_uuid | string | UUID of the DJ to associate with |
/file
AUTH
Delete uploaded file from storage.
{
"file_url": "https://storage.googleapis.com/bucket/files/filename.jpg"
}
API Keys
Manage API keys for programmatic access.
/api-keys
AUTH
List all API keys for the authenticated user.
/api-keys
AUTH
Create a new API key.
{
"name": "Production App",
"description": "Used by the mobile app",
"rate_limit": 60
}
/api-keys/{key_id}
AUTH
Revoke and delete an API key.
/api-keys/{key_id}/toggle
AUTH
Toggle an API key between active and revoked status.
System
System utilities and helper endpoints.
/proxy/fetch-and-upload
AUTH
Fetch external content and upload to storage.
{
"url": "https://example.com/image.jpg",
"character_uuid": "550e8400-e29b-41d4-a716-446655440000"
}
/system/info
Get system information and status.
{
"version": "1.0.0",
"environment": "production",
"database_status": "healthy",
"storage_status": "healthy",
"uptime": 86400
}
/health
Health check endpoint for monitoring.
{
"status": "healthy",
"timestamp": "2024-01-15T10:30:00Z"
}
/media/{path:path}
Serve media files (images, audio) with proper headers.
/
Main application page - DJ listing and management interface.
/edit
DJ editing page with voice generation tools.
Access Management
TTS System
TTS Factories
TTS System
TTS Models
TTS System
TTS Voices
TTS System
TTS Overview
System Architecture