Skip to main content
POST
/
api
/
v1
/
pipelines
/
estimate
Estimate Pipeline
curl --request POST \
  --url https://roughy-api-staging.fly.dev/api/v1/pipelines/estimate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "steps": [
    {
      "config": {
        "language_code": "de",
        "mode": "unscripted"
      },
      "processor_name": "cut",
      "usage_units": "324.412"
    },
    {
      "config": {
        "cut_step_order": 0,
        "preset": "h264_1080p"
      },
      "processor_name": "render",
      "usage_units": "180.000"
    }
  ]
}
'
{
  "pricing_token": "<JWT_FROM_ESTIMATE_RESPONSE>",
  "steps": [
    {
      "credits": 325,
      "credits_per_unit": "1.0",
      "processor_name": "cut",
      "usage_units": "324.412"
    },
    {
      "credits": 90,
      "credits_per_unit": "0.5",
      "processor_name": "render",
      "usage_units": "180.000"
    }
  ],
  "total_credits": 415
}

Documentation Index

Fetch the complete documentation index at: https://docs.roughy.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Either your Supabase session JWT (UI flows) or an API key minted via POST /api-keys (programmatic flows). Pass it as Authorization: Bearer <token>. The server inspects the token format and routes to JWT or API-key verification automatically.

Body

application/json
steps
StepSpecRequest · object[]
required
Minimum array length: 1

Response

Successful Response

total_credits
integer
required
steps
StepEstimateResponse · object[]
required
pricing_token
string
required