Frequently asked questions
What is the correct base URL for the API?
The API base URL is https://api.j7777.info/v1. You send POST requests to https://api.j7777.info/v1/audio/speech. This endpoint accepts JSON bodies containing your text, voice selection, and audio format preferences. It follows the same request shape as the OpenAI speech endpoint, ensuring compatibility with standard HTTP clients and SDKs.
How do I specify the language in the request?
Include the optional language field with an ISO code in your JSON request body. If omitted, the system guesses the language from the script, defaulting to English for Latin text. For non-English Latin-script text, explicitly setting the language parameter ensures accurate synthesis and avoids misinterpretation by the engine.
Can I use the same key on multiple devices?
Yes, your single active API key works across multiple devices and applications. You can issue a new key at any time, which immediately invalidates the old one. This allows you to rotate credentials securely without disrupting service on other connected devices or integrated workflows.
What happens if I exceed the rate limit?
Requests are processed sequentially, so exceeding the limit causes your request to wait in a queue or be rejected. The standard limit is 60 requests per minute per key, or 10 per minute before the first top-up. Requests exceeding the limit may be rejected until the window resets.
Is the API compatible with Python SDK?
Yes, the official OpenAI SDKs work perfectly. You simply change the base_url to https://api.j7777.info/v1 and use your SonusFlow key. This allows you to use familiar Python libraries to send text and receive audio files without needing a custom client or additional proprietary wrappers.
How do I handle long texts over 4096 chars?
Split your text into parts of up to 4096 characters each. Send each part as a separate request to the API. Then, join the resulting audio files together in your application. This ensures every segment is synthesized correctly within the character limit constraints of the engine.
Do I need to install any extra libraries?
No extra libraries are required beyond standard HTTP clients. You can use plain HTTP requests or the official OpenAI SDKs. No proprietary SonusFlow SDK or mobile library is needed. Standard JSON parsing libraries in your preferred language are sufficient to handle the request and response formats.
What is the maximum speed setting?
The maximum speed setting is 4.0. You can adjust the speed parameter between 0.25 and 4.0 in your request. This allows you to speed up narration for quick updates or slow it down for clearer instruction, providing precise control over the playback rate of the generated audio.
Can I stream the audio response?
No, the API does not support streaming or WebSocket connections. You receive the complete audio file in the response body after synthesis finishes. This means you must wait for the full file to be generated before you can play or save it, rather than receiving partial chunks.
Is JSON the only request format?
Yes, the API accepts JSON bodies for all requests. You must send your text, voice, and format preferences as a JSON object. The endpoint does not support form data or other serialization formats. Ensure your content type is set to application/json when sending your POST requests.
How do I check my remaining balance via API?
You can check your balance and usage details by visiting the /get-api-key/ page on the site. The dashboard displays your current balance, trial status, characters left, and usage history. There is no dedicated API endpoint for balance checks; you can view this data on the /get-api-key/ page.
Does the API support parallel requests?
You can send multiple requests in parallel. Requests are processed one after another, so under load a request may wait in a queue. This means parallel requests may wait in a queue if the system is busy, potentially increasing latency. The rate limit of 60 requests per minute applies to your key.
What is the character limit per request?
The character limit is 4096 characters per request. Spaces and punctuation count toward this limit. If your script exceeds this length, you must split it into multiple requests. Each request generates a separate audio file that you can later concatenate to create the final audio output.
Are there any limits on the number of files?
There is no limit on the total number of audio files you can generate. You are only limited by your account balance and the rate limit of 60 requests per minute. Each request produces one audio file, and you can generate as many as your credits allow.
First request
curl
curl https://api.j7777.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.j7777.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.j7777.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 |
Get Your API Key
Sign up on j7777.info using Google or email to create your account. You will receive a free $0.50 trial credit if you use Google, valid for 7 days. This allows you to test the API without immediate payment.
Once registered, navigate to the dashboard to view your unique API key. This key identifies your account and tracks your character usage against your balance.
Sign up on the site
Visit the /get-api-key/ page and choose your preferred sign-up method. Google sign-in grants immediate trial credit, while email accounts start with a zero balance.
Find key in dashboard
After logging in, your dashboard displays your active API key alongside your current balance and usage statistics. This is the credential needed for authentication.
Copy your Bearer token
Copy the string starting with 'tts-' from the dashboard. Use this value as the Bearer token in your Authorization header for all API requests.
First Request with cURL
Construct a POST request to https://api.j7777.info/v1/audio/speech with a JSON body. The API accepts plain text input up to 4,096 characters and returns an audio file directly in the response.
Ensure your script handles the binary audio data correctly. The request must include your authentication header and valid parameters to generate the voiceover file for your content.
Basic JSON body structure
The request body is a standard JSON object containing the synthesis parameters. It includes the model identifier, the text input, the selected voice, and optional settings like speed or format.
Required fields: model, input, voice
You must specify model ("tts-1" or "tts-1-hd"), input (your script text), and voice (one of the 8 presets). The input field supports up to 4,096 characters per request.
Example command to run
Use the following cURL command to generate speech. Replace YOUR_API_KEY and YOUR_TEXT with your actual credentials and script content.
- curl -X POST https://api.j7777.info/v1/audio/speech \
- -H "Authorization: Bearer YOUR_API_KEY" \
- -H "Content-Type: application/json" \
- -d '{"model": "tts-1", "input": "Hello world", "voice": "nova"}'
Using the OpenAI SDK
SonusFlow’s API mirrors the OpenAI Speech endpoint structure, allowing you to reuse existing integrations with minimal changes. By pointing your client to our base URL, you can generate audio using standard libraries without learning a new protocol.
Set base_url to our endpoint
Configure your SDK client to use https://api.j7777.info/v1 as the base URL. This directs requests to our infrastructure while maintaining the standard request shape.
Use standard Speech endpoint
Call the /v1/audio/speech endpoint with a POST request. Pass your script text in the input field and select a voice preset. The response returns the audio file directly.
Pass your API key
Include your unique key in the Authorization header as a Bearer token. This authenticates your account for character usage and rate limit tracking.
- Header:
Authorization: Bearer tts-...
Supported Request Parameters
Configure your synthesis requests by selecting the engine quality and voice personality. Choose between "tts-1" or "tts-1-hd" for identical engine performance and pricing. Select one of eight preset voices, ranging from warm narrators to energetic promo speakers, ensuring the tone matches your video or podcast content.
Model: tts-1 or tts-1-hd
Both models use the same underlying engine and pricing structure. Selecting either "tts-1" or "tts-1-hd" yields identical audio quality for the same cost. This simplicity allows you to switch models if needed without adjusting your budget calculations.
Voices: 8 presets available
Eight distinct voices cover most content needs. Options include female presets like Aria (warm narrator) and Nova (upbeat), or male options like Felix (energetic) and Atlas (neutral news). Each voice supports all 23 available languages, allowing you to maintain consistent character voices across different scripts.
- Aria: Warm, clear narrator
- Felix: Energetic, promo style
- Atlas: Neutral, news tone
- Sage: Calm, instructional voice
Speed: 0.25 to 4.0 range
Adjust the playback speed between 0.25 and 4.0 to fit your video timeline. Slower speeds aid clarity for complex explanations, while faster rates help compress long scripts. The default speed provides a natural, conversational rhythm suitable for most standard content.
Output Formats
SonusFlow returns audio files in several standard formats, allowing you to choose the right balance between file size and quality for your specific workflow. Each format is generated directly from the response_format parameter in your API request.
MP3 for web compatibility
MP3 is the default choice for most content creators. It offers excellent compression while maintaining clear speech, making it ideal for embedding audio directly into YouTube videos, podcasts, or web players without large download sizes.
WAV for high quality
Use WAV when you need lossless audio for professional editing. This uncompressed format preserves the full fidelity of the generated voice, ensuring no quality is lost when you import the file into your editing software for final mixing.
Opus, FLAC, PCM options
Opus provides efficient compression. FLAC offers lossless quality, while PCM delivers raw, uncompressed data for specialized audio processing pipelines.
- Opus: Efficient compression
- FLAC: Lossless quality
- PCM: Raw uncompressed data

