2.8 Hyper Chat
The HyperChat endpoint generates text based on a provided prompt using the "HyperChat" model. Users must have sufficient credits, which are deducted upon successful text generation.
Method: POST
Endpoint
https://sdk.hypergpt.ai/hyperChat
Headers:
Bearer Token
new_user_token
Params :
Query (str): The text query provided by the user for generating the response.
Example Request:
headers = {
"Authorization": "Bearer " + bearer_token
}
params = {
"Query": query
}
response = requests.post(
"https://sdk.hypergpt.ai/hyperChat",
headers=headers,
params=params
)
return response.json()
Example Response (Success):
{
"Recent advances in artificial intelligence include..."
}
Example Response (Error):
{
"detail": "Credit not enough"
}
Last updated