Hello, when I use my api to get the requests, it shows “{‘message’: ‘You are not subscribed to this API.’}”
Here is my code:
url = “https://realm-generation.p.rapidapi.com/generation”
payload = {
“promptPositive”: “@character model student high quality hd, a single yearbook photograph, dark-blue cloudy backdrop, full portrait style”,
“cfgScale”: 7.5,
“samlplingSteps”: 30,
“controlType”: “FACE_FEATURE”,
“controlSource”: “https://d28hgpri8am2if.cloudfront.net/book_images/onix/cvr9781982181284/elon-musk-9781982181284_lg.jpg”
}
headers = {
“content-type”: “application/json”,
“X-RapidAPI-Key”: “key”,
“X-RapidAPI-Host”: “realm-generation.p.rapidapi.com”
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
Join in the discussion - add comment below: