Endpoints
Available Credits
GET
https://api.oneinfer.ai/v1/developer/:developerId/get-creditsRetrieve the current credit balance for your developer account.
Path Parameters
developerId
string requiredYour unique developer identifier obtained from the console.
Request example
curl -X GET "https://api.oneinfer.ai/v1/developer/{developerId}/get-credits" \
-H "Authorization: Bearer <ACCESS_TOKEN>"Response example
200 OK{
"availableCredits": {
"creditBalance": 150.75,
"lastUpdated": "2024-03-21T12:30:00Z"
}
}
Error Status Codes
| Code | Status | Description |
|---|---|---|
| 200 | OK | Credit balance returned successfully. |
| 401 | Unauthorized | Missing or invalid Authorization header / Bearer token. |
| 500 | Internal Server Error | Unexpected error fetching credit balance. |