cURL
curl --request GET \ --url https://api.siliconflow.cn/v1/files \ --header 'Authorization: Bearer <token>'
{ "code": 20000, "message": "Ok", "status": true, "data": { "data": [ { "id": "file-kkhtqklcnm", "object": "file", "bytes": 806, "created_at": 1741777570, "filename": "requests-2.jsonl", "purpose": "batch", "line_count": 2 } ], "object": "file" } }
Returns a list of files.
Use the following format for authentication: Bearer
Filter files by their purpose
batch
Maximum number of files to return (default 10)
x >= 1
Successful response with file list
20000
"Ok"
true
Show child attributes
"file-kkhtqklcnm"
"file"
806
1741777570
"requests-2.jsonl"
"batch"
2