Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions apify-api/openapi/components/schemas/actor-runs/Run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,21 @@ properties:
nullable: true
example: master
usage:
allOf:
- oneOf:
- nullable: true
- $ref: ./RunUsage.yaml
- {}
nullable: true
$ref: ./RunUsage.yaml
usageTotalUsd:
type: number
nullable: true
description: >-
Total cost in USD for this run. Represents what you actually pay.
For run owners: includes platform usage (compute units) and/or event costs depending on the Actor's pricing model.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

depends on pricing model - yes - but also depends on "if you own the Actor" 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean, this is written under "For run owners:", so the "if you own the Actor" condition is already satisfied, right?

For non-owners: only available for Pay-Per-Event Actors (event costs only).
Not available for Pay-Per-Result Actors when you're not the Actor owner.
example: 0.2654
usageUsd:
allOf:
- oneOf:
- nullable: true
- $ref: ./RunUsage.yaml
- {}
nullable: true
description: >-
Platform usage costs breakdown in USD. Only present if you own the run AND are paying for platform usage
(Pay-Per-Usage, Rental, or Pay-Per-Event with usage costs like standby Actors).
Copy link
Contributor

@stetizu1 stetizu1 Jan 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am technically missing there "if you are Actor owner" case - you are then only paying for usage

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That seems like too much detail to me honestly...

Not available for standard Pay-Per-Event Actors or Pay-Per-Result Actors owned by others.
$ref: ./RunUsage.yaml
Loading