POST
/
v1
/
files
curl --request POST \
  --url https://api.siliconflow.cn/v1/v1/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form purpose=batch
{
  "code": 20000,
  "message": "Ok",
  "status": true,
  "data": {
    "id": "file-jkvytbjtow",
    "object": "file",
    "bytes": 8509,
    "createdAt": 1741685396,
    "filename": "requests.jsonl",
    "purpose": "batch"
  }
}

Authorizations

Authorization
string
header
required

Use the following format for authentication: Bearer <your api key>

Body

multipart/form-data
purpose
enum<string>
required
Available options:
batch
Example:

"batch"

file
file
required

File to upload

Response

200
application/json
Successful response
code
integer
Example:

20000

message
string
Example:

"Ok"

status
boolean
Example:

true

data
object