Skip to content

Describe how billable units are counted and bounded - #135

Closed
dazzatronus wants to merge 1 commit into
mainfrom
derk/eng-903-add-units-bounds
Closed

Describe how billable units are counted and bounded#135
dazzatronus wants to merge 1 commit into
mainfrom
derk/eng-903-add-units-bounds

Conversation

@dazzatronus

@dazzatronus dazzatronus commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

The models endpoint returns units and bounds, but the schema never described them, so
nobody reading the spec can work out what a generation costs. A 61 second music track works
out to 5.08 credits when we actually charge 10, because the rate is per minute and a part
minute rounds up.

This also drops the line saying there is no formula to evaluate, which was never true.

Both properties are optional and nothing existing changes. The tieredBy type is wrong as
well, but that one changes a contract we have already shipped, so it goes separately.

Verify: pnpm bundle && pnpm build && pnpm test && pnpm test:smoke, 71 pass.

https://linear.app/shotstack/issue/ENG-903

@dazzatronus
dazzatronus force-pushed the derk/eng-903-add-units-bounds branch from 8de51d4 to 13a58bf Compare September 1, 2026 01:12
@dazzatronus dazzatronus closed this Sep 1, 2026
@dazzatronus
dazzatronus deleted the derk/eng-903-add-units-bounds branch September 1, 2026 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant