Documentation Index
Fetch the complete documentation index at: https://platform.stepfun.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
查询单个 Model 的信息,包括创建时间,所属组织等。
请求地址
GET https://api.stepfun.com/v1/models/{model}
路径参数
model string required
模型唯一标识 ID
请求响应
返回单个Model 对象
from openai import OpenAI
client = OpenAI(api_key="STEP_API_KEY", base_url="https://api.stepfun.com/v1")
print(client.models.retrieve("step-1-8k"))
import OpenAI from "openai";
const openai = new OpenAI({
apiKey: "STEP_API_KEY",
baseURL: "https://api.stepfun.com/v1"
});
async function main() {
const model = await openai.models.retrieve("step-1-8k");
console.log(model);
}
main();
curl https://api.stepfun.com/v1/models/step-1-8k \
-H "Authorization: Bearer $STEP_API_KEY"
{
"id": "step-1-8k",
"object": "model",
"created": 1713196800,
"owned_by": "stepai"
}