API Endpoints

API Endpoints

This page provides an overview of the available API endpoints in the Suonora API. Each endpoint enables developers to interact with Suonora's services—such as listing voices, retrieving user balance, and converting text to speech.


Base URL

All API requests should be directed to the following base URL:

sh
https://api.suonora.com/v1

Authentication

All Suonora API requests require an API key. Include this key in the Authorization header as shown:

sh
Authorization: Bearer YOUR_API_KEY

Note: API keys can be generated and managed from the Suonora Dashboard. Keep your API key secure and never share it publicly.


Available Endpoints

Below is a quick-reference table for the core endpoints in the Suonora API:

EndpointMethodDescription
/voices/listGETRetrieves a list of available voices.
/balanceGETRetrieves the user's current account balance.
/audio/speechPOSTConverts text to speech and returns audio content.

Each endpoint has specific parameters and returns structured responses, which are detailed in the following sections.