Estimate

Estimate the cost of a service call

Estimate the credit cost of a single service call before making it. Costs 0 credits.

post/estimate

Request

  • Base URL: https://studio.fintechstudios.com/api/v1
  • URL: https://studio.fintechstudios.com/api/v1/estimate
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Request body

servicestring required
operationstring
inputTokensinteger
outputTokensinteger
modelstring

Example request

{
  "service": "fts-api",
  "operation": "generative_search"
}

Response

Cost estimate

Example response

{
  "meta": {
    "request_id": "req_abc123def456",
    "credits_used": 1,
    "credits_remaining": 199,
    "rate_limit": {
      "limit": 1000,
      "remaining": 999,
      "reset": 1709251200
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.