Frequently asked questions
What is the exact endpoint URL?
The endpoint is POST https://api.nohu666ok.com/v1/audio/speech. This follows the same request shape as the OpenAI speech endpoint, allowing you to use standard HTTP clients or the official OpenAI SDK by simply changing the base URL to https://api.nohu666ok.com/v1.
Do I need to install extra libraries?
No specific library is required. You can use any standard HTTP client or the official OpenAI SDK. If using the OpenAI SDK, update the base_url to https://api.nohu666ok.com/v1 and provide your API key for authentication in the request headers.
How do I handle the audio response in Node.js?
The API returns the audio file directly in the response body. In Node.js, you can pipe the response stream directly to a file or buffer. The response format depends on your request, supporting mp3, wav, opus, flac, or pcm outputs for your fintech notifications.
Can I use the same key for staging and production?
Yes, you can use the same API key for both environments. Each account has one active key that works across all endpoints. If you need a fresh key, you can issue a new one at any time, which immediately invalidates the previous key.
What happens if I exceed the rate limit?
The rate limit is 60 requests per minute per key. If you exceed this, subsequent requests may be queued or rejected. Before your first top-up, the limit is 10 requests per minute. Failed requests are free and the charge is returned in full.
Is the response binary or base64 encoded?
The response contains the raw binary audio data. It is not base64 encoded. You receive the audio file directly in the response body, which you can save or stream immediately to your users for transaction alerts without additional decoding steps.
How do I set the language explicitly?
Include the 'language' field in your JSON body with an ISO code. If omitted, the language is guessed from the script, defaulting to English for Latin text. Explicitly setting it ensures correct pronunciation for languages like Arabic, Chinese, or Hindi in your notifications.
Can I request a specific audio format?
Yes, use the 'response_format' field in your request. Supported formats are mp3, wav, opus, flac, and pcm. This allows you to choose the best balance between quality and file size for your fintech application's delivery requirements.
What is the maximum text length?
The maximum input text length is 4096 characters per request. For longer texts, split them into parts of up to 4096 characters, generate audio for each part, and join the resulting audio files. This ensures consistent quality and manageable request sizes.
How do I revoke an API key?
You can revoke your current key by issuing a new one. When you generate a new key, the old one stops working immediately. This is done through your account dashboard on the /get-api-key/ page, allowing quick rotation without downtime.
Does the API support chunked responses?
No, the API does not support streaming or chunked responses. It returns the complete audio file once synthesis is finished. For long texts, you must split the input manually and join the resulting audio files after each request completes.
Are there SDKs for Python and Ruby?
There is no official SDK for this API, but you can use the official OpenAI SDKs for Python and Ruby. Simply configure the base_url to https://api.nohu666ok.com/v1. You can also use any standard HTTP library for direct requests.
How do I debug a failed request?
Check the HTTP status code and response body for error details. Failed requests are free, and the charge is returned in full. Ensure your API key is valid, the text is under 4096 characters, and the voice parameter matches one of the eight presets.
First request
curl
curl https://api.nohu666ok.com/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.nohu666ok.com/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.nohu666ok.com/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 passed in the Authorization header. Each account maintains a single active key, ensuring clear audit trails for billing and usage tracking within your fintech infrastructure.
Use the key provided on your /get-api-key/ dashboard. It remains valid until you generate a replacement, at which point the old key stops working immediately.
Bearer token in header
Include the header Authorization: Bearer tts-your-api-key in every request. The prefix tts- identifies your key type. Ensure no extra whitespace surrounds the token to avoid 401 errors.
- Header: Authorization
- Value: Bearer tts-...
- Case-sensitive prefix
One key per account
Your account is linked to exactly one active API key at any time. This simplifies integration for startups who need to rotate credentials without managing multiple secret stores simultaneously.
Instant revocation on new key
Generating a new key from the dashboard instantly invalidates the previous one. This allows immediate revocation if a key is compromised, without waiting for a manual process.
Quickstart with cURL
Send a POST request to the speech endpoint with your Bearer token. The API returns an audio file directly in the response body, allowing immediate playback or storage for transaction alerts.
Configure the JSON body with the text input and voice preset. Ensure the text does not exceed 4096 characters to avoid request errors during synthesis.
Basic POST request example
Use curl to send your text to the API. Replace YOUR_API_KEY with your key from /get-api-key/.
```bash curl -X POST "https://api.nohu666ok.com/v1/audio/speech" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "tts-1", "input": "Your payment of $50 was received.", "voice": "sage"}' \ --output transaction_alert.mp3 ```
Required JSON body fields
The request requires model, input, and voice. Optional fields include response_format, speed, and language.
model accepts tts-1 or tts-1-hd. input is the text string up to 4096 characters. voice selects one of the eight presets like sage or nova.
Response format handling
The API returns binary audio data. Save the output to a file using curl’s --output flag.
Supported formats include mp3, wav, opus, flac, and pcm. Choose mp3 for general web use or wav for higher quality archival needs.
OpenAI SDK Integration
BankSpeak’s API mirrors the OpenAI speech endpoint structure, allowing fintech teams to integrate text-to-speech without rewriting their existing client logic. By simply redirecting the API base URL, your current OpenAI SDK implementations can immediately process transaction alerts and user notifications.
Change base_url to our endpoint
Update your SDK configuration to point to https://api.nohu666ok.com/v1 instead of the default OpenAI endpoint. This single change routes all speech generation requests through BankSpeak’s infrastructure while maintaining the standard request shape.
Use standard Audio SDK
Utilize the official OpenAI SDKs (Python, Node.js, etc.) exactly as you would for standard speech synthesis. Pass your BankSpeak API key via the Authorization: Bearer header, and the SDK handles the JSON body formatting for model, input, and voice parameters automatically.
Compatible with existing code
No complex migration is required for basic use cases. If your fintech app already uses OpenAI’s audio endpoints for other features, switching the base URL allows you to generate compliant voice notifications for user alerts using the same code structure.
Request Parameters
Configure the synthesis engine and output parameters within your JSON payload. Select the model version, assign a specific voice preset, and adjust speed or language to match your notification requirements.
Model selection (tts-1, tts-1-hd)
Both "tts-1" and "tts-1-hd" use the same engine and price ($0.01 per 1,000 characters). Choose based on your latency needs rather than quality differences, as the engine is identical.
Voice preset selection
Assign one of eight licensed presets. Use "atlas" (neutral, news) for transaction alerts or "milo" (friendly, conversational) for account updates. Any voice can speak any of the 23 supported languages.
- aria: warm, clear narrator
- nova: bright, upbeat
- luna: soft, storytelling
- sage: calm, instructional
- felix: energetic, promo
- milo: friendly, conversational
- atlas: neutral, news
- orion: deep, documentary
Speed and language options
Set speed between 0.25 and 4.0 to adjust playback rate. The language field accepts ISO codes; if omitted, the API guesses from the script (Latin defaults to English). Explicitly set it for non-English Latin text.
Response Formats
The API returns audio files in formats that fit your fintech delivery pipeline. You choose the output type via the response_format parameter in your request, allowing you to balance file size, quality, and compatibility for transaction alerts.
Each generated file contains an inaudible watermark identifying it as synthetic speech. The response body contains the raw audio data, which you can save directly or stream to the user’s device.
MP3 for web compatibility
MP3 is the standard choice for web-based notification players and most mobile applications. It offers broad compatibility with existing UI components and ensures that transaction audio plays reliably across different browsers and devices without requiring additional codecs.
- Supports standard HTML5 audio players
- Optimized for general web delivery
- Universal browser support
WAV for high quality needs
WAV provides uncompressed, lossless audio quality. This format is ideal for archival purposes, internal quality assurance, or systems that require the highest fidelity for voice clarity. It is slightly larger in file size but ensures no data loss during transmission.
- Lossless audio quality
- Ideal for archival storage
- Maximum fidelity for QA
OPUS for efficient transfer
OPUS offers superior compression efficiency, reducing bandwidth usage while maintaining clear speech. It is ideal for applications requiring efficient data transfer over mobile networks, helping to lower data costs for users receiving frequent transaction notifications.
- High compression efficiency
- Reduced bandwidth usage
- Ideal for mobile networks

