Skip to content

Commit 38c9dee

Browse files
feat: small fixes in billing after Stas's review
1 parent e6604a5 commit 38c9dee

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/api-references/service-endpoints/billing-detail-v2.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,15 @@
9494
"x-codeSamples": [
9595
{
9696
"lang": "cURL",
97-
"source": "curl -L \\\n --request GET \\\n --url 'https://api.aimlapi.com/v1/billing/balance' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>'"
97+
"source": "curl -L \\\n --request GET \\\n --url 'https://api.aimlapi.com/v2/billing/detail' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>'"
9898
},
9999
{
100100
"lang": "JavaScript",
101-
"source": "async function main() {\n const response = await fetch(\"https://api.aimlapi.com/v1/billing/balance\", {\n headers: {\n \"Authorization\": \"Bearer <YOUR_AIMLAPI_KEY>\",\n },\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();"
101+
"source": "async function main() {\n const response = await fetch(\"https://api.aimlapi.com/v2/billing/detail\", {\n headers: {\n \"Authorization\": \"Bearer <YOUR_AIMLAPI_KEY>\",\n },\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();"
102102
},
103103
{
104104
"lang": "Python",
105-
"source": "import requests\nimport json\n\ndef main():\n response = requests.get(\n \"https://api.aimlapi.com/v1/billing/balance\",\n headers={\n # Insert your AIML API Key instead of <YOUR_AIMLAPI_KEY>:\n \"Authorization\": \"Bearer <YOUR_AIMLAPI_KEY>\",\n }\n )\n\n data = response.json()\n print(json.dumps(data, indent=2, ensure_ascii=False))\n\nif __name__ == \"__main__\":\n main()"
105+
"source": "import requests\nimport json\n\ndef main():\n response = requests.get(\n \"https://api.aimlapi.com/v2/billing/detail\",\n headers={\n # Insert your AIML API Key instead of <YOUR_AIMLAPI_KEY>:\n \"Authorization\": \"Bearer <YOUR_AIMLAPI_KEY>\",\n }\n )\n\n data = response.json()\n print(json.dumps(data, indent=2, ensure_ascii=False))\n\nif __name__ == \"__main__\":\n main()"
106106
}
107107
]
108108
}

0 commit comments

Comments
 (0)