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.
获取指定文件的内容(仅支持 purpose 为 file-extract 的文件获取内容)
请求地址
GET https://api.stepfun.com/v1/files/{file_id}/content
请求参数
无
请求响应
返回File 对象列表
from openai import OpenAI
client = OpenAI(api_key="STEP_API_KEY", base_url="https://api.stepfun.com/v1")
content = client.files.content("file-abc123")
import OpenAI from "openai";
const openai = new OpenAI({
apiKey: "STEP_API_KEY",
baseURL: "https://api.stepfun.com/v1"
});
async function main() {
const file = await openai.files.content("file-abc123");
console.log(file);
}
main();
curl https://api.stepfun.com/v1/files/file-abc123/content \
-H "Authorization: Bearer $STEP_API_KEY"