calculate_cohere_cost

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

Calculate the cost of the completion using the Cohere pricing.

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