Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
purpose=file-extract
GET https://api.stepfun.ai/v1/files/{file_id}/content
file_id
string
from openai import OpenAI client = OpenAI(api_key="STEP_API_KEY", base_url="https://api.stepfun.ai/v1") content = client.files.content("file-abc123")
import OpenAI from "openai"; const openai = new OpenAI({ apiKey: "STEP_API_KEY", baseURL: "https://api.stepfun.ai/v1" }); async function main() { const file = await openai.files.content("file-abc123"); console.log(file); } main();
curl https://api.stepfun.ai/v1/files/file-abc123/content \ -H "Authorization: Bearer $STEP_API_KEY"
File content
Was this page helpful?