Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Gemini 3.8 Flash Lite TTS

google/gemini-3.8-flash-lite-tts

Gemini 3.8 Flash Lite TTS by Google turns text into expressive speech with 30 prebuilt voices and natural-language style direction.

ราคาพื้นฐาน
$0.03USD / การรัน
การทำงาน
async
ประเภโมเดล
audio
ฟิลด์อินพุต
3
เส้นทางโปรดักชัน

ลองใช้โมเดล

Playground

เปิด Playground
อินพุต
Verbatim text to speak. Put delivery directions in style_instructions; inline vocal events may use <laugh> or <sigh>. The provider limits the complete input to 8,192 tokens.
Delivery style, separate from the spoken transcript.
Prebuilt voice for single-speaker speech.
เอาต์พุตตัวอย่าง
  1. ต้องการทำอะไรต่อ

    เปิดต้นฉบับ

ตัวอย่าง

เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground

การ์ดโมเดล

ข้อมูลจำเพาะ

ราคา

ราคาพื้นฐาน
$0.03 / การรัน

บริบทและ modalities

อินพุต
กำหนดตามสคีมา
เอาต์พุต
audio

ความสามารถ

แชท
ไม่รองรับ
วิชัน
ไม่รองรับ
การให้เหตุผล
ไม่รองรับ
เอาต์พุตแบบมีโครงสร้าง
ไม่รองรับ
การเรียกใช้ฟังก์ชัน
ไม่รองรับ
อินพุตเสียง
ไม่รองรับ

การเข้าถึง

ผู้ให้บริการ
Google
รหัสโมเดล
google/gemini-3.8-flash-lite-tts
การทำงาน
async
Base URL
https://api.sandbase.ai
API
Unified Run API
Endpoint
/v1/run

API README

Gemini 3.8 Flash Lite TTS

Gemini 3.8 Flash Lite TTS: the lower-cost Gemini voice model, with the same 30 prebuilt voices and natural-language style direction.

Fields

FieldTypeDefaultNotes
promptstring, required—Text to speak.
style_instructionsstring—How to say it, e.g. “calm newsreader”.
voiceAchernar / Achird / Algenib / Algieba / Alnilam / Aoede / Autonoe / Callirrhoe / Charon / Despina / Enceladus / Erinome / Fenrir / Gacrux / Iapetus / Kore / Laomedeia / Leda / Orus / Pulcherrima / Puck / Rasalgethi / Sadachbia / Sadaltager / Schedar / Sulafat / Umbriel / Vindemiatrix / Zephyr / ZubenelgenubiKorePrebuilt voice.

Billing

$0.03 per started 1,000 characters of text, with a one-unit minimum.

TextPrice
200 characters$0.03
1,000 characters$0.03
2,500 characters$0.09

Failed runs are not charged.

Prompting

  • Keep style direction short and concrete.

Limits

  • Single speaker per request.

Also on SandBase

Related: google/gemini-3.8-flash-tts (higher quality), google/gemini-3.1-flash-tts (multi-speaker).

เริ่มสร้าง

ส่งคำขอแรกของคุณ

เอ็นด์พอยต์ที่ใช้งานร่วมกับ OpenAI ได้ พร้อมการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์

