/api/v1/estimateEstimate credits
Find out how many credits an operation would cost and what your balance is, without reserving anything.
Before asking for a job, ask what it would cost. It reserves and charges nothing; it uses the model you ask for or the workspace default, with the same price source as the app. Requires the read permission (or any of the others).
operationstringgenerate, edit, add_sizes, add_locale, translate or export.modelstringhaiku, sonnet, opus, or fable.sizesstring[]generate, the concept's sizes (default 4); in edit, the ones the correction touches; in add_sizes, the new ones (required).localesstring[]generate, the concept's locales (default 1).bannerIdstringedit it takes all its sizes; in add_sizes it counts the sizes it already has; in translate it is required.campaignIdstringgenerate it takes its sizes and locales; in add_locale it is required.localestringadd_locale, the locale to add.The cost comes from the same formula as the app: concept, correction, new sizes and language (see “Credits”). The response carries operation, model, credits (what it would cost), balance (your current balance) and sufficient (whether you have enough), plus the measures it used (sizes, locales, newSizes, existingSizes…). With a bm_test_ key nothing costs anything: credits is what it would cost with bm_live_ and balance is null.
0 credits. Translating always uses the latest Sonnet.