Response on prompt

POST Prompt

https://api.fullmetal.ai/prompt

Request Header

  • api-key : YOUR API KEY OBTAIN FROM HERE

Body (urlencoded)

  • model : model query (like 7B, 13B, uncensored, Vicuna, Wizard, llama)

  • prompt : YOUR PROMPT

Example

var myHeaders = new Headers();
myHeaders.append("apikey", "YOUR_API_KEY");

var raw = "{\r\n    \"prompt\": \"Hi\",\r\n    \"model\": \"7B\"\r\n}";

var requestOptions = {
  method: 'POST',
  headers: myHeaders,
  body: raw,
  redirect: 'follow'
};

fetch("https://api.fullmetal.ai/prompt", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));

Response

{
    "response": " Hey there, how can I assist you today?",
    "model": "TheBloke/Wizard-Vicuna-7B-Uncensored",
    "speed": "6.91",
    "elapsedTime": "5.65"
}

Last updated