文件上传接口
File
Upload File
POST
文件上传接口
GeekAI provides file upload and content extraction capabilities, supporting various file formats, including images, audio, video, and documents (PDF/Office/plain text). You can upload files to be recognized through the file upload interface, and then obtain the file content through the file content extraction interface. With this basic service, you can implement higher-level business scenarios such as AI file conversation/RAG.
cURL Request Example
Authorizations
API认证token
Body
multipart/form-data
Response
成功响应
文件唯一ID,可通过该ID获取文件内容
文件状态: pending(待处理)/reading(读取中)/failed(读取失败)/done(已读取)
Available options:
pending, reading, processing, failed, done 文件名称
文件大小
文件MIME类型
文件MD5值
文件URL地址
文件内容(只有status=done时,才会填充该字段)
