Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
更新既有 KEY 的名稱、到期時間、額度、模型/IP 限制及狀態。
cURL
curl --request PUT \ --url https://aihubmix.com/api/token/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": 123 }'
import requests url = "https://aihubmix.com/api/token/" payload = { "id": 123 } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" } response = requests.put(url, json=payload, headers=headers) print(response.text)
{ "success": true, "message": "<string>", "data": { "id": 123, "user_id": 123, "status": 123, "name": "<string>", "created_time": 123, "accessed_time": 123, "expired_time": 123, "remain_quota": 123, "unlimited_quota": true, "used_quota": 123, "models": "<string>", "subnet": "<string>" } }