---
title: "Test channel preview (all models)"
method: POST
path: "/api/channel/test-all"
tags: ["channel"]
---

# Test channel preview (all models)

`POST /api/channel/test-all`

Test all models in channel without saving to database

## Query parameters

- `return_success` boolean
- `success_body` boolean
- `stream` boolean

## Request body

- ControllerTestChannelRequest
  - `base_url` string
  - `configs` object
  - `key` string, required
  - `model_mapping` object
  - `models` string[]
  - `name` string
  - `proxy_url` string
  - `skip_tls_verify` boolean
  - `type` integer, required

## Response `200`

OK

- object
  - `data` ControllerTestResult[]
    - `data` ModelChannelTest
      - `actual_model` string
      - `channel_id` integer
      - `channel_name` string
      - `channel_type` 1 | 3 | 4 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55
      - `code` integer
      - `mode` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30
      - `model` string
      - `response` string
      - `success` boolean
      - `test_at` string
      - `took` number
    - `message` string
    - `success` boolean
  - `message` string
  - `success` boolean

---

[API](https://skmtc.net/labring/apis/ai-proxy-swagger-api.md) · [All operations](https://skmtc.net/labring/apis/ai-proxy-swagger-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/labring/ai-proxy-swagger-api/revisions/696faf563b42/schema)