Rate Limits and Queues
The API enforces a hard limit of 60 requests per minute for each active key. This cap ensures stable performance for your generation pipeline, whether you are batch-processing a full podcast script or generating individual sound effects for a video edit. Exceeding this threshold will result in a 429 Too Many Requests error.
10 requests before first top-up
New accounts start with a lower baseline limit of 10 requests per minute. This restriction applies until you complete your first top-up. Once you add credit via USDT (TRC-20), the standard 60 requests per minute limit is automatically activated, allowing for higher throughput without manual intervention.
- Start with 10 req/min
- Top up via USTRC-20 to unlock 60 req/min
- Limit resets every 60 seconds
Processing time estimates
Synthesis typically takes roughly real-time duration, averaging about 25 characters of text per second of generated audio; short phrases take a few seconds. Requests are processed sequentially, so under heavy load, your request may wait in a queue before synthesis begins. Plan your delivery timeline accordingly.
Handling Errors
Synthesis failures return a standard HTTP error code, but crucially, the charge is refunded in full. This ensures you only pay for successfully generated audio files, protecting your budget during unexpected outages or malformed requests.
Errors are typically immediate, allowing your application to retry or alert the user without consuming credits. Always check the response body for specific details on why the generation failed.
Common HTTP error codes
Use 401 for authentication issues, 429 for rate limits, and 500 for server errors. The 429 error indicates you have exceeded 60 requests per minute or the initial 10-request limit.
- 401: Invalid or expired Bearer token
- 429: Rate limit exceeded (60 req/min)
- 500: Internal server error during synthesis
Invalid input text issues
Ensure your text does not exceed 4096 characters per request. If it does, split the text and join the resulting audio files. Special characters and punctuation count toward the character limit.
- Max length: 4096 characters
- Spaces and punctuation count as characters
Voice not found errors
Verify that the voice parameter matches one of the 8 presets. Using an unknown voice ID will return a 400 Bad Request error without charging your balance.
- Valid voices: aria, nova, luna, sage, felix, milo, atlas, orion
Authentication Details
Authentication relies on a single Bearer token passed in the request header. This key identifies your account and deducts balance for each synthesis job.
Bearer token format
Include the header Authorization: Bearer tts-... with every API call. The token starts with tts- and links directly to your stored balance.
One active key per account
Each account maintains exactly one active API key. If you generate a new key, the previous one becomes invalid immediately.
Revoke old keys instantly
Issuing a new key acts as an instant revoke for the old one. This ensures secure rotation without manual deactivation steps.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. When selecting a voice for your videos, consider the tone and style that best matches your content and audience.
23 languages
Any voice speaks any of these languages.
