Calculate operation cost
POST/v1/actions/:actionName/cost
Calculates the credit cost for executing an action with the given parameters.
The request body should match the action's inputSchema. File references are
automatically extracted from parameters using the schema's format: "file-reference"
annotation. File metadata is extracted and cached as needed for cost calculation.
Works with both OAuth (userSession) and API key authentication.
Request
Responses
- 200
- 400
- 401
- 404
Cost breakdown
Bad request
Unauthorized
Not found