Error while uploading to Stream using API

I’m trying to upload a video to Stream and getting the “413 Request Entity Too Large” error without additional info in the body.
Video size: 410 Mb
Duration: 1 hour 47 minutes.
Format: avi

I have checked possible cases mentioned in the help:

  1. “By default, a video upload can be at most 30 GB.”
    —My video size is 410 Mb. Not my case

  2. “By default, 120 videos can be in the inprogress, queued or downloading state at once. If videos are in error, ready or pendingupload states, they don’t count towards this limit.”
    —I have only 103 items in total. Not my case.

  3. “An account cannot upload videos if the total video duration exceeds the video storage capacity purchased.”
    —I’m used only 64 minutes of my 1’000 minutes package. Not my case.

Please help.

Can you share the request / response headers and response body when you get this message? Remember to REDACT any API keys or account identifiers.

Request headers:

“content-length” => “410509922”
“expect” => “100-Continue”
“user-agent” => “GuzzleHttp/7”
“content-type” => “multipart/form-data; boundary=9e45c31e3c3cfb0c25d4bf25ec172d913a4cf1af”
“host” => “
“authorization” => “Bearer blabla”

Response: headers:

‘Date’ => ‘Fri, 18 Jun 2021 08:40:36 GMT’,
‘Content-Type’ => ‘text/html’,
‘Content-Length’ => ‘181’,
‘Connection’ => ‘keep-alive’,
‘cf-request-id’ => ‘0abfe089fb0000406b0c337000000001’,
‘Expect-CT’ => ‘max-age=604800, report-uri=“”’,
‘Set-Cookie’ => ‘__cfruid=blabla; path=/;; HttpOnly; Secure; SameSite=None’,
‘Server’ => ‘cloudflare’,
‘CF-RAY’ => ‘661336bccc8a406b-LHR’,

Response body:

413 Request Entity Too Large

413 Request Entity Too Large


Hi, for videos over 200MB, we suggest using tus:

Basic uploads are recommended for videos <200MB