Unlock exclusive introductory pricing for the newly launched Gemini 3.5 Flash.
O

TTS

Masukan:$12/M
Keluaran:$12/M
Dirilis:Oct 1, 2025

OpenAI Text-to-Speech

Baru
Penggunaan komersial

Technical Specifications of tts

AttributeDetails
Model Nametts
ProviderOpenAI
CategoryText-to-Speech
InputText
OutputAudio
Context WindowN/A
Typical Use CasesVoice generation, narration, accessibility, audio content creation
PricingRefer to CometAPI pricing for tts

What is tts?

tts is CometAPI’s platform identifier for OpenAI Text-to-Speech. It enables developers to convert written text into natural-sounding audio for applications such as assistants, audiobooks, customer support tools, accessibility features, and media workflows.

Through CometAPI, tts can be accessed using a unified API format, making it easier to integrate speech synthesis into products without managing multiple provider-specific interfaces. It is suited for teams that want reliable text-to-audio generation in a straightforward API workflow.

Main features of tts

  • Natural speech generation: Converts input text into clear, human-like spoken audio suitable for many application scenarios.
  • Unified API access: Available through CometAPI’s standardized interface, simplifying integration and provider management.
  • Developer-friendly workflow: Designed for quick implementation in apps, services, and backend pipelines that need speech output.
  • Broad application fit: Useful for accessibility tools, virtual assistants, content narration, training materials, and interactive experiences.
  • Scalable deployment: Can be used in prototypes as well as production systems that require consistent text-to-speech generation.

How to access and integrate tts

Step 1: Sign Up for API Key

First, sign up for a CometAPI account and obtain your API key. After logging into the dashboard, create or copy your API key and store it securely. This key will be used to authenticate all requests to the tts API.

Step 2: Send Requests to tts API

Use CometAPI’s standard API endpoint and specify the model as tts. Then send your input text in the request body together with any required parameters.

curl --request POST \
  --url https://api.cometapi.com/v1/audio/speech \
  --header "Authorization: Bearer YOUR_COMETAPI_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "model": "tts",
    "input": "Hello! This is a text-to-speech request using CometAPI."
  }'

Step 3: Retrieve and Verify Results

After submitting the request, CometAPI will return the generated audio result or a response containing the audio output details, depending on your integration method. Verify that the response is successful, confirm the audio content matches the input text, and handle any API errors or retries as needed in your application.

Harga untuk TTS

Jelajahi harga kompetitif untuk TTS, dirancang untuk berbagai anggaran dan kebutuhan penggunaan. Paket fleksibel kami memastikan Anda hanya membayar untuk apa yang Anda gunakan, memudahkan untuk meningkatkan skala seiring berkembangnya kebutuhan Anda. Temukan bagaimana TTS dapat meningkatkan proyek Anda sambil menjaga biaya tetap terkendali.

ModelComet Price (USD / M Tokens)Official Price (USD / M Tokens)Discount
gpt-4o-mini-tts
Masukan:$9.6/M
Keluaran:$9.6/M
Masukan:$12/M
Keluaran:$12/M
-20%
kling_tts
Per Permintaan:$0.0056
Per Permintaan:$0.007
-20%
tts-1
Masukan:$12/M
Keluaran:$12/M
Masukan:$15/M
Keluaran:$15/M
-20%
tts-1-1106
Masukan:$12/M
Keluaran:$12/M
Masukan:$15/M
Keluaran:$15/M
-20%
tts-1-hd
Masukan:$24/M
Keluaran:$24/M
Masukan:$30/M
Keluaran:$30/M
-20%
tts-1-hd-1106
Masukan:$24/M
Keluaran:$24/M
Masukan:$30/M
Keluaran:$30/M
-20%

Kode contoh dan API untuk TTS

Akses kode sampel komprehensif dan sumber daya API untuk TTS guna mempermudah proses integrasi Anda. Dokumentasi terperinci kami menyediakan panduan langkah demi langkah, membantu Anda memanfaatkan potensi penuh TTS dalam proyek Anda.

Versi TTS

Alasan TTS memiliki beberapa _snapshot_ mungkin mencakup faktor-faktor potensial seperti variasi keluaran setelah pembaruan yang memerlukan _snapshot_ lama untuk konsistensi, memberikan masa transisi bagi pengembang untuk beradaptasi dan bermigrasi, serta _snapshot_ berbeda yang sesuai dengan _endpoint_ global atau regional untuk mengoptimalkan pengalaman pengguna. Untuk perbedaan detail antar versi, silakan merujuk ke dokumentasi resmi.

Version
gpt-4o-mini-tts
kling_tts
tts-1
tts-1-1106
tts-1-hd
tts-1-hd-1106