Skip to main content
POST
Estimate token cost

Authorizations

Authorization
string
header
required

Bearer token for authentication, obtained after signing up and generating an API key.

Body

application/json
train_rows
integer
required
Required range: 1 <= x <= 2147483647
raw_columns
integer
required
Required range: 1 <= x <= 2147483647
test_rows
integer
default:0
Required range: 0 <= x <= 2147483647
model_version
enum<string>
default:v3.5
Available options:
v2,
v2.5,
v2.6,
v3,
v3.5,
v3.5-fast,
v4
operation
enum<string>
default:predict
Available options:
predict,
thinking_predict,
thinking_fit,
cache_predict
n_estimators
integer
default:8
Required range: 1 <= x <= 2147483647
thinking_effort
enum<string> | null
Available options:
micro,
mini,
low,
medium,
high,
xhigh,
max

Response

Successful response

estimated_cost
integer
required

Tokens the operation is charged. For thinking_fit, the most it can be charged: the effort level's fit time limit at the GPU-second rate, which is reserved at submit. The settled charge is the measured fit time at the same rate, up to this amount and at least the minimum charge.

pricing_version
string
required
inputs
EstimateCostRequest · object
required