跳转到主要内容
POST
/
api
/
channel
添加渠道
curl --request POST \
  --url https://api.ldx.dev/api/channel \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "mode": "single",
  "channel": {
    "id": 123,
    "name": "<string>",
    "type": 123,
    "status": 123,
    "models": "<string>",
    "groups": "<string>",
    "priority": 123,
    "weight": 123,
    "base_url": "<string>",
    "tag": "<string>"
  }
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.liandanxia.io/llms.txt

Use this file to discover all available pages before exploring further.

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
mode
enum<string>
可用选项:
single,
batch,
multi_to_single
channel
object

响应

200

成功