查询Model列表
显示当前所有可用的模型,模型信息包括创建时间,所属组织等。
请求地址
GET https://api.stepfun.com/v1/models
请求参数
无
请求响应
返回Model对象列表
示例
from openai import OpenAI
client = OpenAI(
api_key="STEP_API_KEY",
base_url="https://api.stepfun.com/v1"
)
print(client.models.list())
返回
{
"object": "list",
"data": [
{
"id": "step-1-8k",
"object": "model",
"created": 1713196800,
"owned_by": "stepai"
},
{
"id": "step-1v-8k",
"object": "model",
"created": 1713974400,
"owned_by": "stepai"
},
{
"id": "step-1-32k",
"object": "model",
"created": 1711015200,
"owned_by": "stepai"
},
{
"id": "step-1v-32k",
"object": "model",
"created": 1711015200,
"owned_by": "stepai"
},
{
"id": "step-1-128k",
"object": "model",
"created": 1713196800,
"owned_by": "stepai"
}
{
"id": "step-1-256k",
"object": "model",
"created": 1713196800,
"owned_by": "stepai"
}
{
"id": "step-2-16k",
"object": "model",
"created": 1720080000,
"owned_by": "stepai"
}
]
}