Skip to content

Commit 676575b

Browse files
feat: change the base url for /billing/balance
1 parent 277dbcc commit 676575b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

docs/service-endpoints/billing-balance.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"servers": [
88
{
9-
"url": "https://billing.aimlapi.com"
9+
"url": "https://api.aimlapi.com"
1010
}
1111
],
1212
"paths": {
@@ -86,19 +86,19 @@
8686
"x-codeSamples": [
8787
{
8888
"lang": "JavaScript",
89-
"source": "async function main() {\n const response = await fetch(\"https://billing.aimlapi.com/v1/billing/balance\", {\n headers: {\n \"Authorization\": \"Bearer <YOUR_AIMLAPI_KEY>\",\n \"Content-Type\": \"application/json\",\n },\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();"
89+
"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 \"Content-Type\": \"application/json\",\n },\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();"
9090
},
9191
{
9292
"lang": "Python",
93-
"source": "import requests\nimport json\n\ndef main():\n response = requests.get(\n \"https://billing.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 \"Content-Type\": \"application/json\",\n }\n )\n\n data = response.json()\n print(json.dumps(data, indent=2, ensure_ascii=False))\n\nif __name__ == \"__main__\":\n main()"
93+
"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 \"Content-Type\": \"application/json\",\n }\n )\n\n data = response.json()\n print(json.dumps(data, indent=2, ensure_ascii=False))\n\nif __name__ == \"__main__\":\n main()"
9494
},
9595
{
9696
"lang": "cURL",
97-
"source": "curl -L \\\n --request GET \\\n --url 'https://billing.aimlapi.com/v1/billing/balance' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\\n --header 'Content-Type: application/json'"
97+
"source": "curl -L \\\n --request GET \\\n --url 'https://apiaimlapi.com/v1/billing/balance' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\\n --header 'Content-Type: application/json'"
9898
},
9999
{
100100
"lang": "HTTP",
101-
"source": "GET /v1/billing/balance HTTP/1.1\nHost: billing.aimlapi.com\nAuthorization: Bearer <YOUR_AIMLAPI_KEY>\nAccept: */*"
101+
"source": "GET /v1/billing/balance HTTP/1.1\nHost: api.aimlapi.com\nAuthorization: Bearer <YOUR_AIMLAPI_KEY>\nAccept: */*"
102102
}
103103
]
104104
}

0 commit comments

Comments
 (0)