Text to speech
curl --request POST \
--url https://moltworldd.vercel.app/v1/models/{model}/audio/speech \
--header 'Content-Type: application/json' \
--header 'Payment-Signature: <api-key>' \
--data '
{
"input": "<string>",
"voice": "<string>",
"speed": 2.125
}
'import requests
url = "https://moltworldd.vercel.app/v1/models/{model}/audio/speech"
payload = {
"input": "<string>",
"voice": "<string>",
"speed": 2.125
}
headers = {
"Payment-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Payment-Signature': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({input: '<string>', voice: '<string>', speed: 2.125})
};
fetch('https://moltworldd.vercel.app/v1/models/{model}/audio/speech', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://moltworldd.vercel.app/v1/models/{model}/audio/speech",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'input' => '<string>',
'voice' => '<string>',
'speed' => 2.125
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Payment-Signature: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://moltworldd.vercel.app/v1/models/{model}/audio/speech"
payload := strings.NewReader("{\n \"input\": \"<string>\",\n \"voice\": \"<string>\",\n \"speed\": 2.125\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Payment-Signature", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://moltworldd.vercel.app/v1/models/{model}/audio/speech")
.header("Payment-Signature", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"input\": \"<string>\",\n \"voice\": \"<string>\",\n \"speed\": 2.125\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://moltworldd.vercel.app/v1/models/{model}/audio/speech")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Payment-Signature"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"input\": \"<string>\",\n \"voice\": \"<string>\",\n \"speed\": 2.125\n}"
response = http.request(request)
puts response.read_body{
"object": "audio.speech",
"model": "<string>",
"format": "<string>",
"mime_type": "<string>",
"audio_b64": "<string>",
"character_count": 123,
"moltworld": {
"request_id": "<string>",
"price_usd_micro": 123,
"payment_asset": "<string>",
"payment_amount_atomic": "<string>",
"receipt_url": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}Unavailable on WIF
Text to speech
deprecated
Not available on Robinhood WIF: this deployment is chat-only. This endpoint is retained for legacy documentation and must not be treated as a live WIF product.
Priced per character. Charged before generation and refunded on-chain if the provider fails.
POST
/
v1
/
models
/
{model}
/
audio
/
speech
Text to speech
curl --request POST \
--url https://moltworldd.vercel.app/v1/models/{model}/audio/speech \
--header 'Content-Type: application/json' \
--header 'Payment-Signature: <api-key>' \
--data '
{
"input": "<string>",
"voice": "<string>",
"speed": 2.125
}
'import requests
url = "https://moltworldd.vercel.app/v1/models/{model}/audio/speech"
payload = {
"input": "<string>",
"voice": "<string>",
"speed": 2.125
}
headers = {
"Payment-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Payment-Signature': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({input: '<string>', voice: '<string>', speed: 2.125})
};
fetch('https://moltworldd.vercel.app/v1/models/{model}/audio/speech', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://moltworldd.vercel.app/v1/models/{model}/audio/speech",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'input' => '<string>',
'voice' => '<string>',
'speed' => 2.125
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Payment-Signature: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://moltworldd.vercel.app/v1/models/{model}/audio/speech"
payload := strings.NewReader("{\n \"input\": \"<string>\",\n \"voice\": \"<string>\",\n \"speed\": 2.125\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Payment-Signature", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://moltworldd.vercel.app/v1/models/{model}/audio/speech")
.header("Payment-Signature", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"input\": \"<string>\",\n \"voice\": \"<string>\",\n \"speed\": 2.125\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://moltworldd.vercel.app/v1/models/{model}/audio/speech")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Payment-Signature"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"input\": \"<string>\",\n \"voice\": \"<string>\",\n \"speed\": 2.125\n}"
response = http.request(request)
puts response.read_body{
"object": "audio.speech",
"model": "<string>",
"format": "<string>",
"mime_type": "<string>",
"audio_b64": "<string>",
"character_count": 123,
"moltworld": {
"request_id": "<string>",
"price_usd_micro": 123,
"payment_asset": "<string>",
"payment_amount_atomic": "<string>",
"receipt_url": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}Authorizations
x402 v2 payment payload encoded for the Payment-Signature header. The buyer signs the exact Robinhood Chain WIF/Permit2 requirement with an EVM wallet or compatible x402 client; do not construct it by hand.
Path Parameters
Model slug from GET /v1/models, for example gpt-4o.
Body
application/json
