Create Speech (Text-to-Speech)
Converts text into speech using a voice of your choice and returns audio.
Request
curl -X POST "https://api.kingcongstudio.com/v1/text-to-speech/$voice_id?output_format=mp3_44100_128" \
-H "Content-Type: application/json" \
-H "xi-api-key: $API_KEY" \
-d '{
"text": "The first move is what sets everything in motion.",
"model_id": "eleven_multilingual_v2",
"with_transcript": false,
"receive_url": "http://your-webhook-endpoint"
}'
Parameters
Success Response
{
"success": true,
"task_id": "uuid_task_id",
"ec_remain_credits": 100
}
Webhook Response (or GET Task polling)
{
"id": "uuid_task_id",
"created_at": "2025-01-01T00:00:00.000Z",
"status": "done",
"error_message": null,
"credit_cost": 1,
"metadata": {
"audio_url": "https://example.com/audio.mp3",
"srt_url": "https://example.com/audio.srt",
"json_url": "https://example.com/audio.json"
},
"type": "tts"
}
Read Elevenlabs documentation for more details (as Free user)
Dub an Audio File
Dubs a provided audio file into given language. Returns dubbed audio & transcript (srt).
Request
curl -X POST "https://api.kingcongstudio.com/v1/task/dubbing" \
-H "xi-api-key: $API_KEY" \
-H "Content-Type: multipart/form-data" \
-F [email protected] \
-F num_speakers="0" \
-F disable_voice_cloning="false" \
-F source_lang="auto" \
-F target_lang="vi" \
-F receive_url="http://your-webhook-endpoint"
Parameters
Success Response
{
"success": true,
"task_id": "uuid_task_id",
"ec_remain_credits": 95
}
Webhook Response (or GET Task polling)
{
"id": "uuid_task_id",
"created_at": "2025-01-01T00:00:00.000Z",
"status": "done",
"error_message": null,
"credit_cost": 5,
"metadata": {
"audio_url": "https://example.com/dubbed_audio.mp3",
"srt_url": "https://example.com/transcript.srt",
"json_url": "https://example.com/transcript.json"
},
"type": "dubbing"
}
Speech to Text (Transcription)
Transcribes a provided audio file and returns transcript as JSON and SRT.
Request
curl -X POST "https://api.kingcongstudio.com/v1/task/speech-to-text" \
-H "xi-api-key: $API_KEY" \
-H "Content-Type: multipart/form-data" \
-F [email protected] \
-F receive_url="http://your-webhook-endpoint"
Parameters
Success Response
{
"success": true,
"task_id": "uuid_task_id",
"ec_remain_credits": 98
}
Webhook Response (or GET Task polling)
{
"id": "uuid_task_id",
"created_at": "2025-01-01T00:00:00.000Z",
"status": "done",
"error_message": null,
"credit_cost": 2,
"metadata": {
"json_url": "https://example.com/transcript.json",
"srt_url": "https://example.com/transcript.srt"
},
"type": "speech_to_text"
}
List Models
Retrieve available voice synthesis models.
Request
curl "https://api.kingcongstudio.com/v1/models" \
-H "Content-Type: application/json" \
-H "xi-api-key: $API_KEY"
Success Response
{
"models": [
{
"model_id": "eleven_multilingual_v2",
"name": "Eleven Multilingual v2",
"can_be_finetuned": false,
"can_do_text_to_speech": true,
"can_do_voice_conversion": true,
"languages": ["en", "es", "fr", "de", "it", "pt", "pl", "hi", "ar", ...]
},
{
"model_id": "eleven_monolingual_v1",
"name": "Eleven English v1",
"can_be_finetuned": false,
"can_do_text_to_speech": true,
"can_do_voice_conversion": false,
"languages": ["en"]
}
]
}
List Recommended Voices
Gets a list of all available voices for a user with search, filtering and pagination (as free user).
Request
curl "https://api.kingcongstudio.com/v2/voices" \
-H "xi-api-key: $API_KEY"
Read Elevenlabs documentation for response format and filtering options
List Shared Voices
Retrieves a list of shared voices (as free user).
Request
curl "https://api.kingcongstudio.com/v1/shared-voices" \
-H "xi-api-key: $API_KEY"
Read Elevenlabs documentation for response format
Get Common Configuration
Retrieves common configuration settings from Minimax service (model, language support, etc.)
Request
curl "https://api.kingcongstudio.com/v1m/common/config" \
-H "xi-api-key: $API_KEY"
Text-to-Speech Task
Converts text to speech using Minimax TTS service. Supports both synchronous and asynchronous processing.
Request
curl -X POST "https://api.kingcongstudio.com/v1m/task/text-to-speech" \
-H "Content-Type: application/json" \
-H "xi-api-key: $API_KEY" \
-d '{
"text": "Hello, this is a test message for text-to-speech conversion.",
"model": "speech-2.6-hd",
"voice_setting": {
"voice_id": "209533299589184",
"vol": 1,
"pitch": 0,
"speed": 1
},
"language_boost": "Auto",
"with_transcript": false,
"receive_url": "http://your-webhook-endpoint"
}'
Parameters
Success Response
{
"success": true,
"task_id": "uuid_task_id",
"ec_remain_credits": 100
}
Webhook Response
{
"id": "uuid_task_id",
"created_at": "2025-01-01T00:00:00.000Z",
"status": "done",
"error_message": null,
"credit_cost": 1,
"metadata": {
"audio_url": "https://example.com/audio.mp3",
"srt_url": "https://example.com/audio.srt"
},
"type": "minimax_tts"
}
Clone Voice
Uploads an audio file to create a custom voice clone.
Request
curl -X POST "https://api.kingcongstudio.com/v1m/voice/clone" \
-H "xi-api-key: $API_KEY" \
-H "Content-Type: multipart/form-data" \
-F file=@audio_sample.mp3 \
-F voice_name="My Voice" \
-F preview_text="Hello world" \
-F language_tag="English" \
-F need_noise_reduction=true \
-F gender_tag="male"
Parameters
Success Response
{
"success": true,
"cloned_voice_id": 12345
}
Delete Voice Clone
Deletes a voice clone and all its references.
Request
curl -X DELETE "https://api.kingcongstudio.com/v1m/voice/clone/$voice_clone_id" \
-H "xi-api-key: $API_KEY"
Success Response
{
"success": true
}
List Voice Clones
Retrieves all voice clones owned by the authenticated user.
Request
curl "https://api.kingcongstudio.com/v1m/voice/clone" \
-H "xi-api-key: $API_KEY"
Get Voice List
Retrieves available voices from Minimax service.
Request
curl -X POST "https://api.kingcongstudio.com/v1m/voice/list" \
-H "Content-Type: application/json" \
-H "xi-api-key: $API_KEY" \
-d '{
"page": 1,
"page_size": 30,
"tag_list": []
}'
Parameters
Music Generation
Generates music using Minimax AI music generation service. Supports both idea-based and lyrics-based generation.
Request
curl -X POST "https://api.kingcongstudio.com/v1m/task/music-generation" \
-H "Content-Type: application/json" \
-H "xi-api-key: $API_KEY" \
-d '{
"title": "My Song Title",
"idea": "A relaxing jazz piece for a quiet evening",
"n": 1,
"style_id": "8",
"mood_id": "5",
"scenario_id": "5",
"rewrite_idea_switch": false,
"receive_url": "http://your-webhook-endpoint"
}'
Parameters
Success Response
{
"success": true,
"task_id": "uuid_task_id",
"ec_remain_credits": 100
}
Webhook Response
{
"id": "uuid_task_id",
"created_at": "2025-01-01T00:00:00.000Z",
"status": "done",
"error_message": null,
"credit_cost": 1,
"metadata": {
"audio_url": [
"https://example.com/music_track_1.mp3",
"https://example.com/music_track_2.mp3"
],
"cover_url": [
"https://example.com/cover_1.jpg",
"https://example.com/cover_2.jpg"
]
},
"type": "minimax_music"
}
Purchase Proxy
Purchase proxy by quantity and TTL (minutes).
Request
curl -X POST "https://api.kingcongstudio.com/v1p/proxy/purchase" \
-H "Content-Type: application/json" \
-H "xi-api-key: $API_KEY" \
-d '{
"ttl": 10,
"quantity": 5
}'
Parameters
Success Response
{
"success": true,
"data": {
"purchased_proxies": [
{
"id": 1,
"proxy": "http://user:pass@host:port",
"socks5": {
"host": "host",
"port": 1080,
"username": "user",
"password": "pass"
},
"ttl_minutes": 60,
"credit_cost": 1250,
"expires_at": "2025-01-01T00:00:00.000Z"
}
],
"total_cost": 6250,
"total_purchased": 5,
"requested_quantity": 5,
"refunded_credits": 0,
"unavailable_proxies": 0
}
}
Your Purchased Proxies
List of your purchased proxies.
Request
curl "https://api.kingcongstudio.com/v1p/proxy/purchases" \
-H "xi-api-key: $API_KEY"
Success Response
{
"success": true,
"data": {
"purchases": [
{
"id": 1,
"proxy": "http://user:pass@host:port",
"socks5": {
"host": "host",
"port": 1080,
"username": "user",
"password": "pass"
},
"ttl_minutes": 10,
"credit_cost": 1250,
"expires_at": "2025-01-01T00:00:00.000Z"
}
],
"total": 1
}
}
Get Task
Retrieves a task detail by task id. For polling if you don't use webhook.
Request
curl "https://api.kingcongstudio.com/v1/task/$task_id" \
-H "Content-Type: application/json" \
-H "xi-api-key: $API_KEY"
Success Response
{
"id": "uuid_task_id",
"created_at": "2025-01-01T00:00:00.000Z",
"status": "doing",
"error_message": null,
"credit_cost": 1,
"metadata": {
"audio_url": "https://example.com/audio.mp3",
"srt_url": "https://example.com/audio.srt",
"json_url": "https://example.com/audio.json"
},
"progress": 60,
"type": "tts"
}
Status values: "doing", "done", "error" | Progress: 0-100
List Tasks
List current user's tasks with pagination and optional type filter.
Request
curl "https://api.kingcongstudio.com/v1/tasks?page=1&limit=20&type=tts" \
-H "Content-Type: application/json" \
-H "xi-api-key: $API_KEY"
Query Parameters
Success Response
{
"success": true,
"data": [
{
"id": "uuid_task_id",
"created_at": "2025-01-01T00:00:00.000Z",
"status": "doing",
"error_message": null,
"credit_cost": 1,
"metadata": {
"audio_url": "https://example.com/audio.mp3",
"srt_url": "https://example.com/audio.srt"
},
"type": "tts",
"progress": 60
}
],
"page": 1,
"limit": 20,
"total": 42
}
Delete Task
Delete tasks and get refund (if available).
Request
curl -X POST "https://api.kingcongstudio.com/v1/task/delete" \
-H "Content-Type: application/json" \
-H "xi-api-key: $API_KEY" \
--data-raw '{"task_ids":["uuid_task_id"]}'
Success Response
{
"success": true,
"refund_credits": 100
}
Get Credits
Returns total available credits of current user.
Request
curl "https://api.kingcongstudio.com/v1/credits" \
-H "Content-Type: application/json" \
-H "xi-api-key: $API_KEY"
Success Response
{
"success": true,
"credits": 123
}
Health Check
Check service health/config status.
Request
curl "https://api.kingcongstudio.com/v1/health-check" \
-H "Content-Type: application/json" \
-H "xi-api-key: $API_KEY"
Success Response
{
"success": true,
"data": {
"elevenlabs": "good",
"minimax": "good"
}
}
Status values: "good", "degraded", "overloaded"