Rate Limits
Rate limits protect the stability of our TTS infrastructure during peak usage. Each API key is capped at 60 requests per minute once your account is active. This ensures fair access to the synthesis engine for all fintech applications.
60 requests per minute
Standard accounts can process up to 60 synthesis requests every minute. This throughput is sufficient for most notification workflows, allowing parallel processing of transaction alerts or balance updates.
10 requests per minute initially
New keys start with a limit of 10 requests per minute. This lower initial cap helps manage server load during the testing phase before any top-up is applied.
Limit increases after top-up
Once you top up your balance via USDT on the TRON network (TRC-20), the rate limit automatically increases to the standard 60 requests per minute. No manual intervention or support ticket is required.
Error Handling
Error handling is critical for maintaining reliable audio generation workflows in fintech notification systems. Understanding response codes ensures your application can gracefully recover from transient issues or configuration mistakes without losing user trust.
Common HTTP status codes
Use standard HTTP codes to determine next steps. A 200 OK means the audio file is ready in the response body. Use 429 Too Many Requests if you exceed the 60 requests per minute limit (or 10/min for new accounts) and implement exponential backoff.
- 200: Success, audio data returned
- 400: Bad Request, invalid JSON or parameters
- 429: Rate limit exceeded, wait and retry
- 500: Internal server error, retry with backoff
Invalid API key errors
A 401 Unauthorized error indicates your Bearer token is missing, expired, or incorrect. Since each account has one active key that invalidates immediately upon issuing a new one, ensure you are using the latest key from your dashboard.
- Check header format:
Authorization: Bearer tts-... - Verify key matches your current active session
- Issue a new key if unsure, invalidating the old one
Input text length errors
The API rejects input exceeding 4096 characters with a 400 error. For longer transaction notifications or alerts, split your text into chunks of up to 4096 characters, generate audio for each, and join the files client-side.
- Max length: 4096 characters per request
- Spaces and punctuation count toward the limit
- Split long texts before sending
Voices Endpoint
The GET /v1/voices endpoint provides a complete list of available voice presets, allowing your fintech application to dynamically select the most appropriate voice for transaction alerts or user notifications.
This endpoint also returns metadata on supported languages and audio formats, enabling you to validate compatibility before sending synthesis requests to the API.
List available voices
Retrieve the full catalog of eight voice presets, including female options like aria and nova, and male options like felix and milo. Each voice offers a distinct tone suitable for different notification types, from calm instructional updates to energetic promo alerts.
- Aria: warm, clear narrator
- Nova: bright, upbeat
- Felix: energetic, promo
- Milo: friendly, conversational
Check language support
Verify the 23 supported languages, including English, Spanish, German, and Japanese. While any voice can speak any supported language, setting the language field explicitly ensures accurate pronunciation for non-English Latin-script text.
- 23 supported languages
- Voice-agnostic language support
- Explicit language code recommended
View format options
Check available audio output formats such as MP3, WAV, OPUS, FLAC, and PCM. Select the format that best balances quality and bandwidth for your specific notification delivery method, whether it be web-based or mobile push notifications.
- MP3, WAV, OPUS, FLAC, PCM
- Optimize for bandwidth vs quality
- Standardized audio output
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. There are no monthly fees or minimum spend requirements to maintain your account.
23 languages
Any voice speaks any of these languages.
