Spaces:
Running on Zero
Running on Zero
File size: 1,385 Bytes
b7bdd13 6b31614 b7bdd13 9dccb71 b7bdd13 9dccb71 b7bdd13 9dccb71 b7bdd13 9dccb71 b7bdd13 eedb912 b7bdd13 011b234 b7bdd13 011b234 b7bdd13 011b234 b7bdd13 011b234 b7bdd13 9dccb71 b7bdd13 9dccb71 b7bdd13 9dccb71 b7bdd13 9dccb71 b7bdd13 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | ---
title: Respite API
emoji: 🤖
colorFrom: purple
colorTo: blue
sdk: gradio
sdk_version: 6.3.0
app_file: app.py
pinned: false
---
# Respite API
A Hugging Face Space for generating music using [Stability AI's Stable Audio 3](https://github.com/Stability-AI/stable-audio-3) Small model.
## Features
- **Model**: `small-music` (433M parameters)
- **Duration**: 1–120 seconds
- **Sample rate**: 44.1 kHz stereo
- Gradio 6.3.0 interface
## API discovery endpoints
Respite API exposes machine-readable API metadata alongside the Gradio UI:
- `GET /respite/resources` lists callable capabilities, including each resource's method, endpoint, inputs, and output.
- `GET /respite/specs` lists server-wide specifications such as version, supported content types, limits, discovery URLs, CPU cores, total RAM, and storage total/used/free space.
Both endpoints return JSON and currently require no authentication. The metadata is designed to grow as additional AI capabilities are added.
## Usage
1. Enter a text prompt describing the music you want
2. Adjust duration, steps, CFG scale, and seed
3. Click **Generate** and wait for the audio
## Setup
```bash
pip install -r requirements.txt
python app.py
```
## License
This project uses the Stable Audio 3 model. Please refer to Stability AI's [license](https://huggingface.co/stabilityai/stable-audio-3-small) for usage terms.
|