BetterVideo Enterprise API

Privacy-first AI video enhancement, bought through AWS Marketplace and billed per second on your AWS bill.

πŸ‡ΊπŸ‡Έ US company πŸ”’ Never trains AI on your video πŸ—‘οΈ Auto-delete on your schedule 🧾 Signed deletion certificate on every Secure job

Getting started

  1. Subscribe to BetterVideo on AWS Marketplace.
  2. AWS sends you to our signup page. Enter your details and you receive your API key, which starts with bv_ent_. It is shown once, so store it in your secrets manager.
  3. Send it on every request:
Authorization: Bearer bv_ent_YOUR_KEY

Base URL: https://enterprise.bettervideo.io. All requests and responses are JSON over HTTPS.

The 4 steps

1. Give us the video. Either point us at a file in your own S3 bucket (recommended, the file never leaves AWS storage) or upload it to us.

Option A: a link to your own S3 file

Create a pre-signed GET link valid for at least 12 hours, then start the job with it:

aws s3 presign s3://your-bucket/videos/input.mp4 --expires-in 43200

curl -X POST https://enterprise.bettervideo.io/v1/jobs \
  -H "Authorization: Bearer $BV_KEY" -H "Content-Type: application/json" \
  -d '{"source_url": "https://your-bucket.s3.amazonaws.com/videos/input.mp4?X-Amz-...",
       "resolution": "1080p", "secure": false,
       "webhook_url": "https://your-app.example.com/bettervideo-webhook"}'

Option B: upload to us (files up to 5 GB)

# 1) ask for an upload link
curl -X POST https://enterprise.bettervideo.io/v1/uploads -H "Authorization: Bearer $BV_KEY"
# β†’ {"upload_id": "…", "upload_url": "https://…", "method": "PUT", "content_type": "video/mp4", "expires_in": 3600}

# 2) upload the file to that link (within 1 hour)
curl -X PUT -H "Content-Type: video/mp4" --data-binary @input.mp4 "$UPLOAD_URL"

# 3) start the job from the upload
curl -X POST https://enterprise.bettervideo.io/v1/jobs \
  -H "Authorization: Bearer $BV_KEY" -H "Content-Type: application/json" \
  -d '{"upload_id": "…", "resolution": "4k", "secure": true}'

2. Wait. Use a webhook (below) or check the status every 15–30 seconds:

curl https://enterprise.bettervideo.io/v1/jobs/JOB_ID -H "Authorization: Bearer $BV_KEY"
# β†’ {"id": "…", "status": "processing", "resolution": "4k", "secure": true, …}

3. Download. When the status is done:

curl https://enterprise.bettervideo.io/v1/jobs/JOB_ID/download -H "Authorization: Bearer $BV_KEY"
# β†’ {"download_url": "https://…", "expires_in": 3600}

4. Delete when you no longer need it, or let it auto-delete (default 30 days). Secure jobs return a signed deletion certificate.

curl -X DELETE https://enterprise.bettervideo.io/v1/jobs/JOB_ID -H "Authorization: Bearer $BV_KEY"

Jobs

FieldValuesNotes
source_url or upload_idexactly oneLinks must be public https addresses.
resolution1080p (default), 4k1080p keeps the source size and enhances it; 4K doubles the size (e.g. 1080p β†’ 4K).
securefalse (default), trueSecure adds a signed deletion certificate and audit trail.
webhook_urloptionalA public https address on port 443.

Statuses: awaiting_upload β†’ queued β†’ processing β†’ done or failed β†’ deleted.

A failed job includes "error": {"code": "…", "message": "…"} and is never billed.

Usage report: GET /v1/usage returns your billed seconds by month and dimension.

Deletion & certificates

Every job's files (your source and our output) are deleted automatically after your retention period (default 30 days), or immediately on DELETE /v1/jobs/{id}. A job can't be deleted while it is still running.

For Secure jobs, the delete response includes a signed deletion certificate, and you can fetch it again any time:

curl https://enterprise.bettervideo.io/v1/jobs/JOB_ID/deletion-certificate -H "Authorization: Bearer $BV_KEY"
# β†’ {"certificate_id": "…", "job_id": "…", "deleted_at": "…", "objects_deleted": 2,
#    "storage": "AWS S3 (encrypted at rest)", "reason": "customer_request",
#    "algorithm": "HMAC-SHA256", "signature": "…"}

Keep certificates with your compliance records. Contact us if your auditor needs to have a certificate verified.

Webhooks

When a job finishes, we POST a JSON event to your webhook_url (3 attempts, no redirects followed):

{"event": "job.done", "job_id": "…", "status": "done", "billed_seconds": 92, "dimension": "Standard1080p"}
{"event": "job.failed", "job_id": "…", "status": "failed", "error": "unreadable_source"}

A webhook carries no video and no download link, only the job id and its result. Treat it as a notification: when it arrives, confirm with an authenticated call before acting on it:

curl https://enterprise.bettervideo.io/v1/jobs/JOB_ID -H "Authorization: Bearer $BV_KEY"

Because only your API key can read a job, a forged webhook can't trick your system into anything.

Billing

You pay through your AWS bill, per second of delivered video, rounded to the nearest second (minimum 1). Failed jobs are never billed.

AWS dimensionPer secondPer minute
Standard 1080p$0.03$1.80
Standard 4K$0.06$3.60
Secure 1080p$0.06$3.60
Secure 4K$0.12$7.20
Volume or annual pricing? Ask us for an AWS private offer, still billed through AWS.

Errors & limits

HTTPCodeMeaning
401unauthorizedMissing or wrong API key.
403subscription_inactiveYour AWS Marketplace subscription isn't active.
400invalid_source, invalid_resolution, invalid_source_url, invalid_webhook_urlCheck the request body.
404not_found, upload_not_foundNo such job or upload in your account.
409not_ready, upload_missing, job_runningTry again later or finish the previous step.
429too_many_jobs, rate_limitedWait for running jobs to finish, or slow down.

Job failure codes: unreadable_source, video_too_long, source_unreachable, source_too_large, processing_error.

Limits: videos up to 60 minutes (raise it per contract), 3 jobs queued or processing at once per account (raise it per contract), source files up to 200 GB by link or 5 GB by upload. Available to buyers in the United States and Canada.

Support

Email support@bettervideo.io. We reply within one business day.