大语言
列出模型
GET
/
v3
/
openai
/
models
curl --request GET \
--url https://api.ppinfra.com/v3/openai/models \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'
{
"data": [
{
"id": "<string>",
"created": 123,
"object": "<string>",
"input_token_price_per_m": 123,
"output_token_price_per_m": 123,
"title": "<string>",
"description": "<string>",
"context_size": 123
}
]
}
列出当前可用的 LLM 模型,并提供每个模型的基本信息。
该 Endpoint 与 OpenAI API 兼容。
请求头
枚举值:application/json。
Bearer 身份验证格式,例如:Bearer {{API 密钥}}。
响应参数
包含以下属性的模型对象的数组。
模型 ID ,用于标识模型。可以在 API Endpoints 中引用。
模型创建时的 Unix 时间戳(以秒为单位)。
对象类型。取值固定为 model 。
输入价格(每百万 Token)。
输出价格(每百万 Token)。
模型名称。
模型描述。
模型允许的最大上下文长度。
curl --request GET \
--url https://api.ppinfra.com/v3/openai/models \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'
{
"data": [
{
"id": "<string>",
"created": 123,
"object": "<string>",
"input_token_price_per_m": 123,
"output_token_price_per_m": 123,
"title": "<string>",
"description": "<string>",
"context_size": 123
}
]
}