Frequently asked questions
How do I get my API key?
Sign up on /get-api-key/ using Google or email plus password. Your account page displays your active API key, balance, and usage statistics. Each account holds one active key; issuing a new key immediately invalidates the previous one.
What is the base URL?
The API base URL is https://api.98kph.info/v1. Use this base URL for all requests, including the speech endpoint POST /v1/audio/speech and the voices endpoint GET /v1/voices. This structure allows compatibility with standard HTTP clients and SDKs.
Can I use the OpenAI Python SDK?
Yes. The API accepts the same request shape as the OpenAI speech endpoint. Configure your OpenAI SDK client by changing the base_url to https://api.98kph.info/v1 and providing your ClearScribe API key in the authorization header.
How do I specify the voice?
Include the voice parameter in your JSON request body. Choose from eight presets: aria, nova, luna, sage, felix, milo, atlas, or orion. Each voice supports all 23 listed languages, though you should specify the language for non-English text.
What happens if the request fails?
Failed requests are free. If synthesis fails, the charge is returned in full. You will not be billed for characters processed during a failed attempt, ensuring you only pay for successfully generated audio files.
Is there a WebSocket endpoint?
No. The API is a standard REST endpoint. There is no WebSocket support for real-time partial audio streaming. You must send the full text and receive the complete audio file upon successful completion of the request.
Do I need to install a specific library?
No. You can use any HTTP client or the official OpenAI SDK. There is no proprietary ClearScribe SDK required. Standard libraries like requests in Python or fetch in JavaScript work perfectly for integrating with the API.
How do I handle rate limits?
The limit is 60 requests per minute per key (10 per minute before the first top-up). Requests are processed sequentially, so under load, requests may queue. Implement exponential backoff or batch processing to manage high-volume generation efficiently.
What is the request body schema?
Send a JSON body with POST requests. Required fields include model (tts-1 or tts-1-hd), input (text up to 4096 characters), and voice. Optional fields include response_format (mp3, wav, opus, flac, pcm), speed (0.25–4.0), and language (ISO code).
Can I stream audio chunk by chunk?
No. The API returns the complete audio file in the response body. There is no streaming capability or WebSocket endpoint for partial audio chunks. You receive the full file only after the synthesis process completes successfully.
Does the API return metadata?
The response contains the audio file. Request metadata (time, characters, status) is kept for billing. The API response itself primarily delivers the audio data in the requested format without extensive headers.
How do I update my API key?
Issue a new key from your account dashboard on /get-api-key/. The new key becomes active immediately, and the old key stops working at once. You can generate a new key at any time to revoke access.
Is SSL required?
Yes. All API requests must be made over HTTPS to the base URL https://api.98kph.info/v1. HTTPS ensures secure transmission of your API key and text data.
What languages does the API support?
The API supports 23 languages: Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish. Any voice can speak any of these languages.
How much does the API cost?
Pricing is $10 per 1 million characters, or $0.01 per 1,000 characters. Spaces and punctuation count as characters. Failed requests are free. You can start with a $0.50 trial credit valid for 7 days if you sign in with Google.
Does the balance expire?
No. Your account balance does not expire. Top-ups via USDT (TRC-20) are credited automatically. Unused credit remains available indefinitely, allowing you to pay as you go.
Can I clone my own voice?
No. Custom voice cloning is not offered. The API uses eight fixed presets based on licensed recordings from LibriVox. You cannot upload your own voice or design a custom voice model for your specific use case.
Is there an SLA or uptime guarantee?
No. There is no Service Level Agreement (SLA) or uptime guarantee. The API is provided as-is without enterprise contracts or on-premise options. Support is available via email only, with no phone number or live chat.
First request
curl
curl https://api.98kph.info/v1/audio/speech \
-H "Authorization: Bearer $TTS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"tts-1","voice":"aria","input":"Hello from the API.","response_format":"mp3"}' \
--output hello.mp3Python (openai)
from openai import OpenAI
client = OpenAI(base_url="https://api.98kph.info/v1", api_key="tts-...")
with client.audio.speech.with_streaming_response.create(
model="tts-1", voice="nova", input="Hello from Python.", response_format="mp3"
) as response:
response.stream_to_file("hello.mp3")Node.js (openai)
import OpenAI from "openai";
import fs from "node:fs";
const client = new OpenAI({ baseURL: "https://api.98kph.info/v1", apiKey: process.env.TTS_API_KEY });
const res = await client.audio.speech.create({ model: "tts-1", voice: "milo", input: "Hello from Node.js." });
fs.writeFileSync("hello.mp3", Buffer.from(await res.arrayBuffer()));| voice | |
|---|---|
aria | female |
nova | female |
luna | female |
sage | female |
felix | male |
milo | male |
atlas | male |
orion | male |
| language | |
|---|---|
ar | العربية |
zh | 中文 |
da | Dansk |
nl | Nederlands |
en | English |
fi | Suomi |
fr | Français |
de | Deutsch |
el | Ελληνικά |
he | עברית |
hi | हिन्दी |
it | Italiano |
ja | 日本語 |
ko | 한국어 |
ms | Bahasa Melayu |
no | Norsk |
pl | Polski |
pt | Português |
ru | Русский |
es | Español |
sw | Kiswahili |
sv | Svenska |
tr | Türkçe |
Authentication
Authentication is handled via a Bearer token sent in the Authorization header. This single key authenticates all requests to the API base URL. Keep this key secure, as it provides full access to your account's balance and usage data.
You can rotate your key at any time via the dashboard. Once rotated, the old key becomes invalid immediately, ensuring no lingering access from compromised credentials.
Bearer Token Key
Include Authorization: Bearer tts-... in every request header. The key starts with tts- and is unique to your account.
- Format: Bearer tts-your_key_here
- Case-sensitive string
Single Key Management
Each account holds one active key. There are no separate keys for different environments (e.g., staging vs. production) unless you create separate accounts.
- One key per account
- No environment-specific keys
Key Rotation
Generate a new key in the dashboard. The previous key stops working instantly upon generation, preventing any further use of the old token.
- Instant invalidation
- No cooldown period
Endpoints
The API exposes three primary endpoints for generation and metadata retrieval. All endpoints require a valid Bearer token in the Authorization header and reside under the base URL https://api.98kph.info/v1. Requests follow standard JSON formats, ensuring compatibility with existing HTTP clients and SDKs.
Speech Generation POST
The core endpoint for converting text to audio. Send a POST request to /v1/audio/speech with the text, voice, and format parameters. The API returns the audio file directly in the response body, allowing immediate playback or storage.
Voices List GET
Retrieve available voices, languages, and supported formats via GET /v1/voices. This endpoint helps you dynamically populate UI dropdowns without hardcoding voice names or format options, ensuring your application stays in sync with available engine capabilities.
Models List GET
Use GET /v1/models to list available TTS models. Although the engine pricing is identical for tts-1 and tts-1-hd, this endpoint confirms available model identifiers for your integration logic.
Request Parameters
Configure the request body to control synthesis output. The input text field accepts up to 4096 characters, including spaces and punctuation. For longer texts, split the input into chunks, generate each part, and join the resulting audio files.
Select a voice preset that matches your use case, such as "aria" for narration or "atlas" for news. The engine supports 23 languages; set the optional language parameter if the script is ambiguous, otherwise it defaults to English for Latin text.
Input Text Field
Pass your text string in the input field. The API charges per character, so ensure the string length stays within the 4096-character limit per request. Characters include spaces and punctuation marks.
- Max length: 4096 characters
- Includes spaces and punctuation
- Split manually for longer content
Voice Selection
Choose from eight presets via the voice parameter. Female voices include aria, nova, luna, and sage; male voices include felix, milo, atlas, and orion. Each voice supports all 23 languages.
- 8 distinct voice presets
- Supports all 23 languages
- No custom cloning available
Speed Control
Adjust the speed parameter between 0.25 and 4.0 to modify playback rate. The default speed is 1.0. Faster speeds reduce generation time but may affect audio clarity.
- Range: 0.25 to 4.0
- Default: 1.0
- Affects generation time
Response Format
The API returns the synthesized audio file as a binary payload. You can save this directly to disk or play it in a player. The format matches your request parameters, ensuring seamless integration into your application’s audio pipeline without additional conversion steps.
Audio File Binary
The response body contains the raw audio bytes. Supported formats include mp3, wav, opus, flac, and pcm. Each file is self-contained and ready for playback.
Content-Type Header
The server sets the Content-Type header to match the requested response_format. For example, audio/mpeg for mp3 or audio/wav for wav files. This allows your client to handle the data correctly.
- audio/mpeg for mp3
- audio/wav for wav
- audio/opus for opus
- audio/flac for flac
- audio/pcm for pcm
Error JSON Structure
Errors return a JSON object with an error field. Include a message describing the issue and a type identifying the error category. Check HTTP status codes like 400 or 429 for specific failure reasons.
- error: object
- message: string
- type: string
SDK Integration
Our API mirrors the OpenAI speech endpoint structure, allowing you to reuse existing OpenAI SDKs with minimal configuration. By simply adjusting the base URL, you can integrate our text-to-speech capabilities into your application without rewriting your data parsing logic.
OpenAI SDK Config
Use the official OpenAI SDK for Python or Node.js. Set the API key via standard environment variables or explicit initialization. The request payload remains identical to the OpenAI tts-1 models, ensuring seamless migration.
- Initialize client with
base_url=https://api.98kph.info/v1 - Use standard
tts-1ortts-1-hdmodel strings - Pass
input,voice, andresponse_formatas standard fields
Base URL Override
The core integration point is overriding the default API endpoint. Point your SDK client to https://api.98kph.info/v1 instead of the OpenAI origin. This directs all POST /v1/audio/speech requests to our infrastructure while maintaining the same JSON schema.
Library Compatibility
Since we follow the OpenAI request shape, any library compatible with that schema works here. This includes standard HTTP clients like requests in Python or fetch in JavaScript. No proprietary wrapper is required for basic synthesis.
Rate Limits
Rate limits protect API stability during high-volume generation. Your single API key allows up to 60 requests per minute once your account is active and funded. Each request counts toward this limit, regardless of audio length.
New accounts start with a 10 requests per minute limit. This restricts rapid-fire testing but ensures fair usage during the initial phase.
60 Requests Per Minute
The standard limit is 60 requests per minute per key. This applies to all POST /v1/audio/speech calls. If you exceed this, you receive a 429 Too Many Requests error.
Requests are processed sequentially under load. Short phrases may take a few seconds, while longer texts take longer. Ensure your client handles 429 responses by backing off.
Initial 10 RPM Limit
Newly created accounts start with a 10 requests per minute limit. This prevents abuse and ensures stable queue processing during the trial period.
The limit remains in effect until you top up your balance. Once a minimum $5 USDT transfer is confirmed, the limit increases to 60 RPM.
- Initial limit: 10 RPM
- Applies to all new accounts
- Prevents rapid-fire abuse
Limit Increase
Top up your balance with USTRC20 to increase your limit. The system automatically upgrades your account to 60 RPM upon confirmation.
There is no maximum limit.
- Top up via USDT TRC-20
- Automatic limit increase
- Minimum $5 top-up

