Common API
September 3, 2024Less than 1 minute
Common API
π Welcome
Get Api Key
The Remaker API uses keys to authenticate the requests. Pass the key you've obtained from the API Settings page to the request body and follow all the endpoint processes accordingly.
Step 1: log in to Remaker to obtain the API key
Step 2: add the API key as a parameter to your header
Get User Info
You can use this API to get the current credits of your account.
Currently this API only provides user information, we will return more user information in the future.
Request Demo
::: tabs#get-user-credits
@tab python
import requests
url = "https://developer.remaker.ai/api/remaker/user-info/get-user-info"
payload = {}
headers = {
'accept': 'application/json',
'Authorization': 'your api key'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
:::
Response Demo
{
"code": 100000,
"result": {
"credits": 1622
},
"message": {
"en": "Request Success."
}
}