Files
Files 操作
Upload a file
Upload one nonempty file up to 100 MiB. Uploaded files can be referenced by ID but cannot be downloaded. Supported uploads include PDF, PNG/JPEG/GIF/WebP, MP4, audio, Office documents and UTF-8 text. Generation inputs require compatible media and model capabilities; Messages/Responses accept PDF and images only.
请求体
必填
application/json
响应
- 类型: object · FileMetadata200
Successful Response
- 类型: string · Created At格式: date-timecreated
_at 必填the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z
- 类型: boolean · Downloadabledownloadable必填
Whether the original bytes can be downloaded. Uploaded files cannot.
- 类型: string · Filenamefilename必填
- 类型: string · Idid必填
- 类型: string · Mime Typemime
_type 必填 - 类型: integer · Size Bytessize
_bytes 必填Integer numbers.
- 类型: string · Source枚举source必填
Origin of the file:
uploadfor user uploads,generatedfor model outputs.值- upload
- generated
- type常量:file必填
application/json
Request Example for post/api/v1/files
curl https://openapi.felo.ai/api/v1/files \
--request POST \
--header 'Content-Type: multipart/form-data' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--form 'file=@filename'
{
"id": "string",
"type": "file",
"source": "upload",
"filename": "string",
"mime_type": "string",
"size_bytes": 1,
"created_at": "2026-11-06T18:37:59.954Z",
"downloadable": true
}