GET /v1/payments/usage — returns your inference usage history. Each entry includes model, token counts, cost in micro-USD, and a timestamp.
The usage endpoint returns your inference usage history as an array of per-request records. Each record shows the model used, the token counts, the cost charged, and the timestamp of the request. Usage is a recent-history view, not a complete billing export.
Authentication
This endpoint requires a Bearer token:
Authorization: Bearer sk-db-...
Response
object[]
Array of usage entries, most recent first.
Show entry fields
string
The internal job UUID for this inference request. Matches the X-Inference-Job-ID header.
string
The model ID used for this request.
integer
Number of input tokens consumed.
integer
The part of prompt_tokens that a provider served from its prefix cache. Omitted when zero.
integer
Number of output tokens generated.
integer
The cost charged for this request in micro-USD.
string
ISO 8601 timestamp of when the request was completed.
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Darkbloom","colors":{"primary":"#0B44FF","light":"#0B44FF","dark":"#00159E"},"logo":{"light":"https://mintcdn.com/eigenlabs-f49d2e97/IspAEDzrILVDDfNo/images/Blacklogo.png?fit=max\u0026auto=format\u0026n=IspAEDzrILVDDfNo\u0026q=85\u0026s=0b259f057d233a45818dfca27115accb","dark":"https://mintcdn.com/eigenlabs-f49d2e97/IspAEDzrILVDDfNo/images/Whitelogo.png?fit=max\u0026auto=format\u0026n=IspAEDzrILVDDfNo\u0026q=85\u0026s=18a35652c459889ced623c18f01917bd"},"favicon":{"light":"https://mintcdn.com/eigenlabs-f49d2e97/--BbdTF42cwZojzK/images/favicon.png?fit=max\u0026auto=format\u0026n=--BbdTF42cwZojzK\u0026q=85\u0026s=4d67d819d9b9cbde6cc1387d28d3a0a3","dark":"https://mintcdn.com/eigenlabs-f49d2e97/--BbdTF42cwZojzK/images/favicon.png?fit=max\u0026auto=format\u0026n=--BbdTF42cwZojzK\u0026q=85\u0026s=4d67d819d9b9cbde6cc1387d28d3a0a3"},"navbar":{"links":[{"href":"/get-started/pricing-overview","label":"Pricing"}],"primary":{"type":"github","href":"https://github.com/Layr-Labs/d-inference"}},"fonts":{"heading":{"family":"Montserrat"},"body":{"family":"Poppins","weight":400}},"icons":{"library":"fontawesome"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"eigenlabs-f49d2e97","hasAudioNarration":false,"actualSubdomain":"eigenlabs-f49d2e97","customDomains":["docs.darkbloom.dev"],"gitSource":{"type":"github","owner":"layr-labs","repo":"darkbloom-docs","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6afb65a4d05d4846e1f78bcc","clientVersion":"0.0.4177","searchFilterCounts":[{"language":"default","tag":"Get started","count":18},{"language":"default","tag":"Sandboxes","count":11},{"language":"default","tag":"Inference","count":10},{"language":"default","tag":"Providers","count":10},{"language":"default","tag":"CI","count":9},{"language":"default","tag":"API Reference","count":9},{"language":"default","tag":"Guides","count":7},{"language":"default","tag":"Reference","count":7},{"language":"default","tag":"Start here","count":4},{"language":"default","tag":"Serve inference","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"custom.css","content":"@font-face{font-family:\"PP Telegraf\";src:url(\"/fonts/PPTelegraf-Semibold.woff\") format(\"woff\");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:\"PP Telegraf\";src:url(\"/fonts/PPTelegraf-Regular.woff2\") format(\"woff2\");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:\"ABC Repro Variable\";src:url(\"/fonts/ABCReproVariable.woff\") format(\"woff\");font-weight:100 900;font-style:normal;font-display:swap}:root{--rounded-sm: 0.125rem;--rounded: 0.25rem;--rounded-md: 0.25rem;--rounded-lg: 0.375rem;--rounded-xl: 0.375rem;--rounded-xt: 0.375rem;--rounded-2xl: 0.5rem;--rounded-3xl: 0.75rem;--rounded-search: 0.5rem}img.nav-logo{height:clamp(0.75rem, 1.2vw, 1.25rem)!important;width:auto}h1,h2,h3,h4,h5,h6,.prose h1,.prose h2,.prose h3,.prose h4,.prose h5,.prose h6{font-family:\"PP Telegraf\", sans-serif;font-weight:600}.prose p,.prose li,.prose td,.prose th,.prose blockquote{font-family:\"ABC Repro Variable\", sans-serif;font-size:clamp(0.875rem, 1.5vw, 0.9375rem);line-height:1.75}#sidebar{z-index:35!important}[data-theme-preference-switch=\"pill\"]{position:fixed!important;top:0.875rem;right:1.5rem;z-index:2147483647!important;transform:translateZ(0)}html.dark{--background-dark: 0 0 0}.prose pre,[data-component-part=\"code-block-root\"],[data-component-part=\"code-block-header\"]{border-radius:0.375rem!important}.prose code{border-radius:0.25rem}"}],"page":{"pagePath":"reference/usage","slug":"/reference/usage","pageMetadata":{"title":"Usage history — GET /v1/payments/usage","description":"GET /v1/payments/usage — returns your inference usage history. Each entry includes model, token counts, cost in micro-USD, and a timestamp.","href":"/reference/usage"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"GET /v1/payments/usage — returns your inference usage history. Each entry includes model, token counts, cost in micro-USD, and a timestamp.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The usage endpoint returns your inference usage history as an array of per-request records. Each record shows the model used, the token counts, the cost charged, and the timestamp of the request. Usage is a recent-history view, not a complete billing export.`}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsx(_components.p,{children:`This endpoint requires a Bearer token:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Authorization: Bearer sk-db-...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(ResponseField,{name:`usage`,type:`object[]`,id:`param-usage`,children:[_jsx(_components.p,{children:`Array of usage entries, most recent first.`}),_jsxs(Expandable,{title:`entry fields`,children:[_jsx(ResponseField,{name:`job_id`,type:`string`,id:`param-job-id`,children:_jsxs(_components.p,{children:[`The internal job UUID for this inference request. Matches the `,_jsx(_components.code,{children:`X-Inference-Job-ID`}),` header.`]})}),_jsx(ResponseField,{name:`model`,type:`string`,id:`param-model`,children:_jsx(_components.p,{children:`The model ID used for this request.`})}),_jsx(ResponseField,{name:`prompt_tokens`,type:`integer`,id:`param-prompt-tokens`,children:_jsx(_components.p,{children:`Number of input tokens consumed.`})}),_jsx(ResponseField,{name:`cached_tokens`,type:`integer`,id:`param-cached-tokens`,children:_jsxs(_components.p,{children:[`The part of `,_jsx(_components.code,{children:`prompt_tokens`}),` that a provider served from its prefix cache. Omitted when zero.`]})}),_jsx(ResponseField,{name:`completion_tokens`,type:`integer`,id:`param-completion-tokens`,children:_jsx(_components.p,{children:`Number of output tokens generated.`})}),_jsx(ResponseField,{name:`cost_micro_usd`,type:`integer`,id:`param-cost-micro-usd`,children:_jsx(_components.p,{children:`The cost charged for this request in micro-USD.`})}),_jsx(ResponseField,{name:`timestamp`,type:`string`,id:`param-timestamp`,children:_jsx(_components.p,{children:`ISO 8601 timestamp of when the request was completed.`})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`example`,children:`Example`}),`\n`,_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.darkbloom.dev/v1/payments/usage`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer sk-db-...\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`example-response`,children:`Example response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`21`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`21`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"usage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"job_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a3f1c2e7-84bb-4d9a-91f3-2b7e6d4a0c18\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gemma-4-26b\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`14`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cached_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"completion_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`87`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cost_micro_usd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`72`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timestamp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2025-04-30T14:22:07Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"job_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"b7d3e9f1-21cc-4a8b-85e2-9c4d1a7f3b22\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gemma-4-26b\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`32`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"completion_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`210`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cost_micro_usd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`44`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timestamp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2025-04-30T13:05:41Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Usage history — GET /v1/payments/usage","description":"GET /v1/payments/usage — returns your inference usage history. Each entry includes model, token counts, cost in micro-USD, and a timestamp.","href":"/reference/usage"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Authentication","slug":"authentication","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Example","slug":"example","depth":2,"children":[{"title":"Example response","slug":"example-response","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"eigenlabs-f49d2e97","siteName":"Darkbloom","title":"Usage history — GET /v1/payments/usage - Darkbloom","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-16T19:59:43.490Z","originalFileLocation":"reference/usage.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"GET /v1/payments/usage — returns your inference usage history. Each entry includes model, token counts, cost in micro-USD, and a timestamp.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Darkbloom\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/eigenlabs-f49d2e97/zX4NJLyHK_yR9YZe/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/eigenlabs-f49d2e97/zX4NJLyHK_yR9YZe/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/eigenlabs-f49d2e97/zX4NJLyHK_yR9YZe/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/eigenlabs-f49d2e97/zX4NJLyHK_yR9YZe/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/eigenlabs-f49d2e97/zX4NJLyHK_yR9YZe/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/eigenlabs-f49d2e97/zX4NJLyHK_yR9YZe/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/eigenlabs-f49d2e97/zX4NJLyHK_yR9YZe/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/eigenlabs-f49d2e97/zX4NJLyHK_yR9YZe/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/eigenlabs-f49d2e97/zX4NJLyHK_yR9YZe/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Usage history — GET /v1/payments/usage - Darkbloom\">\u003cmeta data-mint-head property=\"og:description\" content=\"GET /v1/payments/usage — returns your inference usage history. Each entry includes model, token counts, cost in micro-USD, and a timestamp.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Darkbloom\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.darkbloom.dev/reference/usage\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://eigenlabs-f49d2e97.mintlify.site/_mintlify/api/og/v2?division=Account\u0026amp;title=Usage+history+%E2%80%94+GET+%2Fv1%2Fpayments%2Fusage\u0026amp;description=GET+%2Fv1%2Fpayments%2Fusage+%E2%80%94+returns+your+inference+usage+history.+Each+entry+includes+model%2C+token+counts%2C+cost+in+micro-USD%2C+and+a+timestamp.\u0026amp;theme=33807c18711f3ad0adc203ac\u0026amp;signature=4ef3335349bbd515a1dbe4f537bcb2b63b0b6ac5c80c25834c89222ded490e95\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Usage history — GET /v1/payments/usage - Darkbloom\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"GET /v1/payments/usage — returns your inference usage history. Each entry includes model, token counts, cost in micro-USD, and a timestamp.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://eigenlabs-f49d2e97.mintlify.site/_mintlify/api/og/v2?division=Account\u0026amp;title=Usage+history+%E2%80%94+GET+%2Fv1%2Fpayments%2Fusage\u0026amp;description=GET+%2Fv1%2Fpayments%2Fusage+%E2%80%94+returns+your+inference+usage+history.+Each+entry+includes+model%2C+token+counts%2C+cost+in+micro-USD%2C+and+a+timestamp.\u0026amp;theme=33807c18711f3ad0adc203ac\u0026amp;signature=4ef3335349bbd515a1dbe4f537bcb2b63b0b6ac5c80c25834c89222ded490e95\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/eigenlabs-f49d2e97/zX4NJLyHK_yR9YZe/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Darkbloom\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0B44FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.darkbloom.dev/reference/usage\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/reference/usage.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.darkbloom.dev/#organization\",\"name\":\"Darkbloom\",\"url\":\"https://docs.darkbloom.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/eigenlabs-f49d2e97/IspAEDzrILVDDfNo/images/Blacklogo.png?fit=max\u0026auto=format\u0026n=IspAEDzrILVDDfNo\u0026q=85\u0026s=0b259f057d233a45818dfca27115accb\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.darkbloom.dev#website\",\"name\":\"Darkbloom\",\"url\":\"https://docs.darkbloom.dev\",\"publisher\":{\"@id\":\"https://docs.darkbloom.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.darkbloom.dev/reference/usage#webpage\",\"url\":\"https://docs.darkbloom.dev/reference/usage\",\"name\":\"Usage history — GET /v1/payments/usage\",\"description\":\"GET /v1/payments/usage — returns your inference usage history. Each entry includes model, token counts, cost in micro-USD, and a timestamp.\",\"dateModified\":\"2026-11-16T19:59:43.490Z\",\"isPartOf\":{\"@id\":\"https://docs.darkbloom.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.darkbloom.dev/reference/usage#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.darkbloom.dev/reference/usage#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Account\",\"item\":\"https://docs.darkbloom.dev/reference/balance\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Usage history — GET /v1/payments/usage\",\"item\":\"https://docs.darkbloom.dev/reference/usage\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.darkbloom.dev/reference/usage#article\",\"headline\":\"Usage history — GET /v1/payments/usage\",\"name\":\"Usage history — GET /v1/payments/usage\",\"description\":\"GET /v1/payments/usage — returns your inference usage history. Each entry includes model, token counts, cost in micro-USD, and a timestamp.\",\"url\":\"https://docs.darkbloom.dev/reference/usage\",\"mainEntityOfPage\":{\"@id\":\"https://docs.darkbloom.dev/reference/usage#webpage\"},\"dateModified\":\"2026-11-16T19:59:43.490Z\",\"publisher\":{\"@id\":\"https://docs.darkbloom.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.darkbloom.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Darkbloom\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Darkbloom\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/reference/usage.md","siteName":"Darkbloom","nav":{"global":null,"tabs":[{"tab":"Get started","pages":[{"title":"Get started","href":"/introduction"}]},{"tab":"Inference","pages":[{"title":"Inference","href":"/quickstart-consumer"}]},{"tab":"CI","pages":[{"title":"CI","href":"/ci/overview"}]},{"tab":"Sandboxes","pages":[{"title":"Sandboxes","href":"/sandboxes/overview"}]},{"tab":"Providers","pages":[{"title":"Providers","href":"/quickstart-provider"}]},{"tab":"API Reference","groups":[{"group":"Inference","pages":[{"title":"Chat completions — POST /v1/chat/completions","href":"/reference/chat-completions"},{"title":"Text completions — POST /v1/completions","href":"/reference/completions"},{"title":"Anthropic Messages API — POST /v1/messages","href":"/reference/messages"},{"title":"Available models — GET /v1/models","href":"/reference/models"}]},{"group":"Account","pages":[{"title":"Account balance — GET /v1/payments/balance","description":"GET /v1/payments/balance — returns your current account balance. Returns balance_micro_usd, balance_usd, withdrawable_micro_usd, and withdrawable_usd.","href":"/reference/balance"},{"title":"Usage history — GET /v1/payments/usage","href":"/reference/usage"},{"title":"API key management — /v1/keys and /v1/auth/keys","description":"Create, inspect, rotate and revoke Darkbloom API keys. Management requires a Privy session; API keys cannot manage other keys.","href":"/reference/api-keys"}]},{"group":"Network","pages":[{"title":"Network stats — /v1/stats, /v1/leaderboard","href":"/reference/stats"},{"title":"Provider attestation — GET /v1/providers/attestation","href":"/reference/attestation"}]}]}]},"basePath":"","title":"Usage history — GET /v1/payments/usage - Darkbloom","deploymentId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","buildId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","dynamics":[],"chunks":[]}