Production API
เอ็นด์พอยต์ Unified Run API
https://api.sandbase.ai/v1/run
รหัสโมเดล
google/gemini-3.8-flash-lite-tts
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "model": "google/gemini-3.8-flash-lite-tts",
  "voice": "Kore",
  "prompt": "Have a wonderful day!",
  "style_instructions": "cheerful and friendly"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
  status=$(printf '%s' "$result" | jq -r .status)
  case "$status" in completed|failed|timeout) break ;; esac
  sleep 2
  result=$(curl --fail-with-body --silent \
    -H "Authorization: Bearer $SANDBASE_API_KEY" \
    "https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"
01

สคีมาขาเข้า

3 พารามิเตอร์ · จำเป็น 1 · ไม่บังคับ 2

พารามิเตอร์ประเภทจำเป็นคำอธิบาย
promptstringจำเป็นVerbatim text to speak. Put delivery directions in style_instructions; inline vocal events may use <laugh> or <sigh>. The provider limits the complete input to 8,192 tokens. · ความยาวต่ำสุด: 1
voicestringไม่บังคับPrebuilt voice for single-speaker speech. · ตัวเลือก: Achernar, Achird, Algenib, Algieba, Alnilam, Aoede, Autonoe, Callirrhoe, Charon, Despina, Enceladus, Erinome, Fenrir, Gacrux, Iapetus, Kore, Laomedeia, Leda, Orus, Pulcherrima, Puck, Rasalgethi, Sadachbia, Sadaltager, Schedar, Sulafat, Umbriel, Vindemiatrix, Zephyr, Zubenelgenubi · ค่าเริ่มต้น: "Kore"
AchernarAchirdAlgenibAlgiebaAlnilamAoedeAutonoeCallirrhoeCharonDespinaEnceladusErinomeFenrirGacruxIapetusKoreLaomedeiaLedaOrusPulcherrimaPuckRasalgethiSadachbiaSadaltagerSchedarSulafatUmbrielVindemiatrixZephyrZubenelgenubi
style_instructionsstringไม่บังคับDelivery style, separate from the spoken transcript.
02

สคีมาเอาต์พุต

ฟิลด์ประเภทคำอธิบาย
idstringตัวระบุเฉพาะสำหรับงาน generation
statusstringสถานะงาน: pending, running, completed, failed, timeout
modelstringโมเดลที่ใช้สำหรับ generation
outputsarrayอาร์เรย์ของรายการเอาต์พุต
outputs[].urlstringURL ของอาร์ติแฟกต์ที่สร้างขึ้น
outputs[].content_typestringประเภท MIME (เช่น image/png, video/mp4)
errorobject | nullรายละเอียดข้อผิดพลาดหากล้มเหลว, เป็น null เมื่อสำเร็จ
error.typestringรหัสประเภทข้อผิดพลาดที่เครื่องอ่านได้
error.messagestringคำอธิบายข้อผิดพลาดที่มนุษย์อ่านได้

เวิร์กโฟลว์แบบอะซิงก์

โมเดลนี้ทำงานแบบอะซิงโครนัส ส่งคำขอแล้วคอยตรวจผลลัพธ์

  1. ส่ง: POST ไปที่ /v1/run แล้วอ่าน id ที่ส่งกลับมา
  2. คอยตรวจ: GET /v1/run/{id} จนกว่าสถานะจะเป็น completed, failed หรือ timeout
  3. ดึงข้อมูล: อ่าน outputs จากการตอบกลับที่เสร็จสมบูรณ์

เลือกโมเดลของคุณ

เปรียบเทียบโมเดล

โมเดลภาพและวิดีโอทั้งหมด
โมเดลประเภทราคามาตรฐานเปิดตัว
Gemini 3.8 Flash Lite TTSโมเดลนี้
Google
เสียง$0.03 / ครั้ง25 ก.ย. 2569
Googleเสียง$0.04 / ครั้ง25 ก.ย. 2569
Googleเสียง$0.10 / ครั้ง15 ก.ย. 2569
Googleเสียง$0.05 / ครั้ง16 เม.ย. 2569
Googleเสียง$0.08 / ครั้ง30 มี.ค. 2569
Googleเสียง$0.04 / ครั้ง30 มี.ค. 2569

คำถาม

คำถามที่พบบ่อย

ฉันจะเรียก Google Gemini 3.8 Flash Lite TTS ผ่าน SandBase ได้อย่างไร?

สร้าง SandBase API key แล้วส่งคำขอด้วย model ID "google/gemini-3.8-flash-lite-tts" ไปที่ Unified Run API (/v1/run) ที่ https://api.sandbase.ai ตัวอย่างคำขอบนหน้านี้แสดง payload ที่ถูกต้องทั้งหมด

ฉันจำเป็นต้องมีบัญชี Google แยกต่างหากไหม?

ไม่จำเป็น SandBase API key และยอดคงเหลือหนึ่งชุดให้คุณเข้าถึง Google Gemini 3.8 Flash Lite TTS และโมเดลอื่น ๆ ในแค็ตตาล็อกได้ คุณไม่ต้องสมัครใช้งานกับ Google แยกต่างหาก