2.5 Hyper Contracts

The HyperContracts endpoint generates text based on a user's prompt using the "HyperContracts" model. Users must have sufficient credits, which are deducted upon successful text generation.

Method:POST

https://sdk.hypergpt.ai/hyperContracts

Headers:

Bearer Token

new_user_token

Params :

  • Query (str): The text prompt provided by the user for generating the response.

Return Value:

  • code_text (dict): The generated text response or an error message if an exception occurs.

Example Request:

headers = {
    "Authorization": "Bearer " + bearer_token,

}
data = {
    "Query": Query,
}
response = requests.post(
    "https://sdk.hypergpt.ai/hyperContracts",
    headers=headers,
    params=data 
)

return response.json()

Example Response (Success):

{
 "Here is a detailed contract for software development..."
}

Example Response (Error):

{
    "detail": "Credit not enough"
}

Last updated