AI 服务/大语言模型
对话模型列表
接口说明:获取当前可用的对话模型目录,以及每个模型所属渠道、适用场景、输入输出模态、积分范围和价格。模型与能力可能随服务更新,调用对话接口时请以本接口的实时返回值为准。
本接口只查询模型目录,不会发起模型对话;需要调用模型时,请根据所用协议选择「OpenAI 对话」、「Anthropic 对话」或 Gemini 对话接口。
GET
/
api
/
ai
/
models
/
chat
对话模型列表
curl --request GET \
--url https://aitoearn.cn/api/ai/models/chatimport requests
url = "https://aitoearn.cn/api/ai/models/chat"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://aitoearn.cn/api/ai/models/chat', 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://aitoearn.cn/api/ai/models/chat"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"code": 0,
"message": "请求成功",
"data": [
{
"name": "string",
"label": "string",
"tags": [
"string"
],
"channel": "string",
"creditsScope": "string",
"scenes": [
"string"
],
"inputModalities": [
"string"
],
"outputModalities": [
"string"
],
"pricing": {
"tiers": [
{
"maxInputTokens": "number",
"input": {
"text": "string",
"image": "string",
"video": "string",
"audio": "string",
"cacheRead": "string",
"cacheWrite5m": "string",
"cacheWrite1h": "string"
},
"output": {
"text": "string",
"image": "string"
}
}
],
"originPricing": {
"tiers": [
{
"input": {
"text": "string",
"image": "string",
"video": "string",
"audio": "string",
"cacheRead": "string",
"cacheWrite5m": "string",
"cacheWrite1h": "string"
},
"output": {
"text": "string",
"image": "string"
}
}
]
}
},
"description": "string",
"fixedImagePricing": [
{
"resolution": "string",
"price": "number"
}
]
}
],
"requestId": "string"
}响应
200 - application/json
请求已被服务处理。业务是否成功以响应体 code === 0 为准。
当前可用的对话模型列表。模型、能力和价格可能随服务更新,请以每次接口返回为准。
Hide child attributes
Hide child attributes
模型名称
模型展示名称
标签列表
模型所属渠道
可用选项:
openai, deepseek, anthropic, gemini 模型使用的积分范围。general 表示普通积分,seedance 表示 Seedance 专用积分。
可用选项:
general, seedance 适用场景
可用选项:
web, comment, draft-generation, plugin 支持输入模态
可用选项:
text, image, audio, video 支持输出模态
可用选项:
text, image 模型描述
业务状态码。0 表示成功,非 0 表示业务错误。
响应消息。
请求 ID。
错误响应时间戳,Unix 毫秒。
最后修改于 2026年7月31日
⌘I
对话模型列表
curl --request GET \
--url https://aitoearn.cn/api/ai/models/chatimport requests
url = "https://aitoearn.cn/api/ai/models/chat"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://aitoearn.cn/api/ai/models/chat', 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://aitoearn.cn/api/ai/models/chat"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"code": 0,
"message": "请求成功",
"data": [
{
"name": "string",
"label": "string",
"tags": [
"string"
],
"channel": "string",
"creditsScope": "string",
"scenes": [
"string"
],
"inputModalities": [
"string"
],
"outputModalities": [
"string"
],
"pricing": {
"tiers": [
{
"maxInputTokens": "number",
"input": {
"text": "string",
"image": "string",
"video": "string",
"audio": "string",
"cacheRead": "string",
"cacheWrite5m": "string",
"cacheWrite1h": "string"
},
"output": {
"text": "string",
"image": "string"
}
}
],
"originPricing": {
"tiers": [
{
"input": {
"text": "string",
"image": "string",
"video": "string",
"audio": "string",
"cacheRead": "string",
"cacheWrite5m": "string",
"cacheWrite1h": "string"
},
"output": {
"text": "string",
"image": "string"
}
}
]
}
},
"description": "string",
"fixedImagePricing": [
{
"resolution": "string",
"price": "number"
}
]
}
],
"requestId": "string"
}