Error Handling
Reliable error handling ensures your integration remains robust when synthesis fails or quotas are exceeded. Understanding the API's response structure allows for immediate corrective action without manual intervention.
HTTP Status Codes
The API returns standard HTTP codes to indicate request status. A 200 OK confirms successful audio generation. Use 400 Bad Request for invalid parameters, 401 Unauthorized for missing or invalid keys, and 429 Too Many Requests when exceeding the 60 RPM limit.
- 200: Success
- 400: Invalid input or parameters
- 401: Authentication failure
- 429: Rate limit exceeded
Error Message Format
Errors return a JSON object with an error key containing a code and message. This structure allows for programmatic parsing to identify specific issues, such as text exceeding the 4096-character limit or an unsupported voice ID.
- Parse
error.codefor logic branching - Log
error.messagefor debugging
Retry Logic
Implement exponential backoff for 429 and 500-series errors. Since requests are processed sequentially, brief delays prevent queue congestion. Failed requests are free, so idempotent retries are safe without double-billing concerns.
Code Examples
The API follows the OpenAI speech endpoint structure, allowing you to reuse existing client libraries by simply overriding the base URL. This ensures that your integration remains lightweight and compatible with standard HTTP clients.
cURL Command
Use this command to generate audio from text. Replace YOUR_API_KEY with your bearer token and adjust the voice or format as needed.
- POST https://api.98kph.info/v1/audio/speech
- Headers: Authorization: Bearer YOUR_API_KEY, Content-Type: application/json
- Body: {"model": "tts-1", "input": "Hello world", "voice": "nova", "response_format": "mp3"}
Python Script
Utilize the OpenAI Python SDK with a custom base URL to integrate seamlessly. Ensure you handle character limits of 4096 per request.
- import openai
- client = openai.OpenAI(base_url="https://api.98kph.info/v1", api_key="YOUR_API_KEY")
- audio = client.audio.speech.create(model="tts-1", voice="nova", input="Test text", response_format="mp3")
- audio.stream_to_file("output.mp3")
JavaScript Fetch
Make a standard fetch request to the speech endpoint. Parse the binary response to save the audio file locally or play it in the browser.
- fetch('https://api.98kph.info/v1/audio/speech', {
- method: 'POST',
- headers: { 'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' },
- body: JSON.stringify({ model: 'tts-1', voice: 'nova', input: 'Hello world', response_format: 'mp3' })
- }).then(res => res.blob().then(blob => { /* save blob */ }))
Pricing and Payment
ClearScribe uses a straightforward character-based pricing model: $10 per 1 million characters, or $0.01 per 1,000 characters. Spaces and punctuation count toward this total. Failed requests are free, with the charge returned in full if synthesis fails.
Payments are processed via USDT on the TRON network (TRC-20). There are no monthly plans, subscriptions, or invoices with VAT. The minimum top-up is $5, and credits are automatically added to your balance within minutes of transfer.
Character-Based Pricing
Calculate costs directly from text length. Since spaces count, a 4,000-character request costs $0.04. Long texts are split into parts, but each chunk is billed individually. This linear model ensures you only pay for what you generate.
USDT Top-Up
Send USDT (TRC-20) to your unique deposit address. The system detects the transaction on the TRON network and updates your balance automatically. There is no manual review or waiting period beyond network confirmation times, typically a few minutes.
Balance never expires. You can top up any amount above the $5 minimum. We do not accept credit cards, PayPal, or traditional bank transfers.
- Supported currency: USDT (TRC-20)
- Minimum deposit: $5
- Processing time: Automatic, within minutes after network confirmation
Free Trial Credit
New accounts created via Google sign-in receive $0.50 in trial credit, valid for 7 days. This covers approximately 50,000 characters, allowing you to test integration without immediate payment.
Accounts created with email and password start with zero balance and no trial credit. Top-up is required to begin generating audio.
- Eligible: Google sign-in accounts only
- Amount: $0.50 (~50,000 characters)
- Validity: 7 days from creation
Voices and Languages
ClearScribe provides eight distinct voice presets and supports 23 languages. Any voice can speak any of the 23 languages, allowing you to select the most appropriate tone regardless of the target language.
Audio is returned in standard formats including MP3, WAV, Opus, FLAC, and PCM. Each generated file contains an inaudible watermark to identify synthetic speech.
8 Voice Presets
Select from four female and four male voices, each optimized for specific use cases.
Females: Aria (warm narrator), Nova (upbeat), Luna (storytelling), Sage (instructional).
Males: Felix (energetic promo), Milo (conversational), Atlas (neutral news), Orion (documentary).
23 Supported Languages
Supported languages include Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish.
If the language parameter is omitted, the system guesses based on the script. Latin text defaults to English.
Not supported: Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, Bengali, and others.
Audio Formats
Choose between MP3, WAV, Opus, FLAC, or PCM based on your storage and latency needs.
Format selection is part of the request body and does not affect pricing or speed.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. The management overhead of Google’s ecosystem can increase development time.
23 languages
Any voice speaks any of these languages.
