API endpoint:
https://smartyai.net/api/v1/speeches
Request example:
curl --location --request GET 'https://smartyai.net/api/v1/speeches' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
search_by
name
for Name, content
for Content. Defaults to: name
.voice
alloy
, echo
, fable
, onyx
, nova
, shimmer
.format
mp3
, flac
, aac
, opus
.favorite
sort_by
id
for Date created, name
for Name. Defaults to: id
.sort
desc
for Descending, asc
for Ascending. Defaults to: desc
.per_page
10
, 25
, 50
, 100
. Defaults to: 10
.API endpoint:
https://smartyai.net/api/v1/speeches/{id}
Request example:
curl --location --request GET 'https://smartyai.net/api/v1/speeches/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API endpoint:
https://smartyai.net/api/v1/speeches
Request example:
curl --location --request POST 'https://smartyai.net/api/v1/speeches' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --form 'name={name}' \ --form 'file=@{file}'
name
content
description
alloy
, echo
, fable
, onyx
, nova
, shimmer
.format
mp3
, flac
, aac
, opus
.API endpoint:
https://smartyai.net/api/v1/speeches/{id}
Request example:
curl --location --request PUT 'https://smartyai.net/api/v1/speeches/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}'
name
favorite
API endpoint:
https://smartyai.net/api/v1/speeches/{id}
Request example:
curl --location --request DELETE 'https://smartyai.net/api/v1/speeches/{id}' \ --header 'Authorization: Bearer {api_key}'