Audio Sound Effects
curl --request POST \
--url https://kymaapi.com/v1/audio/sfx \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"prompt": "<string>",
"duration_seconds": 123,
"prompt_influence": 123,
"response_format": "<string>"
}
'import requests
url = "https://kymaapi.com/v1/audio/sfx"
payload = {
"model": "<string>",
"prompt": "<string>",
"duration_seconds": 123,
"prompt_influence": 123,
"response_format": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: '<string>',
prompt: '<string>',
duration_seconds: 123,
prompt_influence: 123,
response_format: '<string>'
})
};
fetch('https://kymaapi.com/v1/audio/sfx', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://kymaapi.com/v1/audio/sfx",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => '<string>',
'prompt' => '<string>',
'duration_seconds' => 123,
'prompt_influence' => 123,
'response_format' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://kymaapi.com/v1/audio/sfx"
payload := strings.NewReader("{\n \"model\": \"<string>\",\n \"prompt\": \"<string>\",\n \"duration_seconds\": 123,\n \"prompt_influence\": 123,\n \"response_format\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://kymaapi.com/v1/audio/sfx")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"<string>\",\n \"prompt\": \"<string>\",\n \"duration_seconds\": 123,\n \"prompt_influence\": 123,\n \"response_format\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://kymaapi.com/v1/audio/sfx")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"<string>\",\n \"prompt\": \"<string>\",\n \"duration_seconds\": 123,\n \"prompt_influence\": 123,\n \"response_format\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyAudio Sound Effects
Generate non-speech audio from a text prompt. Synchronous, flat per-generation pricing.
POST
/
v1
/
audio
/
sfx
Audio Sound Effects
curl --request POST \
--url https://kymaapi.com/v1/audio/sfx \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"prompt": "<string>",
"duration_seconds": 123,
"prompt_influence": 123,
"response_format": "<string>"
}
'import requests
url = "https://kymaapi.com/v1/audio/sfx"
payload = {
"model": "<string>",
"prompt": "<string>",
"duration_seconds": 123,
"prompt_influence": 123,
"response_format": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: '<string>',
prompt: '<string>',
duration_seconds: 123,
prompt_influence: 123,
response_format: '<string>'
})
};
fetch('https://kymaapi.com/v1/audio/sfx', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://kymaapi.com/v1/audio/sfx",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => '<string>',
'prompt' => '<string>',
'duration_seconds' => 123,
'prompt_influence' => 123,
'response_format' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://kymaapi.com/v1/audio/sfx"
payload := strings.NewReader("{\n \"model\": \"<string>\",\n \"prompt\": \"<string>\",\n \"duration_seconds\": 123,\n \"prompt_influence\": 123,\n \"response_format\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://kymaapi.com/v1/audio/sfx")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"<string>\",\n \"prompt\": \"<string>\",\n \"duration_seconds\": 123,\n \"prompt_influence\": 123,\n \"response_format\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://kymaapi.com/v1/audio/sfx")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"<string>\",\n \"prompt\": \"<string>\",\n \"duration_seconds\": 123,\n \"prompt_influence\": 123,\n \"response_format\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodySound effects are paused. As of 2026-09-12 no SFX model is being served — no customer jobs in the preceding 30 days. The endpoint still exists; a request returns
404 model_not_found. Nothing was deleted. This page is no longer in the docs navigation; it records how the endpoint behaves.curl -X POST https://kymaapi.com/v1/audio/sfx \
-H "Authorization: Bearer $KYMA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "heavy wooden door slamming shut in stone hallway, with reverb",
"duration_seconds": 3
}' \
--output door.mp3
Request
application/json body.
string
default:"elevenlabs-sfx"
SFX model. Currently only
elevenlabs-sfx is shipped.string
required
Description of the sound. Max 500 characters. Also accepts
text as an alias.number
Optional duration
0.5 to 22 seconds. Omit to let the model auto-pick a sensible length.number
default:"0.3"
How literal the prompt should be (0 = creative, 1 = strict). Range
0–1.string
default:"mp3_44100_128"
Audio format. Same options as audio/speech.
Response
200 OK with audio bytes. Flat pricing — duration doesn’t change the cost.
| Header | What |
|---|---|
X-Kyma-Model | elevenlabs-sfx |
X-Kyma-Cost-USD | flat $0.027 per generation |
X-Kyma-Balance-USD | remaining balance |
Errors
| Status | error.code | When |
|---|---|---|
400 | not_an_sfx_model | model is not an SFX SKU |
400 | prompt_too_long | prompt > 500 chars |
400 | invalid_duration | duration_seconds outside [0.5, 22] |
401 | auth_error | missing or invalid API key |
402 | billing_error | balance too low |
502 | provider_error | upstream provider failure |
See also
POST /v1/audio/speech— voice narration