Skip to main content
POST
Preflight cost estimate

Authorizations

Authorization
string
header
required

DRF user token. Format: Token <token>

Body

application/json
organization_id
string<uuid>
required
feature
string
required
messages
object[]
required
provider
string
model
string
max_tokens
integer
default:1024

Response

200 - application/json

Estimated credits + tokens

estimated_credits
string
estimated_input_tokens
integer
estimated_output_tokens
integer