text to speech
bark
by suno
language:
25,045 downloads1,578 likes
Get API KeyAPI Usage
Endpoint
POST https://api.gpu.fm/v1/inferenceRequest
curl -X POST https://api.gpu.fm/v1/inference \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "suno/bark",
"inputs": "Your input here",
"parameters": {
"max_new_tokens": 256
}
}'Response
{
"result": "Model output",
"usage": {
"inputTokens": 12,
"outputTokens": 128
},
"pricing": {
"total": "0.000018"
}
}Python SDK
import requests
response = requests.post(
"https://api.gpu.fm/v1/inference",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"model": "suno/bark",
"inputs": "Your input here",
"parameters": {"max_new_tokens": 256}
}
)
result = response.json()
print(result["result"])Model Documentation
Full documentation available on HuggingFace →
Pricing
Billed from your prepaid credits. No minimum commitment.
Details
- Model ID
- suno/bark
- Library
- transformers
- Pipeline
- text to speech
- Updated
- 10/4/2023
Tags
transformerspytorchbarktext-to-audioaudiotext-to-speechendeesfr