Playground
VoiceForge Realtime
在这个页面里,你可以填写输入、运行 prediction、查看状态和输出,再把同样的调用方式带进自己的产品。
Playground
直接运行这个模型
prediction output
0.9s
引导式产品配音
适合 demo、嵌入式预览和产品内 onboarding 片段。
curl
API 示例
curl -s -X POST https://www.founderhooks.com/api/v1/predictions \
-H "Authorization: Bearer $FOUNDERHOOKS_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"model": "founderhooks/voiceforge-realtime",
"input": {
"text": "Generate a polished product visual for an AI platform homepage"
},
"wait": 10
}'JavaScript
API 示例
const response = await fetch("https://www.founderhooks.com/api/v1/predictions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.FOUNDERHOOKS_API_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "founderhooks/voiceforge-realtime",
input: {
"text": "Generate a polished product visual for an AI platform homepage"
},
wait: 10,
}),
});
const prediction = await response.json();Python
API 示例
import os
import requests
response = requests.post(
"https://www.founderhooks.com/api/v1/predictions",
headers={
"Authorization": "Bearer " + os.environ["FOUNDERHOOKS_API_TOKEN"],
"Content-Type": "application/json",
},
json={
"model": "founderhooks/voiceforge-realtime",
"input": {
"text": "Generate a polished product visual for an AI platform homepage"
},
"wait": 10,
},
)
print(response.json())