渠道管理
获取所有渠道
Query Parameters
p?integer
page_size?integer
id_sort?boolean
tag_mode?boolean
status?string
type?integer
Response Body
curl -X GET "https://loading/api/channel/"Empty
添加渠道
Request Body
application/json
mode?string
Value in
"single" | "batch" | "multi_to_single"channel?
Response Body
curl -X POST "https://loading/api/channel/" \ -H "Content-Type: application/json" \ -d '{}'Empty
更新渠道
Request Body
application/json
id?integer
name?string
type?integer
status?integer
models?string
groups?string
priority?integer
weight?integer
base_url?string
tag?string
Response Body
curl -X PUT "https://loading/api/channel/" \ -H "Content-Type: application/json" \ -d '{}'Empty
curl -X GET "https://loading/api/channel/search"Empty
curl -X GET "https://loading/api/channel/models"Empty
curl -X GET "https://loading/api/channel/models_enabled"Empty
curl -X GET "https://loading/api/channel/0"Empty
curl -X DELETE "https://loading/api/channel/0"Empty
curl -X POST "https://loading/api/channel/0/key"Empty
curl -X GET "https://loading/api/channel/test"Empty
curl -X GET "https://loading/api/channel/test/0"Empty
curl -X GET "https://loading/api/channel/update_balance"Empty
curl -X GET "https://loading/api/channel/update_balance/0"Empty
curl -X DELETE "https://loading/api/channel/disabled"Empty
curl -X POST "https://loading/api/channel/batch" \ -H "Content-Type: application/json" \ -d '{}'Empty
curl -X POST "https://loading/api/channel/fix"Empty
curl -X GET "https://loading/api/channel/fetch_models/0"Empty
curl -X POST "https://loading/api/channel/fetch_models" \ -H "Content-Type: application/json" \ -d '{}'Empty
curl -X POST "https://loading/api/channel/batch/tag" \ -H "Content-Type: application/json" \ -d '{}'Empty
curl -X GET "https://loading/api/channel/tag/models?tag=string"Empty
curl -X POST "https://loading/api/channel/tag/disabled" \ -H "Content-Type: application/json" \ -d '{}'Empty
curl -X POST "https://loading/api/channel/tag/enabled" \ -H "Content-Type: application/json" \ -d '{}'Empty
编辑标签渠道
Request Body
application/json
tag?string
new_tag?string
priority?integer
weight?integer
Response Body
curl -X PUT "https://loading/api/channel/tag" \ -H "Content-Type: application/json" \ -d '{}'Empty
curl -X POST "https://loading/api/channel/copy/0"Empty
管理多密钥
Request Body
application/json
channel_id?integer
action?string
Value in
"get_key_status" | "disable_key" | "enable_key" | "delete_key" | "delete_disabled_keys" | "enable_all_keys" | "disable_all_keys"key_index?integer
Response Body
curl -X POST "https://loading/api/channel/multi_key/manage" \ -H "Content-Type: application/json" \ -d '{}'Empty