Example Use Bot

On this page we will explain the tutorial on using commands on the bot.

POST /completion

This endpoint is used to submit a prompt and retrieve the AI-generated completion. The request should include the following parameters:

  • prompt: The text prompt for the AI model to generate a completion based on.

  • temperature: (optional) A parameter that controls the randomness of the generated text. Higher values (e.g., 0.8) result in more random output, while lower values (e.g., 0.2) produce more deterministic output.

Example request:

 /generateimage
 
   "prompt": "/generateimage make a doge coin",
  "temperature": 0.5 (opsional)
  first response : ''Your request is being processed. Please wait...''
  
the result of the desired prompt
the result of the desired prompt

Please write the voice and the message to convert to speech in the format: voice-message.

Example: Shimmer-In a land far, far away, there was a kingdom named Elaria......

Available voices: alloy, echo, fable, onyx, nova, and shimmer

the old wise wisdom
Confused when you want to make tweet X on your account? Use this!
bot will input the answer into docs txt.

you can learn anything with Smartsage, ask him anything anytime and anywhere. he will answer all your questions

Error Handling

If an error occurs during the API request, the response will include an appropriate error message along with the corresponding HTTP status code.

Last updated