calculate_cerebras_cost

calculate_cerebras_cost(
    input_tokens: int,
    output_tokens: int,
    model: str
) -> float

Calculate the cost of the completion using the Cerebras pricing.

Parameters:
NameDescription
input_tokensType: int
output_tokensType: int
modelType: str