简体中文
cURL
curl --request POST \ --url https://geekai.co/api/v1/files \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form purpose=file-extract \ --form format=text \ --form file=@example-file
{ "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "size": 123, "type": "<string>", "status": "pending", "md5": "<string>", "content": "<string>" }
上传并处理各种格式的文件,支持文本提取、格式转换等功能。
curl --location --request POST 'https://geekai.co/api/v1/files' \ --header 'Authorization: Bearer {YOUR_GEEKAI_API_KEY}' \ --form 'file=@"/E:/文档/geekai/test.pdf"'
JWT认证token
成功响应
The response is of type object.
object