Get a single file
Retrieve metadata for a single File, including creation time and organization.
Endpoint
GET https://api.stepfun.ai/v1/files/{file_id}
Path parameters
file_idstringrequired
Unique file ID.
Response
Returns a single File object.
Example
from openai import OpenAI
client = OpenAI(api_key="STEP_API_KEY", base_url="https://api.stepfun.ai/v1")
print(client.files.retrieve("file-stepab"))
Response
{
"id": "file-abc123",
"object": "file",
"bytes": 140,
"created_at": 1613779121,
"filename": "salesOverview.pdf",
"purpose": "file-extract",
"status":"success"
}Last updated on