← Back to catalog

Kling Text to Audio

Live
audiotts

Generate audio from a text prompt with Kling.

Endpoint

POSThttps://brahmand-api.bulletshorts.co/v1/audio/kling-text-to-audio

Authenticate with the X-API-Key request header.

Pricing

3 credits / sec1 credit = ₹1. Billed on success: per second of output.

List price. Volume / bulk customers get a discounted rate — contact us for account pricing.

Parameters

NameTypeRequiredDescriptionDefault / options
promptstringrequiredText prompt describing the desired output.
durationnumberoptionalAudio length in seconds (1-30).
default: 10
callback_urlstringoptionalWebhook URL notified when the task completes.

Request

curl
curl -X POST https://brahmand-api.bulletshorts.co/v1/audio/kling-text-to-audio \
  -H "X-API-Key: $TRINETRA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"Gentle rain on a tin roof with distant thunder","duration":10}'
request body (JSON)
{
  "prompt": "Gentle rain on a tin roof with distant thunder",
  "duration": 10
}

Response

Submitting a job returns 202 Accepted with a job id. Poll GET /v1/jobs/{id} until the job reaches a terminal state, or register a webhook to be notified.

202 Accepted
{
  "job_id": "job_klingtexttoaudio_a1b2c3",
  "status": "queued"
}
GET /v1/jobs/{id} → succeeded
{
  "id": "job_klingtexttoaudio_a1b2c3",
  "model": "kling-text-to-audio",
  "status": "succeeded",
  "output": {
    "outputs": [
      {
        "url": "https://cdn.trinetra.ai/out/kling-text-to-audio/a1b2c3.mp3",
        "type": "audio"
      }
    ]
  },
  "credits_charged": 10
}

Webhook: set a webhook_url on your API key to receive a POST with the terminal job document instead of polling.