GetRun by Getcore API Documentation

Docs / audio / Gemini 3.8 Flash TTS

Gemini 3.8 Flash TTS online

Text-to-speech ekspresif untuk dialog sampai dua pembicara, dengan kontrol gaya, emosi, pace, dan filler words natural.

Rp Rp0,28 / karakter dialog ⏱ ±5–120 detik perkiraan waktu google/gemini-3-8-flash-tts model id Up to 2 speakersExpressive speech101 languages

1 · Create a task

Kirim permintaan untuk membuat tugas generasi audio. Wajib header Idempotency-Key. Saldo direservasi sebesar estimasi; task gagal tidak ditagih.

POSThttps://getrun.id/v1/tasks
curl -X POST https://getrun.id/v1/tasks \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: my-task-001" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemini-3-8-flash-tts",
    "input": {
      "speakers": [
        {
          "speaker_id": "Speaker 1",
          "voice_name": "Fola"
        }
      ],
      "temperature": 1,
      "filler_words": false,
      "dialogue_turns": [
        {
          "text": "Halo! Selamat datang di GetRun. Semua model AI tersedia dalam satu API.",
          "style": "Warm and clear, with a relaxed pace.",
          "speaker_id": "Speaker 1"
        }
      ]
    }
  }'
const res = await fetch('https://getrun.id/v1/tasks', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer YOUR_API_KEY',
    'Idempotency-Key': 'my-task-001',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "model": "google/gemini-3-8-flash-tts",
    "input": {
      "speakers": [
        {
          "speaker_id": "Speaker 1",
          "voice_name": "Fola"
        }
      ],
      "temperature": 1,
      "filler_words": false,
      "dialogue_turns": [
        {
          "text": "Halo! Selamat datang di GetRun. Semua model AI tersedia dalam satu API.",
          "style": "Warm and clear, with a relaxed pace.",
          "speaker_id": "Speaker 1"
        }
      ]
    }
  }),
});
const task = await res.json();
import requests

res = requests.post(
    "https://getrun.id/v1/tasks",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Idempotency-Key": "my-task-001",
    },
    json={
      "model": "google/gemini-3-8-flash-tts",
      "input": {
        "speakers": [
          {
            "speaker_id": "Speaker 1",
            "voice_name": "Fola"
          }
        ],
        "temperature": 1,
        "filler_words": false,
        "dialogue_turns": [
          {
            "text": "Halo! Selamat datang di GetRun. Semua model AI tersedia dalam satu API.",
            "style": "Warm and clear, with a relaxed pace.",
            "speaker_id": "Speaker 1"
          }
        ]
      }
    },
)
task = res.json()

Input parameters

NameTypeRequiredDescriptionExample
speakers array Yes [object Object]
temperature number No (min 0, max 2) 1
filler_words boolean No false
dialogue_turns array Yes [object Object]

2 · Poll the result

Ambil status tugas hingga selesai — poll tiap 2–5 detik.

GEThttps://getrun.id/v1/tasks/{task_id}

Respons saat sukses:

{
  "id": "task_9f2c…",
  "status": "succeeded",
  "model": "google/gemini-3-8-flash-tts",
  "price": {
    "currency": "IDR",
    "estimated": 2800,
    "reserved": 2800,
    "final": 2800
  },
  "output": {
    "urls": [
      "https://storage.getcore.id/outputs/task_9f2c…/0.mpeg"
    ],
    "expires_at": "(7 hari setelah selesai)"
  }
}

Status values

StatusKeterangan
queuedTugas sedang diantrikan.
processingSedang diproses.
succeededBerhasil.
failedGagal — lihat error detail, tidak ditagih.
Output bertipe audio/mpeg, dilayani dari CDN kami dan berlaku 7 hari — salin ke penyimpananmu sendiri untuk jangka panjang.

Best practices

Bila generation gagal, task berstatus failed dengan error.code ternormalisasi (mis. moderation_blocked, upstream_error) dan price.final = 0 — saldo dikembalikan otomatis. Daftar lengkap kode error ada di Error handling. Selalu kirim Idempotency-Key unik per tugas agar retry aman.

Coba tanpa kode: jalankan model ini langsung dari Playground atau lihat di API Market.

On this page
1 · Create a task Input parameters 2 · Poll the result Status values Best practices
Pricing summary
Gemini 3.8 Flash TTS
Rp0,28 / karakter dialog
  • Harga jelas, pembayaran mudah.
  • Transparan, tanpa biaya tersembunyi.
  • Task gagal tidak ditagih.
Try in Playground ↗

Eksperimen model ini langsung di Playground untuk hasil instan.

Model details
Model IDgoogle/gemini-3-8-flash-tts
Modalityaudio
Typical latency±5–120 detik
Output typeaudio/mpeg
API versionv1
Need help?

Lihat daftar error umum di Error handling atau hubungi support@getcore.id.