PennyCompute Uploads API
Host a source file or a complete Remotion bundle for a job. Any public link works in a job input without an upload.
Host a source file or a complete Remotion bundle for a job. Any public link works in a job input without an upload.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/pennycompute-com:pennycompute-com-uploads-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: PennyCompute buyer Uploads API
version: 1.10.2
description: 'Media jobs over HTTP: video generation with MiniMax H3, FFmpeg work (transcode, stitch, sound mix, captions, timeline exports, frame images and sound files), media measurement and Remotion renders. Create a server API key in the dashboard at https://app.pennycompute.com and send it on every call as Authorization: Bearer . Submit a job to POST /v1/jobs with a service_id and its input, read GET /v1/jobs/{id} until its status is final or register a webhook endpoint, then fetch the file from the link GET /v1/jobs/{id}/output returns. Media goes in by public link; POST /v1/assets hosts one source file or a complete Remotion bundle. h3.video.v1 is text to video with optional first and last frames or reference files; h3.reference_480p.v1 is the earlier one-image preset, kept for existing integrations. Bodies are JSON, up to 2 MB. Amounts are strings in millionths of one US dollar. Each API key may send 600 requests a minute. A request over the limit receives HTTP 429 with the error rate_limited and a Retry-After header in seconds. Job submissions, estimates and capacity reads are each limited to 120 a minute for a key and answer 429 past that. Guides are at https://pennycompute.com/docs, the reference at https://pennycompute.com/docs/api and the dated list of changes at https://pennycompute.com/docs/changes.'
servers:
- url: https://api.pennycompute.com
security:
- buyerKey: []
tags:
- name: Uploads
description: Host a source file or a complete Remotion bundle for a job. Any public link works in a job input without an upload.
paths:
/v1/assets:
post:
operationId: createUpload
tags:
- Uploads
summary: Prepare source uploads
description: 'Hosts one source file, or a complete Remotion bundle. For one file, returns an upload_url that is also its input_url. For a bundle, send every path, byte length and SHA-256 together; the response gives each upload_url and one serve_url whose relative files are served from the same folder on the isolated quiet-field-7f3c.buildngrowsv.workers.dev origin. That origin has no API, session or cookies; api.pennycompute.com refuses bundle reads. A bundle can have up to 256 nonempty files of up to 100000000 bytes each and 1000000000 bytes in all. Files stop being served 24 hours from their PUT and are swept after a further 48-hour margin. Responses carry X-Content-Type-Options: nosniff. Single-file responses also carry Content-Security-Policy: sandbox; default-src ''none''; bundle HTML carries a separate Content-Security-Policy that permits Remotion’s inline configuration, same-origin scripts and public HTTPS media. Any other public link works in a job input without an upload.'
requestBody:
required: true
content:
application/json:
schema:
oneOf:
- type: object
properties:
sha256:
type: string
pattern: ^[0-9a-f]{64}$
description: 'SHA-256 of the file, in hex. The file is then named by it: the same bytes always get the same link, so a job sent again with the same files and the same Idempotency-Key is the same request. An upload whose bytes do not match is refused with digest_mismatch.'
content_type:
type: string
minLength: 3
maxLength: 200
pattern: ^(?![^/]+/[^;]*\+xml(?:\s*;|$))(?:(?:video|audio|image)/[a-z0-9!#$&^_.+-]+|application/(?:octet-stream|json)|text/plain)(?:\s*;.*)?$
description: 'The validated type the file is served with: video/*, audio/*, image/* except SVG or another +xml type, application/octet-stream, application/json, or text/plain. Other types, including HTML and XSL, are refused. Without it the file is served as application/octet-stream; the PUT Content-Type does not replace it.'
bytes:
type: integer
description: No longer needed. Accepted and ignored.
public_intent:
type: boolean
description: No longer needed. Accepted and ignored.
required: []
not:
required:
- files
- type: object
properties:
files:
type: array
minItems: 1
maxItems: 256
items:
type: object
properties:
path:
type: string
minLength: 1
maxLength: 1024
description: Relative path in the bundle, with / between folders. No leading /, empty segment, . or .. segment, or backslash. One file must be index.html at the root.
sha256:
type: string
pattern: ^[0-9a-f]{64}$
description: SHA-256 of this file, in hex. A PUT whose bytes do not match is refused with digest_mismatch.
bytes:
type: integer
minimum: 1
maximum: 100000000
description: Exact nonzero file length. The PUT Content-Length must match. Each file can be up to 100 MB.
required:
- path
- sha256
- bytes
additionalProperties: false
description: Every regular file in the output folder from npx remotion bundle, including index.html. The sum of bytes can be at most 1 GB.
required:
- files
additionalProperties: false
responses:
'200':
description: Success
content:
application/json:
schema:
oneOf:
- type: object
properties:
upload_url:
type: string
format: uri
description: 'PUT the file bytes here with a Content-Length; the upload needs no key and returns 201. A place named by sha256 takes the same bytes again; any other place takes one upload. Refusals: 411 length_required (no Content-Length), 412 already_uploaded (the place already has its file), 400 digest_mismatch (the bytes are not the ones sha256 named), 404 not_found (no such place).'
input_url:
type: string
format: uri
description: 'The public link of the uploaded file: the same address as upload_url. Use it in a job input. Every response carries Content-Security-Policy: sandbox; default-src ''none''. The file is kept for 24 hours. An upload can be up to 100 MB; pass a larger file by its own link.'
uploaded:
type: boolean
description: 'Sent when the request named the file by sha256. true: the file is already stored and its link has at least 12 hours left, so there is nothing to upload.'
required:
- upload_url
- input_url
- type: object
properties:
serve_url:
type: string
format: uri
description: Public link to the bundle’s index.html on the isolated https://quiet-field-7f3c.buildngrowsv.workers.dev origin. Pass it as input.serve_url to remotion.render.v1 after every upload has returned 201. The bundle origin uses no API key, session or cookies, and the API origin does not serve bundle files.
uploads:
type: array
minItems: 1
maxItems: 256
items:
type: object
properties:
path:
type: string
description: The relative bundle path named in the request.
upload_url:
type: string
format: uri
description: 'PUT this file’s bytes here with a Content-Length equal to bytes. The upload needs no key and returns 201. The bytes must match its sha256. Refusals: 411 length_required (no Content-Length), 400 size_mismatch or digest_mismatch, 404 not_found (the bundle or path was not prepared).'
content_type:
type: string
description: The type the file is served with, inferred from its path. The PUT Content-Type does not replace it.
required:
- path
- upload_url
- content_type
description: One upload for every requested file. PUT all of them, including files uploaded before; another PUT of the declared bytes is accepted and renews its 24 hours.
required:
- serve_url
- uploads
'400':
description: 'invalid_bundle: files is empty or over the limit, index.html is missing, a file is empty, a path is unsafe or repeated, bytes or a SHA-256 is missing, or an unknown field was sent. bundle_too_large: the files total more than 1 GB. size_mismatch or digest_mismatch: uploaded bytes do not match the manifest. invalid_content_type: a single upload named a type outside the documented media allowlist.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: 'bundle_origin_unavailable: bundle hosting is not configured; no manifest or upload links were created.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
default:
description: Request error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
Error:
type: object
properties:
error:
type: string
description: 'A stable code to branch on. On any call: unauthorized (401, no key, or one that is unknown or revoked), missing_scope (403, the key lacks jobs:read or jobs:write), not_found (404, no such path, or nothing with that ID in your organization), rate_limited (429). internal_error (500) and supplier_unavailable (502) are faults on our side: send the request again. Each operation lists the codes of its own.'
issues:
type: array
description: 'Present when error is invalid_request: the input fields that were refused.'
items:
type: object
properties:
field:
type: string
message:
type: string
required:
- field
- message
required:
- error
securitySchemes:
buyerKey:
type: http
scheme: bearer
description: 'A server API key, created in the dashboard at https://app.pennycompute.com under Server API keys. It starts with pc_live_ and is shown once, when it is created. Send it as Authorization: Bearer <key>. A key carries the scopes jobs:read and jobs:write. Submitting and cancelling jobs, preparing uploads and changing webhook endpoints need jobs:write; listing and reading jobs, usage, invoices and webhook endpoints need jobs:read. A call with no key, or with an unknown or revoked one, answers 401 unauthorized. A key without the scope answers 403 missing_scope.'