PennyCompute Billing API
The prepaid balance, charges and statements.
The prepaid balance, charges and statements.
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-billing-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 Billing 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: Billing
description: The prepaid balance, charges and statements.
paths:
/v1/billing/balance:
get:
operationId: getBalance
tags:
- Billing
summary: Read the prepaid balance
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
prepaid_micros:
type: string
pattern: ^[0-9]+$
description: Funds added and not yet charged, in millionths of one US dollar. A new account starts at 5000000, $5.
outstanding_micros:
type: string
pattern: ^[0-9]+$
description: Charges for finished work that the balance did not cover. The next top-up pays them first, and a job submit answers 402 until they are paid.
required:
- prepaid_micros
- outstanding_micros
default:
description: Request error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/v1/usage:
get:
operationId: listUsage
tags:
- Billing
summary: List charges and usage entries
description: One entry per charge, newest first. A parameter the call does not know is refused with 400 invalid_request.
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
usage:
type: array
items:
type: object
properties:
id:
type: string
job_id:
type:
- string
- 'null'
instance_id:
type: string
description: Set on the charge of a container instance, with its label and running seconds.
label:
type:
- string
- 'null'
running_seconds:
type: integer
kind:
type: string
enum:
- job_execution
- instance
description: 'job_execution: the charge of one succeeded job.'
amount_micros:
type: string
pattern: ^[0-9]+$
description: Millionths of one US dollar
created_at:
type: string
required: []
next_cursor:
type:
- string
- 'null'
description: Cursor for the next page, or null when there are no more entries.
required:
- usage
default:
description: Request error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
parameters:
- name: since
in: query
schema:
type: string
format: date-time
description: Entries created at or after this time. A date-time with an offset, such as 2026-11-01T00:00:00Z.
- name: until
in: query
schema:
type: string
format: date-time
description: Entries created before this time. It has to be later than since, or the answer is 400 invalid_period.
- name: limit
in: query
schema:
type: integer
minimum: 1
maximum: 200
default: 50
- name: cursor
in: query
schema:
type: string
description: next_cursor from the previous page.
/v1/invoices:
get:
operationId: listInvoices
tags:
- Billing
summary: List invoices
description: One statement for each calendar month (UTC) with charges, newest first. A statement id is st_ and the month, such as st_2026-11. The current month is a draft; a past month is issued.
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
invoices:
type: array
items:
type: object
properties:
id:
type: string
currency:
type: string
status:
type: string
period_start:
type: string
period_end:
type: string
total_micros:
type: string
pattern: ^[0-9]+$
description: Millionths of one US dollar
created_at:
type: string
required: []
required:
- invoices
default:
description: Request error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
parameters:
- name: limit
in: query
schema:
type: integer
minimum: 1
maximum: 200
default: 50
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.'