Table of Contents

POST /v1/estimate-table

Validates a POST /v1/generate-table request and returns its estimated cost and how much of each limit it uses. No data is generated and the request is not charged.

Warning

An estimate is not a guaranteed price. Prices can change. A generation request is charged at the price in effect when it runs, and its response includes the amount charged.

Request

The body is the same as for POST /v1/generate-table: one table, with its properties at the top level.

curl -X POST https://api.alchemy.example/v1/estimate-table \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  --data @request.json

Requires an API key (see Authentication) but is not billed.

Response

The same response as POST /v1/estimate-dataset: estimatedCost, currency, balance, balanceCovers and limits. columns counts the columns of the one table.

The same checks are made, and the same checks require the generated data. See What is checked.

Errors

The same errors as POST /v1/generate-table, except 402, because nothing is charged. balanceCovers reports whether the balance covers the cost instead. The path of an error locates the field in the request body, such as $.fields[0].