The request body is too large

    Where you might see it: Claude, ChatGPT and other AI apps · API

    What happened

    The JSON body of your request was bigger than the API accepts, so it was refused with 413 PAYLOAD_TOO_LARGE before anything was read. This is about the request's JSON, not about your audio or video file. Nothing was started.

    Why it happens

    • The JSON body is over 100KB. The message says "Request body must be under 100KB."
    • The media file itself was put in the JSON body. The API takes only small JSON requests. A file is sent to the upload address that POST /v1/upload gives you, not inside a JSON request.

    What to do

    1. Keep request bodies small: they only carry options such as url, upload_id, language, diarize and webhook_url.
    2. To transcribe a file, ask for an upload address with POST /v1/upload, send the file there, then call POST /v1/transcribe with the upload_id.
    3. For a file you can reach on the internet, send its link as url instead of the file.

    In Claude, ChatGPT and other AI apps

    1. You see this only when the app uses an API key. Ask the app to send the file through its upload step, or to use a link to the file, instead of putting the file's contents in the request.

    Were you charged?

    No. Nothing was started, so nothing was used.

    Still stuck?

    Email support@scriptivox.com with:

    • the email address of your Scriptivox account
    • the request_id from the answer, and the approximate size of the body you sent
    • when it happened, with your time zone
    • the exact message you saw

    In Claude, ChatGPT or another AI app, you can also ask it to send us a problem report: it shows you the report first and sends it only when you say yes.

    For developers

    413 PAYLOAD_TOO_LARGE, answered at once on the request, before your key is checked. The limit is on the Content-Length header: a body larger than 100KB is refused. Sending the same body again gives the same answer; make it smaller. The limit for the media file is separate and much larger: files go to the upload address from POST /v1/upload, which accepts up to 5 GB.

    Very large uploads can also be turned away by the network layer in front of the API with a plain 413 page that is not JSON, before they reach the API at all, so handle a non-JSON error body in your client.

    {
      "error": {
        "code": "PAYLOAD_TOO_LARGE",
        "message": "Request body must be under 100KB.",
        "docs_url": "https://www.scriptivox.com/errors/request-body-too-large",
        "help_id": "request-body-too-large",
        "request_id": "req_6fe725fffa7d9b98"
      }
    }