POST
/v1/filesFiles
Upload files for batch input, Assistants attachments, vision, and audio.
Request
- HTTP
- POST
- URL
- /v1/files
- Auth
- api_key
Try it
curl https://api.fightclub.pro/v1/files \ -H "Authorization: Bearer $FC_API_KEY" \ -F purpose=batch -F file=@input.jsonl
Parameters
| Name | Type | Description |
|---|---|---|
| file* | binary | multipart/form-data file content. |
| purpose* | string | "batch" | "attachments" | "vision". |
Response fields
| Name | Type | Description |
|---|---|---|
| id | string | File ID (file_*). |
| bytes | integer | File size. |
| purpose | string | Echoed purpose. |
Errors
- 413
file_too_large, Max 512MB per file.
See the full error reference.