---
# System prepended metadata

title: API Usage

---

# API Usage
For your convenience we have created two accounts for you in our venus backend as following:

**User 1**
email: user1@xiaomi.com
password: xiaomi50

**User 2**
email: user2@xiaomi.com
password: xiaomi50

## Web UI
You can login with these credentials to https://venus.wondertech.com.cn to test our API. 

Feel free to either upload a .wav file from local disk or use the built in microphone feature (atleast tested and working in chrome)

## API
You can also just call the API directly whichever way you want using your API_SECRET.

Below we provide two examples of curling the API using curl in a bash compatible shell.

**For User 1's account**
```
curl \
	-H 'API_SECRET: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZG1pbiI6ZmFsc2UsImVtYWlsIjoidXNlcjFAeGlhb21pLmNvbSIsImV4cCI6MTYwNTc4NDg0NywidXNlcmlkIjoiMmY1NzlkMWEtMjY0Yi00Nzg0LWE0MzItNzBkZjc5ZmIxNDhmIn0.pab4t9q9iCpkWcgl7ByfXRkT8fKres6bemWYEpBEeIM \
	-F "file=@$1" https://venus.wondertech.com.cn/api/
```


**For User 2's account**
```
curl \
	-H 'API_SECRET: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZG1pbiI6ZmFsc2UsImVtYWlsIjoidXNlcjJAeGlhb21pLmNvbSIsImV4cCI6MTYwNTc4NDk5NSwidXNlcmlkIjoiODU2NTQzNGItZjRhMS00YjRlLTk4MzAtOWRhMTAyZjVhZWE5In0.8gofRAWwdK3bsvNpBOJ7xfajQK-lAPlMJ1ELxzohFeQ \
	-F "file=@$1" https://venus.wondertech.com.cn/api/
```