Overview
About this model
Text to audio — music beds and sound effects, 44.1kHz stereo, up to 47 seconds.
View model card on HuggingFaceSpecifications
Model details
- Provider
- Stability AI
- Modality
- Music & audio
- Pricing
- $8.00 / 1M tok
API
Call it in code
One OpenAI-compatible API. Swap the model id and you're done.
import requests
BASE_URL = "https://api.ecohash.com/v1"
HEADERS = {"Authorization": "Bearer YOUR_API_KEY"}
audio = requests.post(
f"{BASE_URL}/audio/music",
headers=HEADERS,
json={
"model": "stable-audio-open",
"prompt": "warm lo-fi piano loop with soft vinyl crackle",
"duration": 10,
"response_format": "wav",
},
).content # WAV bytes