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. Overrides estimation, setting evidence class to CLASS_A_DIRECT. (Default: 0) |
| cached_tokens | number | Optional | Number of read tokens from prompt cache. (Default: 0) |
~anthropic/claude-fable-latest~anthropic/claude-haiku-latest~anthropic/claude-opus-latest~anthropic/claude-sonnet-latest~deepseek/deepseek-flash-latest~deepseek/deepseek-pro-latest~deepseek/deepseek-v4-flash-latest~google/gemini-flash-latest~google/gemini-pro-latest~moonshotai/kimi-latest~openai/gpt-astra-latest~openai/gpt-luna-latest~openai/gpt-mini-latest~openai/gpt-sol-latest~openai/gpt-terra-latest~unbiased/pareto-latest~x-ai/grok-latest~z-ai/glm-flash-latest~z-ai/glm-latestaion-labs/aion-2.0aion-labs/aion-3.0aion-labs/aion-3.0-miniaion-labs/aion-3.5aion-labs/aion-3.5-miniaion-labs/aion-rp-llama-3.1-8bamazon/nova-2-lite-v1amazon/nova-lite-v1amazon/nova-micro-v1amazon/nova-premier-v1amazon/nova-pro-v1anthracite-org/magnum-v4-72banthropic/claude-fable-5anthropic/claude-fable-5:batchanthropic/claude-fable-5.1anthropic/claude-fable-5.1:batchanthropic/claude-haiku-4.5anthropic/claude-haiku-4.5:batchanthropic/claude-haiku-5.5anthropic/claude-haiku-5.5:batchanthropic/claude-opus-4.1anthropic/claude-opus-4.1:batchanthropic/claude-opus-4.5anthropic/claude-opus-4.5:batchanthropic/claude-opus-4.6anthropic/claude-opus-4.6:batchanthropic/claude-opus-4.7anthropic/claude-opus-4.7:batchanthropic/claude-opus-4.8anthropic/claude-opus-4.8:batchanthropic/claude-opus-5anthropic/claude-opus-5:batchanthropic/claude-opus-5.5anthropic/claude-opus-5.5:batchanthropic/claude-sonnet-4anthropic/claude-sonnet-4.5anthropic/claude-sonnet-4.5:batchanthropic/claude-sonnet-4.6anthropic/claude-sonnet-4.6:batchanthropic/claude-sonnet-5anthropic/claude-sonnet-5:batchanthropic/claude-sonnet-5.5anthropic/claude-sonnet-5.5:batchapodex/apodex-1.1-mini:freearcee-ai/trinity-large-thinkingbytedance/ui-tars-1.5-7bbytedance-seed/seed-1.6bytedance-seed/seed-1.6-flashbytedance-seed/seed-2-1-turbobytedance-seed/seed-2.0-codebytedance-seed/seed-2.0-litebytedance-seed/seed-2.0-minicognitivecomputations/dolphin-mistral-24b-venice-editioncohere/command-acohere/command-a-pluscohere/command-r-08-2024cohere/command-r-plus-08-2024cohere/command-r7b-12-2024cohere/north-mini-code:freedeepseek/deepseek-r1deepseek/deepseek-chatdeepseek/deepseek-chat-v3-0324deepseek/deepseek-chat-v3.1deepseek/deepseek-r1-0528deepseek/deepseek-v3.1-terminusdeepseek/deepseek-v3.2deepseek/deepseek-v3.2-expdeepseek/deepseek-v4-flashdeepseek/deepseek-v4-flash-0731deepseek/deepseek-v4-flash-vision-expdeepseek/deepseek-v4-prodeepseek/deepseek-v4-pro-0813deepseek/deepseek-v4.1-flashdeepseek/deepseek-v4.1-flash-1017deepseek/deepseek-v4.1-flash:batchdots-studio/dots-3-note-preview:freeelorian/glimpsefireworks/ember-1google/gemini-2.5-flashgoogle/gemini-2.5-flash-imagegoogle/gemini-2.5-flash-litegoogle/gemini-2.5-flash-lite:batchgoogle/gemini-2.5-flash:batchgoogle/gemini-2.5-progoogle/gemini-2.5-pro-previewgoogle/gemini-2.5-pro:batchgoogle/gemini-3-flash-previewgoogle/gemini-3-flash-preview:batchgoogle/gemini-3-pro-imagegoogle/gemini-3-pro-image-previewgoogle/gemini-3.1-flash-imagegoogle/gemini-3.1-flash-image-previewgoogle/gemini-3.1-flash-litegoogle/gemini-3.1-flash-lite-imagegoogle/gemini-3.1-flash-lite-previewgoogle/gemini-3.1-flash-lite:batchgoogle/gemini-3.1-pro-previewgoogle/gemini-3.1-pro-preview-customtoolsgoogle/gemini-3.1-pro-preview:batchgoogle/gemini-3.5-flashgoogle/gemini-3.5-flash-litegoogle/gemini-3.5-flash-lite:batchgoogle/gemini-3.5-flash:batchgoogle/gemini-3.6-flashgoogle/gemini-3.6-flash:batchgoogle/gemini-3.7-flashgoogle/gemini-3.7-flash:batchgoogle/gemini-3.8-flashgoogle/gemini-3.8-flash:batchgoogle/gemini-4-argongoogle/gemini-4-argon:batchgoogle/gemini-nano-banana-2.1google/gemma-2-27b-itgoogle/gemma-3-12b-itgoogle/gemma-3-27b-itgoogle/gemma-3-4b-itgoogle/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-previewgryphe/mythomax-l2-13bibm-granite/granite-4.0-h-microibm-granite/granite-4.2-8binception/mercury-2inception/mercury-2.5inception/mercury-3inclusionai/ling-3.0-flashinclusionai/ling-3.0-flash-fininclusionai/ling-3.0-flash-santeinclusionai/ling-3.0-flash-vlinclusionai/ling-3.1-flashinference-net/schematron-v2-smallinference-net/schematron-v2-turboliquid/lfm-2.5-2.6bliquid/lfm-2.5-2.6b:freeliquid/lfm-2.5-24b-a2bmancer/weavermeituan/longcat-2.0meta/muse-glimmer-30bmeta/muse-spark-1.1meta/muse-spark-1.2meta/muse-spark-1.2-contributormeta/muse-spark-1.3meta/muse-spark-1.3-contributormeta/muse-spark-openmeta/muse-wondermeta-llama/llama-3.1-70b-instructmeta-llama/llama-3.1-8b-instructmeta-llama/llama-3.2-1b-instructmeta-llama/llama-3.2-3b-instructmeta-llama/llama-3.3-70b-instructmeta-llama/llama-4-maverickmeta-llama/llama-4-scoutmeta-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.7minimax/minimax-m3minimax/minimax-m3.1-flashminimax/minimax-m3.1-flash:freemistralai/codestral-2508mistralai/codestral-2508:batchmistralai/devstral-2512mistralai/ministral-14b-2512mistralai/ministral-3b-2512mistralai/ministral-8b-2512mistralai/ministral-8b-2512:batchmistralai/mistral-largemistralai/mistral-large-2407mistralai/mistral-large-2512mistralai/mistral-large-2512:batchmistralai/mistral-large-4-0mistralai/mistral-medium-3mistralai/mistral-medium-3-5mistralai/mistral-medium-3-5:batchmistralai/mistral-medium-3.1mistralai/mistral-medium-3.1:batchmistralai/mistral-nemomistralai/mistral-sabamistralai/mistral-small-24b-instruct-2501mistralai/mistral-small-2603mistralai/mistral-small-2603:batchmistralai/mistral-small-3.1-24b-instructmistralai/mistral-small-3.2-24b-instructmistralai/mixtral-8x22b-instructmistralai/voxtral-small-24b-2507moondream/moondream3-previewmoondream/moondream3.1-9b-a2bmoonshotai/kimi-k2moonshotai/kimi-k2-0905moonshotai/kimi-k2-thinkingmoonshotai/kimi-k2.5moonshotai/kimi-k2.6moonshotai/kimi-k2.7-codemoonshotai/kimi-k3moonshotai/kimi-k3:batchmoonshotai/kimi-k3.1-promorph/morph-v3-fastmorph/morph-v3-largenex-agi/nex-n2.5-mininex-agi/nex-n2.5-pronousresearch/hermes-3-llama-3.1-405bnousresearch/hermes-3-llama-3.1-70bnousresearch/hermes-4-405bnvidia/nemotron-3-nano-30b-a3bnvidia/nemotron-3-nano-omni-30b-a3b-reasoning:freenvidia/nemotron-3-super-120b-a12bnvidia/nemotron-3-super-120b-a12b:freenvidia/nemotron-3-ultra-550b-a55bnvidia/nemotron-3-ultra-550b-a55b:freenvidia/nemotron-3.5-content-safetynvidia/nemotron-3.5-content-safety:freenvidia/nemotron-3.5-lightningnvidia/nemotron-3.5-lightning:freenvidia/nemotron-3.5-super-vlnvidia/nemotron-3.5-super-vl:freenvidia/switchyardopenai/o1openai/gpt-3.5-turboopenai/gpt-3.5-turbo-0613openai/gpt-3.5-turbo-16kopenai/gpt-3.5-turbo-instructopenai/gpt-3.5-turbo:batchopenai/gpt-4openai/gpt-4-turboopenai/gpt-4-turbo:batchopenai/gpt-4.1openai/gpt-4.1-miniopenai/gpt-4.1-mini:batchopenai/gpt-4.1-nanoopenai/gpt-4.1-nano:batchopenai/gpt-4.1:batchopenai/gpt-4oopenai/gpt-4o-2024-05-13openai/gpt-4o-2024-08-06openai/gpt-4o-2024-11-20openai/gpt-4o-miniopenai/gpt-4o-mini-2024-07-18openai/gpt-4o-mini:batchopenai/gpt-4o:batchopenai/gpt-5openai/gpt-5-imageopenai/gpt-5-image-miniopenai/gpt-5-miniopenai/gpt-5-mini:batchopenai/gpt-5-nanoopenai/gpt-5-nano:batchopenai/gpt-5-proopenai/gpt-5-pro:batchopenai/gpt-5:batchopenai/gpt-5.1openai/gpt-5.1-codexopenai/gpt-5.1-codex-maxopenai/gpt-5.1-codex-miniopenai/gpt-5.1:batchopenai/gpt-5.2openai/gpt-5.2-chatopenai/gpt-5.2-codexopenai/gpt-5.2-proopenai/gpt-5.2-pro:batchopenai/gpt-5.2:batchopenai/gpt-5.3-codexopenai/gpt-5.4openai/gpt-5.4-image-2openai/gpt-5.4-miniopenai/gpt-5.4-mini:batchopenai/gpt-5.4-nanoopenai/gpt-5.4-nano:batchopenai/gpt-5.4-proopenai/gpt-5.4-pro:batchopenai/gpt-5.4:batchopenai/gpt-5.5openai/gpt-5.5-proopenai/gpt-5.5-pro:batchopenai/gpt-5.5:batchopenai/gpt-5.6-lunaopenai/gpt-5.6-luna-proopenai/gpt-5.6-luna-pro:batchopenai/gpt-5.6-luna:batchopenai/gpt-5.6-solopenai/gpt-5.6-sol-proopenai/gpt-5.6-sol-pro:batchopenai/gpt-5.6-sol:batchopenai/gpt-5.6-terraopenai/gpt-5.6-terra-proopenai/gpt-5.6-terra-pro:batchopenai/gpt-5.6-terra:batchopenai/gpt-6-astraopenai/gpt-6-astra-proopenai/gpt-6-astra-pro:batchopenai/gpt-6-astra:batchopenai/gpt-6-lunaopenai/gpt-6-luna-proopenai/gpt-6-luna-pro:batchopenai/gpt-6-luna:batchopenai/gpt-6-solopenai/gpt-6-sol-proopenai/gpt-6-sol-pro:batchopenai/gpt-6-sol:batchopenai/gpt-6.1-solopenai/gpt-6.1-sol-proopenai/gpt-6.1-sol-pro:batchopenai/gpt-6.1-sol:batchopenai/gpt-6.1-terraopenai/gpt-6.1-terra-proopenai/gpt-6.1-terra-pro:batchopenai/gpt-6.1-terra:batchopenai/gpt-audioopenai/gpt-audio-miniopenai/gpt-chat-latestopenai/gpt-oss-120bopenai/gpt-oss-120b:batchopenai/gpt-oss-20bopenai/gpt-oss-20b:batchopenai/gpt-oss-safeguard-20bopenai/o1-proopenai/o3openai/o3-miniopenai/o3-mini-highopenai/o3-mini:batchopenai/o3-proopenai/o3:batchopenai/o4-miniopenai/o4-mini-highopenai/o4-mini:batchparticle-ai/particle-1perceptron/perceptron-mk1perceptron/perceptron-mk1.5perplexity/sonarperplexity/sonar-deep-researchperplexity/sonar-properplexity/sonar-pro-searchperplexity/sonar-reasoning-propoolside/laguna-s-2.1poolside/laguna-s-2.1:freepoolside/laguna-xs-2.1poolside/laguna-xs-2.1:freeprism-ml/ternary-bonsai-2-27bprism-ml/ternary-bonsai-2-9bqwen/qwen-2.5-72b-instructqwen/qwen-2.5-7b-instructqwen/qwen-2.5-coder-32b-instructqwen/qwen-plusqwen/qwen2.5-vl-72b-instructqwen/qwen3-14bqwen/qwen3-235b-a22b-2507qwen/qwen3-235b-a22b-thinking-2507qwen/qwen3-30b-a3bqwen/qwen3-30b-a3b-instruct-2507qwen/qwen3-32bqwen/qwen3-coderqwen/qwen3-coder-30b-a3b-instructqwen/qwen3-coder-flashqwen/qwen3-coder-nextqwen/qwen3-next-80b-a3b-instructqwen/qwen3-next-80b-a3b-thinkingqwen/qwen3-vl-235b-a22b-instructqwen/qwen3-vl-30b-a3b-instructqwen/qwen3-vl-30b-a3b-thinkingqwen/qwen3-vl-8b-instructqwen/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.5-plus-20260420qwen/qwen3.6-27bqwen/qwen3.6-35b-a3bqwen/qwen3.6-flashqwen/qwen3.6-plusqwen/qwen3.7-flashqwen/qwen3.7-maxqwen/qwen3.7-plusqwen/qwen3.7-plus:batchqwen/qwen3.8-2.4t-a95bqwen/qwen3.8-27bqwen/qwen3.8-flashqwen/qwen3.8-max-0902qwen/qwen3.8-max-primeqwen/qwen3.8-omni-flashrecursive/flint-v1.0:freereflection/beam-1.0-501b-a23brekaai/reka-edgerekaai/reka-flash-3relace/relace-apply-3relace/relace-searchsakana/fugu-maxsakana/fugu-ultrasakana/fugu-ultra-v2sakana/sakana-namazusao10k/l3-lunaris-8bsao10k/l3.1-euryale-70bsao10k/l3.3-euryale-70bscaledown/extractscaledown/summarizestepfun/step-3.5-flashstepfun/step-3.7-flashstepfun/step-5-previewtencent/hunyuan-a13b-instructtencent/hy-mt2-1.8btencent/hy-mt2-30b-a3btencent/hy-mt2-7btencent/hy3tencent/hy3-previewtencent/hy4-previewthedrummer/cydonia-24b-v4.1thedrummer/skyfall-36b-v2thedrummer/unslopnemo-12bthinkingmachines/inklingthinkingmachines/inkling-smallthinkingmachines/inkling-small:freethinkingmachines/inkling:freetypesafe/jev-routerunbiased/paretounbiased/pareto-26.10unbiased/pareto-26.10-previewunbiased/pareto-26.9undi95/remm-slerp-l2-13bupstage/solar-mini4upstage/solar-pro-3upstage/solar-pro4writer/palmyra-x5x-ai/grok-4.20x-ai/grok-4.20-multi-agentx-ai/grok-4.3x-ai/grok-4.3:batchx-ai/grok-4.5x-ai/grok-4.6x-ai/grok-4.7x-ai/grok-build-0.1xiaomi/mimo-v2.5xiaomi/mimo-v2.5-proxiaomi/mimo-v2.6-flashxiaomi/mimo-v2.6-proxiaomi/mimo-v2.6-pro-ultraspeedxingchen-agi/xing4.0-29b-a4b:freez-ai/glm-4.5z-ai/glm-4.5-airz-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-5.2z-ai/glm-5.3z-ai/glm-5.3-flashz-ai/glm-5.3-flash:batchz-ai/glm-5.3-flashxz-ai/glm-5.3-flashx-legalz-ai/glm-5.3-primez-ai/glm-5.3:batchz-ai/glm-5v-turbo{
"energy_wh": 3.45,
"co2_grams": 1.22,
"tree_days": 0.005,
"water_ml": 0.85,
"estimated_reasoning_tokens": 450,
"audit": {
"calculationMethod": "EXACT_REGION",
"finalRegion": "us-west-1",
"finalProvider": "AWS",
"evidenceClass": "CLASS_A_DIRECT",
"isApiReasoning": true,
"locationBasedCO2": 1.55,
"marketBasedCO2": 1.22,
"sourceUrl": "https://sustainability.aboutamazon.com/"
},
"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.