Upload the file for the LLM to process.Note: The maximum file size is limited to 50MB, with no restrictions on file format.
Request
Body Params multipart/form-data
Request Code Samples
curl --location --request POST 'https://api.302.ai/upload-file' \
--header 'Authorization: Bearer ' \
--form 'file=@""'
Responses
application/json {
"code": 200,
"data": "https://file.302.ai/gpt/imgs/20260111/xxx.png",
"message": "success"
}
Modified at 2026-01-14 10:16:08