Inclusive ISO 8601 end timestamp. Must include a time zone, fall after start, and sit within 180 days of it.
Response
Daily costs across every API key in the project, bucketed by UTC calendar date in ascending order. Buckets cover zero-cost days and the end date, and the first and last bucket can each cover a partial day. Costs are reported in USD and can lag recent charges, so read them as usage telemetry rather than an authoritative billing ledger. Responses are sent with Cache-Control: no-store.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"getimg.ai Docs","colors":{"primary":"#0966FF","light":"#0966FF","dark":"#0966FF"},"logo":{"light":"https://mintcdn.com/getimgai/sQ_MAMHmYpgBppBg/logo/light.svg?fit=max\u0026auto=format\u0026n=sQ_MAMHmYpgBppBg\u0026q=85\u0026s=cd893010c81cadbf06c761f2fe01bd70","dark":"https://mintcdn.com/getimgai/nCH2elOf3o3bWynQ/logo/dark.svg?fit=max\u0026auto=format\u0026n=nCH2elOf3o3bWynQ\u0026q=85\u0026s=e02993c99107204ee2064924c06ee541"},"favicon":"https://mintcdn.com/getimgai/6pTSAG62ode9SCSw/favicon.svg?fit=max\u0026auto=format\u0026n=6pTSAG62ode9SCSw\u0026q=85\u0026s=49c2b56bf001f6e4b917e5c21e6afe0e","api":{},"navbar":{"links":[{"href":"mailto:api@getimg.ai","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://getimg.ai/app/developer"}},"footer":{"socials":{"x":"https://x.com/getimg_ai"}},"contextual":{"options":["copy","view","chatgpt","claude","cursor"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Dashboard","icon":"gauge","href":"https://getimg.ai/app/developer"},{"anchor":"API Keys","icon":"key","href":"https://getimg.ai/app/developer/api-keys"},{"anchor":"Models","icon":"cube","href":"https://getimg.ai/app/developer/models"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"getimgai","hasAudioNarration":false,"actualSubdomain":"getimgai","customDomains":["docs.getimg.ai"],"gitSource":{"type":"github","owner":"webrockets-dev","repo":"docs","deployBranch":"master","isPrivate":true,"contentDirectory":"","mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adf26523d6319f7be03600c","collectionId":"4b822bcf-2d6c-4d05-aae6-d5c7260fc595","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adf26523d6319f7be03600c"},"entitlements":{},"buildId":"6adf26523d6319f7be03600c","clientVersion":"0.0.4043","searchFilterCounts":[{"language":"default","tag":"Guides","count":12},{"language":"default","tag":"API Reference","count":7},{"language":"default","tag":"Getting started","count":5},{"language":"default","tag":"Concepts","count":5},{"language":"default","tag":"Generation","count":2},{"language":"default","tag":"Billing","count":2},{"language":"default","tag":"Models","count":2},{"language":"default","tag":"Videos","count":2},{"language":"default","tag":"Images","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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":"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":"llms-txt-v2","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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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}],"googleFontsInlined":false},"customCss":[{"filePath":"snippets/style.css","content":".nav-logo{height:20px}"}],"page":{"pagePath":"api-reference/billing/get-daily-costs","slug":"/api-reference/billing/get-daily-costs","pageMetadata":{"title":"Get daily costs","description":"Retrieve daily API costs and the range total for your developer project.","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v2/billing/costs","href":"/api-reference/billing/get-daily-costs","autogeneratedByOpenApi":true},"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: \"Retrieve daily API costs and the range total for your developer project.\"\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get daily costs","description":"Retrieve daily API costs and the range total for your developer project.","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v2/billing/costs","href":"/api-reference/billing/get-daily-costs","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Billing"],"operationId":"getCosts","summary":"Get daily costs","description":"Retrieve daily API costs and the range total for your developer project.","x-codeSamples":[{"lang":"javascript","label":"Node.js","source":"import GetimgAI from \"getimg-ai\";\n\nconst client = new GetimgAI();\n\nconst costs = await client.billing.listCosts({\n start: \"2026-09-01T00:00:00Z\",\n end: \"2026-09-05T00:00:00Z\",\n});\n"},{"lang":"python","label":"Python","source":"from getimg import GetimgAI\n\nclient = GetimgAI()\n\ncosts = client.billing.list_costs(\n start=\"2026-09-01T00:00:00Z\",\n end=\"2026-09-05T00:00:00Z\",\n)\n"}],"parameters":["e0f4392d-32f6-431d-860e-4b6d3c655e5a","8a63f039-d20c-441f-a0ac-4a8b1a9eeb10"],"responses":{"200":"fd2463ac-fb94-4cd5-a5fe-da9d20445fbc","400":"7c4110fd-690c-4468-a565-bcc0283dbaea","401":"b94f96bc-424f-4448-b0b4-e87a3131e900","429":"83fbb83a-4b70-4b9e-89ad-702773dedca8","500":"d0b9f10d-d3be-4ce4-9826-e64445bf0ea4"},"method":"get","type":"path","servers":["b7818e8d-c861-4c75-899a-8bcf80cd7f4f"],"security":["acefb13d-c24f-416f-b3b2-9bfec091364f"],"path":"/v2/billing/costs","baseUrlOptions":["https://api.getimg.ai"],"title":"Get daily costs","codeSamples":[{"label":"Node.js","lang":"javascript","source":"import GetimgAI from \"getimg-ai\";\n\nconst client = new GetimgAI();\n\nconst costs = await client.billing.listCosts({\n start: \"2026-09-01T00:00:00Z\",\n end: \"2026-09-05T00:00:00Z\",\n});\n"},{"label":"Python","lang":"python","source":"from getimg import GetimgAI\n\nclient = GetimgAI()\n\ncosts = client.billing.list_costs(\n start=\"2026-09-01T00:00:00Z\",\n end=\"2026-09-05T00:00:00Z\",\n)\n"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"e0f4392d-32f6-431d-860e-4b6d3c655e5a":{"name":"start","in":"query","required":true,"description":"Inclusive ISO 8601 start timestamp. Must include a time zone.","schema":{"type":"string","format":"date-time","isRequired":true,"description":"Inclusive ISO 8601 start timestamp. Must include a time zone.","uniqueKey":"","typeLabel":"string\u003cdate-time>"},"example":"2026-09-01T00:00:00Z"},"8a63f039-d20c-441f-a0ac-4a8b1a9eeb10":{"name":"end","in":"query","required":true,"description":"Inclusive ISO 8601 end timestamp. Must include a time zone, fall after `start`, and sit within 180 days of it.\n","schema":{"type":"string","format":"date-time","isRequired":true,"description":"Inclusive ISO 8601 end timestamp. Must include a time zone, fall after `start`, and sit within 180 days of it.\n","uniqueKey":"","typeLabel":"string\u003cdate-time>"},"example":"2026-09-05T00:00:00Z"}},"responses":{"fd2463ac-fb94-4cd5-a5fe-da9d20445fbc":{"description":"Daily costs across every API key in the project, bucketed by UTC calendar date in ascending order. Buckets cover zero-cost days and the end date, and the first and last bucket can each cover a partial day. Costs are reported in USD and can lag recent charges, so read them as usage telemetry rather than an authoritative billing ledger. Responses are sent with `Cache-Control: no-store`.\n","content":{"application/json":{"schema":{"type":"object","required":["currency","total_cost","start","end","data"],"properties":{"currency":{"type":"string","enum":["USD"],"isRequired":true,"uniqueKey":"currency","typeLabel":"enum\u003cstring>"},"data":{"type":"array","description":"One bucket per UTC calendar date in the range.","items":{"type":"object","required":["date","cost"],"properties":{"date":{"type":"string","format":"date","description":"UTC calendar date for the bucket.","example":"2026-09-01","isRequired":true,"uniqueKey":"data.items.[INDEX].date","typeLabel":"string\u003cdate>"},"cost":{"type":"number","description":"Cost for the bucket in USD.","example":0.84,"isRequired":true,"uniqueKey":"data.items.[INDEX].cost","typeLabel":"number"}},"uniqueKey":"data.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data","typeLabel":"object[]"},"total_cost":{"type":"number","description":"Total cost for the range in USD.","example":3.45,"isRequired":true,"uniqueKey":"total_cost","typeLabel":"number"},"start":{"type":"string","format":"date-time","description":"Start of the requested range.","isRequired":true,"uniqueKey":"start","typeLabel":"string\u003cdate-time>"},"end":{"type":"string","format":"date-time","description":"End of the requested range.","isRequired":true,"uniqueKey":"end","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"costs":{"title":"costs","value":{"currency":"USD","data":[{"date":"2026-09-01","cost":0.84},{"date":"2026-09-02","cost":1.26},{"date":"2026-09-03","cost":0},{"date":"2026-09-04","cost":0.42},{"date":"2026-09-05","cost":0.93}],"total_cost":3.45,"start":"2026-09-01T00:00:00Z","end":"2026-09-05T00:00:00Z"}}},"exampleType":"examples"}},"exampleType":"examples"},"7c4110fd-690c-4468-a565-bcc0283dbaea":{"description":"The request payload or parameters are invalid.","headers":{"X-RateLimit-Limit":{"description":"Maximum requests allowed in the current rate-limit window.","schema":{"type":"string","pattern":"^[0-9]+$"},"example":"60"},"X-RateLimit-Remaining":{"description":"Remaining requests in the current rate-limit window.","schema":{"type":"string","pattern":"^[0-9]+$"},"example":"59"},"X-RateLimit-Reset":{"description":"Unix timestamp (seconds) when the current rate-limit window resets.","schema":{"type":"string","pattern":"^[0-9]+$"},"example":"1760000042"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","param","code"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","const":"invalid_request_error","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"param":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"type":"string","enum":["invalid_api_key","parameter_missing","invalid_parameter","quota_exceeded","rate_limit","content_policy_violation","not_found","server_error"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"doc_url":{"type":"string","format":"uri","uniqueKey":"error.doc_url","typeLabel":"string\u003curi>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"invalid_parameter":{"title":"invalid_parameter","value":{"error":{"message":"Unsupported resolution '8K' for model 'seedream-5-lite'.","type":"invalid_request_error","param":"resolution","code":"invalid_parameter"}}},"parameter_missing":{"title":"parameter_missing","value":{"error":{"message":"Required parameter 'prompt' is missing.","type":"invalid_request_error","param":"prompt","code":"parameter_missing"}}}},"exampleType":"examples"}},"exampleType":"examples"},"b94f96bc-424f-4448-b0b4-e87a3131e900":{"description":"Authentication failed due to a missing or invalid API key.","headers":{"X-RateLimit-Limit":{"description":"Maximum requests allowed in the current rate-limit window.","schema":{"type":"string","pattern":"^[0-9]+$"},"example":"60"},"X-RateLimit-Remaining":{"description":"Remaining requests in the current rate-limit window.","schema":{"type":"string","pattern":"^[0-9]+$"},"example":"59"},"X-RateLimit-Reset":{"description":"Unix timestamp (seconds) when the current rate-limit window resets.","schema":{"type":"string","pattern":"^[0-9]+$"},"example":"1760000042"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","param","code"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","const":"invalid_request_error","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"param":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"type":"string","enum":["invalid_api_key","parameter_missing","invalid_parameter","quota_exceeded","rate_limit","content_policy_violation","not_found","server_error"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"doc_url":{"type":"string","format":"uri","uniqueKey":"error.doc_url","typeLabel":"string\u003curi>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"invalid_api_key":{"title":"invalid_api_key","value":{"error":{"message":"Incorrect API key provided. You can manage your API keys at https://getimg.ai/app/developer/api-keys","type":"invalid_request_error","param":null,"code":"invalid_api_key","doc_url":"https://docs.getimg.ai/guides/authentication"}}}},"exampleType":"examples"}},"exampleType":"examples"},"83fbb83a-4b70-4b9e-89ad-702773dedca8":{"description":"A rate or concurrency limit was exceeded.","headers":{"X-RateLimit-Limit":{"description":"Maximum requests allowed in the current rate-limit window.","schema":{"type":"string","pattern":"^[0-9]+$"},"example":"60"},"X-RateLimit-Remaining":{"description":"Remaining requests in the current rate-limit window.","schema":{"type":"string","pattern":"^[0-9]+$"},"example":"59"},"X-RateLimit-Reset":{"description":"Unix timestamp (seconds) when the current rate-limit window resets.","schema":{"type":"string","pattern":"^[0-9]+$"},"example":"1760000042"},"Retry-After":{"description":"Number of seconds to wait before retrying.","schema":{"type":"string","pattern":"^[0-9]+$"},"example":"42"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","param","code"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","const":"invalid_request_error","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"param":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"type":"string","enum":["invalid_api_key","parameter_missing","invalid_parameter","quota_exceeded","rate_limit","content_policy_violation","not_found","server_error"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"doc_url":{"type":"string","format":"uri","uniqueKey":"error.doc_url","typeLabel":"string\u003curi>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"rate_limited":{"title":"rate_limited","value":{"error":{"message":"Too many requests hit the API too quickly.","type":"invalid_request_error","param":null,"code":"rate_limit"}}}},"exampleType":"examples"}},"exampleType":"examples"},"d0b9f10d-d3be-4ce4-9826-e64445bf0ea4":{"description":"An unexpected server error occurred.","headers":{"X-RateLimit-Limit":{"description":"Maximum requests allowed in the current rate-limit window.","schema":{"type":"string","pattern":"^[0-9]+$"},"example":"60"},"X-RateLimit-Remaining":{"description":"Remaining requests in the current rate-limit window.","schema":{"type":"string","pattern":"^[0-9]+$"},"example":"59"},"X-RateLimit-Reset":{"description":"Unix timestamp (seconds) when the current rate-limit window resets.","schema":{"type":"string","pattern":"^[0-9]+$"},"example":"1760000042"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","param","code"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","const":"invalid_request_error","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"param":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"type":"string","enum":["invalid_api_key","parameter_missing","invalid_parameter","quota_exceeded","rate_limit","content_policy_violation","not_found","server_error"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"doc_url":{"type":"string","format":"uri","uniqueKey":"error.doc_url","typeLabel":"string\u003curi>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"server_error":{"title":"server_error","value":{"error":{"message":"Something went wrong on our end.","type":"invalid_request_error","param":null,"code":"server_error"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"acefb13d-c24f-416f-b3b2-9bfec091364f":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"Send your API key as a bearer token:\n`Authorization: Bearer sk_\u003csecret>`.\n","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"b7818e8d-c861-4c75-899a-8bcf80cd7f4f":{"url":"https://api.getimg.ai","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"Send your API key as a bearer token:\n`Authorization: Bearer sk_\u003csecret>`.\n","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Send your API key as a bearer token:\n`Authorization: Bearer sk_\u003csecret>`.\n","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"getimgai","siteName":"getimg.ai Docs","title":"Get daily costs - getimg.ai Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-26T10:07:17.848Z","originalFileLocation":"api-reference/billing/get-daily-costs.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=\"Retrieve daily API costs and the range total for your developer project.\">\u003cmeta data-mint-head name=\"application-name\" content=\"getimg.ai Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/getimgai/FU3VAiwxVCzl_fxg/_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/getimgai/FU3VAiwxVCzl_fxg/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/getimgai/FU3VAiwxVCzl_fxg/_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/getimgai/FU3VAiwxVCzl_fxg/_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/getimgai/FU3VAiwxVCzl_fxg/_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/getimgai/FU3VAiwxVCzl_fxg/_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/getimgai/FU3VAiwxVCzl_fxg/_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/getimgai/FU3VAiwxVCzl_fxg/_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/getimgai/FU3VAiwxVCzl_fxg/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get daily costs - getimg.ai Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Retrieve daily API costs and the range total for your developer project.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"getimg.ai Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.getimg.ai/api-reference/billing/get-daily-costs\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://getimgai.mintlify.app/_mintlify/api/og/v2?division=Billing\u0026amp;title=Get+daily+costs\u0026amp;description=Retrieve+daily+API+costs+and+the+range+total+for+your+developer+project.\u0026amp;theme=3a2787ab15a8cbd0750f1b36\u0026amp;signature=758573d406dfa9b939413c455ef3ca037352308bd0f6736908c9fa989ededd7d\">\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=\"Get daily costs - getimg.ai Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Retrieve daily API costs and the range total for your developer project.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://getimgai.mintlify.app/_mintlify/api/og/v2?division=Billing\u0026amp;title=Get+daily+costs\u0026amp;description=Retrieve+daily+API+costs+and+the+range+total+for+your+developer+project.\u0026amp;theme=3a2787ab15a8cbd0750f1b36\u0026amp;signature=758573d406dfa9b939413c455ef3ca037352308bd0f6736908c9fa989ededd7d\">\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/getimgai/FU3VAiwxVCzl_fxg/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"getimg.ai Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0966FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.getimg.ai/api-reference/billing/get-daily-costs\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/billing/get-daily-costs.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.getimg.ai/#organization\",\"name\":\"getimg.ai Docs\",\"url\":\"https://docs.getimg.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/getimgai/sQ_MAMHmYpgBppBg/logo/light.svg?fit=max\u0026auto=format\u0026n=sQ_MAMHmYpgBppBg\u0026q=85\u0026s=cd893010c81cadbf06c761f2fe01bd70\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.getimg.ai#website\",\"name\":\"getimg.ai Docs\",\"url\":\"https://docs.getimg.ai\",\"publisher\":{\"@id\":\"https://docs.getimg.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.getimg.ai/api-reference/billing/get-daily-costs#webpage\",\"url\":\"https://docs.getimg.ai/api-reference/billing/get-daily-costs\",\"name\":\"Get daily costs\",\"description\":\"Retrieve daily API costs and the range total for your developer project.\",\"dateModified\":\"2026-10-26T10:07:17.848Z\",\"isPartOf\":{\"@id\":\"https://docs.getimg.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.getimg.ai/api-reference/billing/get-daily-costs#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.getimg.ai/api-reference/billing/get-daily-costs#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Billing\",\"item\":\"https://docs.getimg.ai/api-reference/billing/get-the-current-balance\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get daily costs\",\"item\":\"https://docs.getimg.ai/api-reference/billing/get-daily-costs\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.getimg.ai/api-reference/billing/get-daily-costs#apireference\",\"headline\":\"Get daily costs\",\"name\":\"Get daily costs\",\"description\":\"Retrieve daily API costs and the range total for your developer project.\",\"url\":\"https://docs.getimg.ai/api-reference/billing/get-daily-costs\",\"mainEntityOfPage\":{\"@id\":\"https://docs.getimg.ai/api-reference/billing/get-daily-costs#webpage\"},\"dateModified\":\"2026-10-26T10:07:17.848Z\",\"publisher\":{\"@id\":\"https://docs.getimg.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.getimg.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"getimg.ai Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"getimg.ai Docs","nav":{"global":{"anchors":[{"anchor":"Dashboard","icon":"gauge","href":"https://getimg.ai/app/developer"},{"anchor":"API Keys","icon":"key","href":"https://getimg.ai/app/developer/api-keys"},{"anchor":"Models","icon":"cube","href":"https://getimg.ai/app/developer/models"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API Reference","groups":[{"group":"Images","pages":[{"title":"Generate an image","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v2/images/generations","href":"/api-reference/images/generate-an-image"}]},{"group":"Models","pages":[{"title":"List supported models","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v2/models","href":"/api-reference/models/list-supported-models"},{"title":"Get a model","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v2/models/{model}","href":"/api-reference/models/get-a-model"}]},{"group":"Videos","pages":[{"title":"Create a video generation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v2/videos/generations","href":"/api-reference/videos/create-a-video-generation"},{"title":"Retrieve video generation status","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v2/videos/generations/{id}","href":"/api-reference/videos/retrieve-video-generation-status"}]},{"group":"Billing","pages":[{"title":"Get the current balance","description":"Retrieve the current API balance shared by the API key's workspace.","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v2/billing/balance","href":"/api-reference/billing/get-the-current-balance"},{"title":"Get daily costs","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v2/billing/costs","href":"/api-reference/billing/get-daily-costs"}]}]}]},"basePath":"","title":"Get daily costs - getimg.ai Docs","buildId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","deploymentId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-B7XKH4J3.js","utils-lOYzL7z-.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DF6jUUIM.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dpsj5f7C.js","snippetPresets-CYeiDe8v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CUFz1YZ_.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-D8H_iLS4.js","shallow-DdluZBHX.js","getApiPlaygroundDisplay-B9922vev.js","CodeSnippet-CMoRNGYs.js","CodeSnippets-DwyrPHuw.js","Page-DSVu9Ucl.js","getPastedJson-G-zIvlHh.js","icon-B03fnEy0.js","MethodPill-CW7teklc.js","DuplicateIcon-CtO8eekd.js","createIcon-DZTKdM_A.js","DynamicMarkdown-D5M2At0B.js","SectionHeading-C_2NaA2U.js","axios-vUo_bRtp.js","Markdown-D7QRHV3m.js","clsx-D1Z-ELXV.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-lvhuD9Du.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CKfC4ywL.js"]}