Provides pricing estimates and formatting for various AI models.
// Source: https://github.com/agents-io/PokeClaw | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
// Copyright 2026 PokeClaw (agents.io). All rights reserved.
// Licensed under the Apache License, Version 2.0.
package io.agents.pokeclaw.agent
/**
* Model pricing table and cost estimation.
*
* Prices are in USD per 1 million tokens.
* Source: official provider pricing pages as of 2026-04.
*/
object ModelPricing {
data class Price(
val inputPerMillion: Double,
val outputPerMillion: Double
)
private val PRICES = mapOf(
// OpenAI
"gpt-4o" to Price(2.50, 10.00),
"gpt-4o-mini" to Price(0.15, 0.60),
"gpt-4.1" to Price(2.
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key