Skip to main content
POST
Estimate a template run

Path Parameters

slug
string
required

The template's slug.

Body

application/json
inputs
object

The template's inputs by key, as listed by GET /templates/{slug}. You can also send the inputs at the top level of the body instead.

Response

The inputs are valid. This is what a run should cost.

status
enum<string>
Available options:
success
credits
integer | null

The credits a run should cost, or the most it can cost when note says "at most". null when it can't be known in advance.

note
string | null

What can add to credits, or null.

pages
integer | null

How many pages or searches the run would start with.