RunningHub API icon

RunningHub API

Interact with the RunningHub API

Standard Model API → Preview Model API Price

AI-generated

Summary

Previews the cost of a RunningHub standard model API request without running it, by POSTing the same request body to the matching /openapi/v2/price-preview/... endpoint.

Inputs

  • Endpoint Path (required) — Model API path relative to /openapi/v2, e.g. rhart-image-g/image-to-image. A full /openapi/v2/... path is also accepted: the prefix is stripped, or a leading slash removed. The node then calls /openapi/v2/price-preview/.
  • Request Body (required) — JSON object you would send to the model API itself. It is parsed and sent as the price-preview request body. Invalid JSON causes an error.

Output shape

One JSON output item per input item, containing the RunningHub price-preview response as returned by the API.

The response is passed through unmodified, so its fields depend on RunningHub. The API key is sent as a Bearer Authorization header, not in the body. A license key is checked before execution. With Continue On Fail enabled, failed items return an error entry instead of stopping the workflow.

Examples

Example 1: Check the cost of an image-to-image generation before running it

Endpoint Path: rhart-image-g/image-to-image; Request Body: the same JSON (prompt, image URLs, etc.) you would pass to Run Model API.

Example 2: Gate an expensive call on its estimated price

Run Preview Model API Price with the planned body, then use an IF node on the returned price before a Run Model API node.

Links

Discussion