🎉 New kimi k2.5 Multi-modal Model released! Now supports multimodal understanding and processing.
cURL
curl --request GET \ --url https://api.moonshot.ai/v1/files \ --header 'Authorization: Bearer <token>'
{ "object": "list", "data": [ { "id": "<string>", "object": "file", "bytes": 123, "created_at": 123, "filename": "<string>", "purpose": "file-extract", "status": "ok", "status_details": "<string>" } ] }
Lists all files uploaded by the current user.
Usage Example
file_list = client.files.list() for file in file_list.data: print(file) # Inspect the metadata of each file
The Authorization header expects a Bearer token. Use an MOONSHOT_API_KEY as the token. This is a server-side secret key. Generate one on the API keys page in your dashboard.
List of uploaded files
"list"
Show child attributes
Was this page helpful?