Records AI inference usage details and returns calculated energy consumption (Wh) and ecological footprint (CO2 emissions).
application/jsonBearer <YOUR_API_KEY>{
"provider": "Google",
"model": "gemini-3-pro",
"prompt_tokens": 788,
"completion_tokens": 312,
"reasoning_tokens": 0,
"cached_tokens": 0,
"startTimeMs": 1710000000000,
"firstTokenTimeMs": 1710000010000,
"source": "dom_estimated",
"is_estimated": true,
"estimation_method": "dom_gpt_tokenizer_v1"
}| Parameter | Type | Required | Description |
|---|---|---|---|
| provider | string | Yes | Cloud or model provider name (e.g. "Google", "OpenAI"). |
| prompt_tokens | number | Yes | Number of tokens sent in the prompt. |
| completion_tokens | number | Yes | Number of generated output tokens. |
| model | string | Optional* | Exact model ID. *Required unless system has a safe fallback.* |
| detected_region | string | Optional | Datacenter region (e.g. "us-west-1"). Enables REGION_SPECIFIC accuracy. |
| reasoning_tokens | number | Optional | Explicit reasoning tokens directly from provider. (Default: 0) |
| cached_tokens | number | Optional | Number of read tokens from prompt cache. (Default: 0) |
ai21/jamba-large-1.7aion-labs/aion-1.0aion-labs/aion-1.0-miniaion-labs/aion-2.0aion-labs/aion-rp-llama-3.1-8balfredpros/codellama-7b-instruct-solidityalibaba/tongyi-deepresearch-30b-a3ballenai/molmo-2-8ballenai/olmo-2-0325-32b-instructallenai/olmo-3-32b-thinkallenai/olmo-3-7b-instructallenai/olmo-3-7b-thinkallenai/olmo-3.1-32b-instructallenai/olmo-3.1-32b-thinkalpindale/goliath-120bamazon/nova-2-lite-v1amazon/nova-lite-v1amazon/nova-micro-v1amazon/nova-premier-v1amazon/nova-pro-v1anthracite-org/magnum-v4-72banthropic/claude-3.5-sonnetanthropic/claude-3-haikuanthropic/claude-3.5-haikuanthropic/claude-3.7-sonnetanthropic/claude-3.7-sonnet:thinkinganthropic/claude-haiku-4.5anthropic/claude-opus-4anthropic/claude-opus-4.1anthropic/claude-opus-4.5anthropic/claude-opus-4.6anthropic/claude-opus-4.6-fastanthropic/claude-sonnet-4anthropic/claude-sonnet-4.5anthropic/claude-sonnet-4.6arcee-ai/coder-largearcee-ai/maestro-reasoningarcee-ai/spotlightarcee-ai/trinity-large-preview:freearcee-ai/trinity-large-thinkingarcee-ai/trinity-miniarcee-ai/trinity-mini:freearcee-ai/virtuoso-largebaidu/ernie-4.5-21b-a3bbaidu/ernie-4.5-21b-a3b-thinkingbaidu/ernie-4.5-300b-a47bbaidu/ernie-4.5-vl-28b-a3bbaidu/ernie-4.5-vl-424b-a47bbytedance/ui-tars-1.5-7bbytedance-seed/seed-1.6bytedance-seed/seed-1.6-flashbytedance-seed/seed-2.0-litebytedance-seed/seed-2.0-minicognitivecomputations/dolphin-mistral-24b-venice-edition:freecohere/command-acohere/command-r-08-2024cohere/command-r-plus-08-2024cohere/command-r7b-12-2024deepcogito/cogito-v2.1-671bdeepseek/deepseek-r1deepseek/deepseek-chatdeepseek/deepseek-chat-v3-0324deepseek/deepseek-chat-v3.1deepseek/deepseek-r1-0528deepseek/deepseek-r1-distill-llama-70bdeepseek/deepseek-r1-distill-qwen-32bdeepseek/deepseek-v3.1-terminusdeepseek/deepseek-v3.2deepseek/deepseek-v3.2-expdeepseek/deepseek-v3.2-specialeeleutherai/llemma_7bessentialai/rnj-1-instructgoogle/gemini-1.5-progoogle/gemini-2.0-flash-001google/gemini-2.0-flash-lite-001google/gemini-2.5-flashgoogle/gemini-2.5-flash-imagegoogle/gemini-2.5-flash-litegoogle/gemini-2.5-flash-lite-preview-09-2025google/gemini-2.5-progoogle/gemini-2.5-pro-previewgoogle/gemini-2.5-pro-preview-05-06google/gemini-3-flash-previewgoogle/gemini-3-pro-image-previewgoogle/gemini-3-pro-previewgoogle/gemini-3.1-flash-image-previewgoogle/gemini-3.1-flash-lite-previewgoogle/gemini-3.1-pro-previewgoogle/gemini-3.1-pro-preview-customtoolsgoogle/gemma-2-27b-itgoogle/gemma-2-9b-itgoogle/gemma-3-12b-itgoogle/gemma-3-12b-it:freegoogle/gemma-3-27b-itgoogle/gemma-3-27b-it:freegoogle/gemma-3-4b-itgoogle/gemma-3-4b-it:freegoogle/gemma-3n-e2b-it:freegoogle/gemma-3n-e4b-itgoogle/gemma-3n-e4b-it:freegoogle/gemma-4-26b-a4b-itgoogle/gemma-4-26b-a4b-it:freegoogle/gemma-4-31b-itgoogle/gemma-4-31b-it:freegoogle/lyria-3-clip-previewgoogle/lyria-3-pro-previewgroq/gpt-oss-120bgroq/kimi-k2-0905groq/llama-3.1-8b-instantgroq/llama-3.3-70b-versatilegroq/llama-4-maverickgroq/llama-4-scoutgroq/llama3-70b-8192groq/llama3-8b-8192groq/mixtral-8x7b-32768groq/qwen3-32b-131kgryphe/mythomax-l2-13bibm-granite/granite-4.0-h-microinception/mercuryinception/mercury-2inception/mercury-coderinflection/inflection-3-piinflection/inflection-3-productivitykwaipilot/kat-coder-prokwaipilot/kat-coder-pro-v2liquid/lfm-2-24b-a2bliquid/lfm-2.2-6bliquid/lfm-2.5-1.2b-instruct:freeliquid/lfm-2.5-1.2b-thinking:freeliquid/lfm2-8b-a1bmancer/weavermeituan/longcat-flash-chatmeta-llama/llama-3-70b-instructmeta-llama/llama-3-8b-instructmeta-llama/llama-3.1-405bmeta-llama/llama-3.1-70b-instructmeta-llama/llama-3.1-8b-instructmeta-llama/llama-3.2-11b-vision-instructmeta-llama/llama-3.2-1b-instructmeta-llama/llama-3.2-3b-instructmeta-llama/llama-3.2-3b-instruct:freemeta-llama/llama-3.3-70b-instructmeta-llama/llama-3.3-70b-instruct:freemeta-llama/llama-4-maverickmeta-llama/llama-4-scoutmeta-llama/llama-guard-3-8bmeta-llama/llama-guard-4-12bmicrosoft/phi-4microsoft/wizardlm-2-8x22bminimax/minimax-01minimax/minimax-m1minimax/minimax-m2minimax/minimax-m2-herminimax/minimax-m2.1minimax/minimax-m2.5minimax/minimax-m2.5:freeminimax/minimax-m2.7mistralai/codestral-2508mistralai/devstral-2512mistralai/devstral-mediummistralai/devstral-smallmistralai/ministral-14b-2512mistralai/ministral-3b-2512mistralai/ministral-8b-2512mistralai/mistral-7b-instruct-v0.1mistralai/mistral-largemistralai/mistral-large-2407mistralai/mistral-large-2411mistralai/mistral-large-2512mistralai/mistral-medium-3mistralai/mistral-medium-3.1mistralai/mistral-nemomistralai/mistral-sabamistralai/mistral-small-24b-instruct-2501mistralai/mistral-small-2603mistralai/mistral-small-3.1-24b-instructmistralai/mistral-small-3.1-24b-instruct:freemistralai/mistral-small-3.2-24b-instructmistralai/mistral-small-creativemistralai/mixtral-8x22b-instructmistralai/mixtral-8x7b-instructmistralai/pixtral-12bmistralai/pixtral-large-2411mistralai/voxtral-small-24b-2507moonshotai/kimi-k2moonshotai/kimi-k2-0905moonshotai/kimi-k2-thinkingmoonshotai/kimi-k2.5morph/morph-v3-fastmorph/morph-v3-largegemini-1.5-progemini-cli-agentnex-agi/deepseek-v3.1-nex-n1nousresearch/hermes-2-pro-llama-3-8bnousresearch/hermes-3-llama-3.1-405bnousresearch/hermes-3-llama-3.1-405b:freenousresearch/hermes-3-llama-3.1-70bnousresearch/hermes-4-405bnousresearch/hermes-4-70bnvidia/llama-3.1-nemotron-70b-instructnvidia/llama-3.1-nemotron-ultra-253b-v1nvidia/llama-3.3-nemotron-super-49b-v1.5nvidia/nemotron-3-nano-30b-a3bnvidia/nemotron-3-nano-30b-a3b:freenvidia/nemotron-3-super-120b-a12bnvidia/nemotron-3-super-120b-a12b:freenvidia/nemotron-nano-12b-v2-vlnvidia/nemotron-nano-12b-v2-vl:freenvidia/nemotron-nano-9b-v2nvidia/nemotron-nano-9b-v2:freeopenai/gpt-4oopenai/gpt-4o-miniopenai/gpt-5.2-instantopenai/gpt-5.3-instantopenai/gpt-oss-120b:exactoopenai/o1openai/gpt-3.5-turboopenai/gpt-3.5-turbo-0613openai/gpt-3.5-turbo-16kopenai/gpt-3.5-turbo-instructopenai/gpt-4openai/gpt-4-0314openai/gpt-4-1106-previewopenai/gpt-4-turboopenai/gpt-4-turbo-previewopenai/gpt-4.1openai/gpt-4.1-miniopenai/gpt-4.1-nanoopenai/gpt-4o-2024-05-13openai/gpt-4o-2024-08-06openai/gpt-4o-2024-11-20openai/gpt-4o-audio-previewopenai/gpt-4o-mini-2024-07-18openai/gpt-4o-mini-search-previewopenai/gpt-4o-search-previewopenai/gpt-4o:extendedopenai/gpt-5openai/gpt-5-chatopenai/gpt-5-codexopenai/gpt-5-imageopenai/gpt-5-image-miniopenai/gpt-5-miniopenai/gpt-5-nanoopenai/gpt-5-proopenai/gpt-5.1openai/gpt-5.1-chatopenai/gpt-5.1-codexopenai/gpt-5.1-codex-maxopenai/gpt-5.1-codex-miniopenai/gpt-5.2openai/gpt-5.2-chatopenai/gpt-5.2-codexopenai/gpt-5.2-proopenai/gpt-5.3-chatopenai/gpt-5.3-codexopenai/gpt-5.4openai/gpt-5.4-miniopenai/gpt-5.4-nanoopenai/gpt-5.4-proopenai/gpt-audioopenai/gpt-audio-miniopenai/gpt-oss-120bopenai/gpt-oss-120b:freeopenai/gpt-oss-20bopenai/gpt-oss-20b:freeopenai/gpt-oss-safeguard-20bopenai/o1-proopenai/o3openai/o3-deep-researchopenai/o3-miniopenai/o3-mini-highopenai/o3-proopenai/o4-miniopenai/o4-mini-deep-researchopenai/o4-mini-highperplexity/sonarperplexity/sonar-deep-researchperplexity/sonar-properplexity/sonar-pro-searchperplexity/sonar-reasoning-proprime-intellect/intellect-3qwen/qwen-2.5-72b-instructqwen/qwen-2.5-7b-instructqwen/qwen-2.5-coder-32b-instructqwen/qwen-2.5-vl-7b-instructqwen/qwen-maxqwen/qwen-plusqwen/qwen-plus-2025-07-28qwen/qwen-plus-2025-07-28:thinkingqwen/qwen-turboqwen/qwen-vl-maxqwen/qwen-vl-plusqwen/qwen2.5-coder-7b-instructqwen/qwen2.5-vl-32b-instructqwen/qwen2.5-vl-72b-instructqwen/qwen3-14bqwen/qwen3-235b-a22bqwen/qwen3-235b-a22b-2507qwen/qwen3-235b-a22b-thinking-2507qwen/qwen3-30b-a3bqwen/qwen3-30b-a3b-instruct-2507qwen/qwen3-30b-a3b-thinking-2507qwen/qwen3-32bqwen/qwen3-4b:freeqwen/qwen3-8bqwen/qwen3-coderqwen/qwen3-coder-30b-a3b-instructqwen/qwen3-coder-flashqwen/qwen3-coder-nextqwen/qwen3-coder-plusqwen/qwen3-coder:freeqwen/qwen3-maxqwen/qwen3-max-thinkingqwen/qwen3-next-80b-a3b-instructqwen/qwen3-next-80b-a3b-instruct:freeqwen/qwen3-next-80b-a3b-thinkingqwen/qwen3-vl-235b-a22b-instructqwen/qwen3-vl-235b-a22b-thinkingqwen/qwen3-vl-30b-a3b-instructqwen/qwen3-vl-30b-a3b-thinkingqwen/qwen3-vl-32b-instructqwen/qwen3-vl-8b-instructqwen/qwen3-vl-8b-thinkingqwen/qwen3.5-122b-a10bqwen/qwen3.5-27bqwen/qwen3.5-35b-a3bqwen/qwen3.5-397b-a17bqwen/qwen3.5-9bqwen/qwen3.5-flash-02-23qwen/qwen3.5-plus-02-15qwen/qwen3.6-plusqwen/qwen3.6-plus-preview:freeqwen/qwen3.6-plus:freeqwen/qwq-32breka/reka-edgerekaai/reka-edgerekaai/reka-flash-3relace/relace-apply-3relace/relace-searchsao10k/l3-euryale-70bsao10k/l3-lunaris-8bsao10k/l3.1-70b-hanami-x1sao10k/l3.1-euryale-70bsao10k/l3.3-euryale-70bstepfun/step-3.5-flashstepfun/step-3.5-flash:freeswitchpoint/routertencent/hunyuan-a13b-instructthedrummer/cydonia-24b-v4.1thedrummer/rocinante-12bthedrummer/skyfall-36b-v2thedrummer/unslopnemo-12btngtech/deepseek-r1t2-chimeraundi95/remm-slerp-l2-13bupstage/solar-pro-3writer/palmyra-x5x-ai/grok-3x-ai/grok-3-betax-ai/grok-3-minix-ai/grok-3-mini-betax-ai/grok-4x-ai/grok-4-fastx-ai/grok-4.1-fastx-ai/grok-4.20x-ai/grok-4.20-betax-ai/grok-4.20-multi-agentx-ai/grok-4.20-multi-agent-betax-ai/grok-code-fast-1xiaomi/mimo-v2-flashxiaomi/mimo-v2-omnixiaomi/mimo-v2-proz-ai/glm-4-32bz-ai/glm-4.5z-ai/glm-4.5-airz-ai/glm-4.5-air:freez-ai/glm-4.5vz-ai/glm-4.6z-ai/glm-4.6vz-ai/glm-4.7z-ai/glm-4.7-flashz-ai/glm-5z-ai/glm-5-turboz-ai/glm-5.1z-ai/glm-5v-turbo{
"energy_wh": 3.45,
"co2_grams": 1.22,
"water_ml": 0.85,
"tree_days": 0.005,
"audit": {
"calculationMethod": "EXACT_REGION",
"finalRegion": "us-west-1",
"finalProvider": "AWS"
},
"message": "This request cost the equivalent of 0.0050 days of a tree's carbon absorption."
}Retrieves paginated history logs associated with all your API keys. Requires API History (Read) scope.
startDateISO 8601 string (e.g. 2025-01-01)endDateISO 8601 string (e.g. 2025-12-31)keyNameString – API Key Name from DashboardpageNumber – Default: 1limitNumber – Default: 100, max: 100000{
"status": "success",
"data": [
{
"id": "uuid",
"logDate": "2025-05-10T12:00:00Z",
"keyName": "Production Key",
"maskedKey": "eco_...a1b2",
"provider": "OpenAI",
"model": "gpt-4o",
"inputTokens": 100,
"outputTokens": 200,
"energyWh": 0.5,
"co2Grams": 0.1
}
],
"pagination": {
"totalElements": 4200,
"totalPages": 42,
"currentPage": 1,
"limit": 100
}
}Built on the GHG Protocol to ensure your AI infrastructure meets the strict reporting requirements of the CSRD directive.