Asset

Estimate generation credits

Validates and prices one generation request without reserving credits.

post/api/credits/estimate

Request

  • Base URL: https://makefx.app
  • URL: https://makefx.app/api/credits/estimate
  • Auth: one of:
    • OAuth 2 (authorization code, authorization URL https://makefx.app/api/oauth/authorize, token URL https://makefx.app/api/oauth/token, scopes: read)
    • API key in cookie auth_token

Headers

API-Version'2026-09-10'

The API version the client was written against. Omit it for the current version, 2026-09-10. The response carries the same header, naming the version that answered.

Request body

space_idstring
kind'image' | 'video' | 'audio' required
modelstring required
promptstring
paramsobject
countinteger
from_asset_idstring
recipe_mode'current' | 'exact'

Response

Success

creditsinteger required
per_asset_creditsinteger required
termsstring required
balance_creditsinteger required
balance_after_creditsinteger required
topup_urlstring uri

Changes

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