Get File Quota
curl --request GET \
--url https://api.omnimux.ai/api/v1/files/quota \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.omnimux.ai/api/v1/files/quota"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.omnimux.ai/api/v1/files/quota', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.omnimux.ai/api/v1/files/quota"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}File management
Get File Quota
GET /api/v1/files/quota · Query current user file quota and remaining slots
GET
/
api
/
v1
/
files
/
quota
Get File Quota
curl --request GET \
--url https://api.omnimux.ai/api/v1/files/quota \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.omnimux.ai/api/v1/files/quota"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.omnimux.ai/api/v1/files/quota', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.omnimux.ai/api/v1/files/quota"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
- Users can store up to 2,000 active files
- Returns current active file count (
used_files) and available capacity (remain_files)- Auth:
Authorization: Bearer sk-...
Response Fields
| Field | Type | Description |
|---|---|---|
user_group | string | Current token group (e.g. default, auto) |
used_files | integer | Number of active (unexpired) files currently stored |
max_files | integer | Maximum allowed files (default 2,000) |
remain_files | integer | Remaining available upload slots |
is_custom | boolean | Whether user has custom quota override |
quota_reason | string | Optional description for custom quota |
Response Example
{
"success": true,
"code": 200,
"data": {
"user_group": "default",
"used_files": 2,
"max_files": 2000,
"remain_files": 1998,
"is_custom": false,
"quota_reason": ""
}
}