Files API
Get File
Retrieve file metadata by ID.
GET
/
v1
/
files
/
{file_id}
curl https://gateway.bud.studio/v1/files/file-abc123 \
-H "Authorization: Bearer YOUR_API_KEY"
{
"id": "file-abc123",
"object": "file",
"bytes": 2048,
"created_at": 1699000000,
"filename": "batch_requests.jsonl",
"purpose": "batch",
"status": "processed",
"status_details": null
}
curl https://gateway.bud.studio/v1/files/file-abc123 \
-H "Authorization: Bearer YOUR_API_KEY"
{
"id": "file-abc123",
"object": "file",
"bytes": 2048,
"created_at": 1699000000,
"filename": "batch_requests.jsonl",
"purpose": "batch",
"status": "processed",
"status_details": null
}
Headers
| Parameter | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer authentication header |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| file_id | string | Yes | The ID of the file to retrieve |
Supported Providers
OpenAI
File management for Batch API and Assistants
Azure OpenAI
Enterprise file storage with compliance
⌘I
curl https://gateway.bud.studio/v1/files/file-abc123 \
-H "Authorization: Bearer YOUR_API_KEY"
{
"id": "file-abc123",
"object": "file",
"bytes": 2048,
"created_at": 1699000000,
"filename": "batch_requests.jsonl",
"purpose": "batch",
"status": "processed",
"status_details": null
}