Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request POST \ --url https://api.shuyou.ai/v1/files \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file='@example-file' \ --form purpose=assistants
{ "id": "file_abc123", "object": "file", "bytes": 120000, "created_at": 1677610602, "filename": "document.pdf", "purpose": "assistants", "status": "processed" }
通过 OpenAI 兼容的 Files API 以 multipart/form-data 上传文件。
Authorization: Bearer YOUR_API_KEY
File to upload (PDF, images, etc. depending on purpose and model support)
Intended use of the file
assistants
batch
fine-tune
vision
user_data
"assistants"
File uploaded
"file_abc123"
"file"
120000
1677610602
"document.pdf"
"processed"