Overview
This endpoint allows users to retrieve cost estimate of specific workflow when run actually. Authentication via a bearer token is required.
-
Method:
GET -
URL:
/v0/workflows/{workflow_id}/estimate - Operation: Get cost estimate of a workflow
- Authentication Required: Yes
Authorization
You need the api key which you can get from the API tab in Workspace Settings. The api key is required in almost all the commands
Path Parameters
The workflow_id identifies the exact workflow whose cost is to be retrieved.
| Field | Type | Required | Description |
|---|---|---|---|
workflow_id | string | Yes | Unique identifier of the workflow |
Response
A 200 OK response returns estimated cost of running the workflow.
| Name | Type | Description |
|---|---|---|
estimated_cost | integer | Estimated or actual cost of job execution |
200
400 403
How to use the endpoint
-
Construct your Request:
Gather theworkflow_idof the workflow whose cost is to be estimated. -
Send the Request:
After including your bearer token in the Authorization header make a GET request tohttps://api.pixxel.space/v0/workflows/{workflow_id}/estimate. -
Examine the Response:
On success, you recieve the estimated cost. Handle errors with appropriate fallback and retry mechanisms.