AI 服务/大语言模型
对话模型列表
接口说明:获取当前账号可用的对话模型列表及能力信息,用于在调用对话接口前选择模型、展示模型能力和价格信息。
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",
"description": "string",
"tags": [],
"channel": "openai",
"inputModalities": [
"text"
],
"outputModalities": [
"text"
],
"pricing": {
"price": "string",
"originPrice": "string"
},
"summary": "string",
"logo": "string",
"mainTag": "string",
"scenes": [
"string"
],
"fixedImagePricing": [
{
"resolution": "string",
"price": 1
}
]
}
]
}响应
200 - application/json
请求已被服务处理。业务是否成功以响应体 code === 0 为准。
业务状态码。0 表示成功,非 0 表示业务错误。
响应消息。
Hide child attributes
Hide child attributes
名称
描述
标签
渠道
可用选项:
openai, deepseek, anthropic, gemini 支持输入模态
可用选项:
text, image, video, audio 支持输出模态
可用选项:
text, image, video, audio 简短摘要
logo
主要标签
适用场景
请求 ID。
错误响应时间戳,Unix 毫秒。
⌘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",
"description": "string",
"tags": [],
"channel": "openai",
"inputModalities": [
"text"
],
"outputModalities": [
"text"
],
"pricing": {
"price": "string",
"originPrice": "string"
},
"summary": "string",
"logo": "string",
"mainTag": "string",
"scenes": [
"string"
],
"fixedImagePricing": [
{
"resolution": "string",
"price": 1
}
]
}
]
}
