要上傳新檔案,您必須先使用 File API。它會提供一個網址——請使用該網址上傳您的檔案。上傳完成後,您可以使用同一個回應中的 file_id,開始使用我們的 AI 功能。
安全
BearerAuthenticationV2
- https://yce-api-01.makeupar.comhttps://yce-api-01.makeupar.com/s2s/v2.0/file
curl -i -X POST \
https://yce-api-01.makeupar.com/s2s/v2.0/file \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"files": [
{
"content_type": "image/jpg",
"file_name": "my-selfie.jpg",
"file_size": 50000
}
]
}'