Skip to main content
POST
/
v1
/
files
Upload a file
curl --request POST \
  --url https://gomodel.example.com/v1/files \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'purpose=<string>' \
  --form file='@example-file'
{
  "bytes": 123,
  "created_at": 123,
  "filename": "<string>",
  "id": "<string>",
  "object": "<string>",
  "provider": "<string>",
  "purpose": "<string>",
  "status": "<string>",
  "status_details": "<string>"
}

Authorizations

Authorization
string
header
required

Query Parameters

provider
string

Provider override when multiple providers are configured

Body

multipart/form-data
purpose
string
required

File purpose

file
file
required

File to upload

Response

OK

bytes
integer
created_at
integer
filename
string
id
string
object
string
provider
string

Gateway enrichment for multi-provider deployments.

purpose
string
status
string
status_details
string