Billing Tracking

Get cost details and usage details in every call

Infron uses a transparent billing system to ensure every call is precisely metered and billed. Pricing differs across models, and the same model may be priced differently across providers.

Model Prices

Model prices for each provider are listed on the model detail pagearrow-up-right.

Billing Items

You can enable usage accounting in your requests by including the usage parameter:

calculatorUsage Accountingchevron-right

When usage accounting is enabled, the response will include

  • usage object with detailed token information

  • cost object with the total amount charged to your account.

  • cost_details object with the breakdown of the total cost.

usage

Item
Description

prompt_tokens

Total tokens of input prompts, include cached_tokens

completion_tokens

Total tokens of output completions

total_tokens

prompt_tokens_details

prompt_tokens breakdowns

prompt_tokens_details.cached_tokens

prompt_tokens_details.cache_write_tokens

prompt_tokens_details.audio_tokens

prompt_tokens_details.video_tokens

completion_tokens_details

completion_tokens breakdowns

completion_tokens_details.reasoning_tokens

completion_tokens_details.image_tokens

completion_tokens_details.audio_tokens

circle-info

input_tokens = prompt_tokens - cached_tokens - cache_write_tokens

prompt_cost = (input_tokens * input_price) + (cached_tokens * cached_price) + (cache_write_tokens * cache_write_price)

circle-info

output_tokens = completion_tokens

completions_tokens_cost = completion_tokens * completion_price

circle-info

total_tokens = prompt_tokens + completion_tokens

total_tokens_cost = prompt_cost + completions_tokens_cost

cost_details

Item
Description

prompt_cost

Cost for processing input prompts

completion_cost

Cost for model-generated output

image_cost

Cost for image processing or generation

video_cost

Cost for video processing or generation

audio_cost

Cost for audio processing or generation

native_web_search_cost

Cost for invoking native web search functionality

plugin_web_search_cost

Cost for invoking plugin web search functionality

tools_cost

Cost for invoking tool callings

prompt_cache_read_cost

Cost for cache read operations

prompt_cache_write_cost

Cost for cache write operations

prompt_cache_write_5_min

Cost for 5-minute cache write operations

prompt_cache_write_1_h

Cost for 1-hour cache write operations

reasoning_cost

Cost for internal reasoning computations

discount_rate

Effective discount rate

is_byok

Whether is byok

byok_cost

Cost for byok

Last updated