# Video Bitrate & File Size Calculator

> Video Bitrate & File Size Calculator is a paid API for AI agents from video-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-21).

Calculates video file size from bitrate and duration, bits per pixel, or the bitrate needed to hit a target file size.

## Facts

- Endpoint: GET https://video-calc.x402tookit.com/video-bitrate-size?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/video-bitrate-file-size-calculator-1fab2f1f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pwQQjwP0APMDXYqj2vESy

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability video-bitrate-file-size-calculator-1fab2f1f
```

Example prompt: How big will a 90-minute video file be if I encode it at 8 Mbps total bitrate — give me the size in MB and GB.

## When to prefer this

Use this endpoint when you need fast, precise video file size or bitrate calculations without setting up local tooling. Ideal for pre-production storage planning, upload size compliance checks, or encoding workflow automation where an agent needs to compute sizing on the fly.

## Known failure modes

- Missing required 'seconds' parameter returns an error
- Omitting both bitrateMbps and targetSizeMB leaves the calculation underdetermined
- Negative or zero values for duration or bitrate may produce invalid results
- Very large or very small values may yield impractical outputs without explicit error

## How this service works

File size from video bitrate and duration (MB, GB, GiB), bits per pixel, or the bitrate that hits a target size.

## Output

Returns file size in MB, GB, GiB, and MiB; total bitrate in Mbps; bits per pixel; size per minute in MB; and a plain-language summary. If solving for target size, returns the required bitrate. Includes optional disclaimer and degraded flag.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "seconds"
     ],
     "properties": {
      "fps": {
       "type": "number",
       "description": "Frames per second"
      },
      "width": {
       "type": "integer",
       "description": "Frame width, with height and fps to compute bits per pixel"
      },
      "height": {
       "type": "integer",
       "description": "Frame height"
      },
      "seconds": {
       "type": "number",
       "description": "Duration in seconds"
      },
      "audioKbps": {
       "type": "number",
       "description": "Audio bitrate in kbps when solving for target size (default 0)"
      },
      "bitrateMbps": {
       "type": "number",
       "description": "Total bitrate in megabits per second (use this or targetSizeMB)"
      },
      "targetSizeMB": {
       "type": "number",
       "description": "Target file size in decimal megabytes, to get the bitrate"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "sizeGB": {
       "type": [
        "null",
        "number"
       ]
      },
      "sizeMB": {
       "type": [
        "null",
        "number"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "seconds": {
       "type": [
        "null",
        "number"
       ]
      },
      "sizeGiB": {
       "type": [
        "null",
        "number"
       ]
      },
      "sizeMiB": {
       "type": [
        "null",
        "number"
       ]
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/video-bitrate-file-size-calculator-1fab2f1f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from video-calc.x402tookit.com](https://www.zero.xyz/host/video-calc.x402tookit.com/llms.txt)
