Response on prompt

POST 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
JS
CURL
PYTHON
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));
Example
curl --location 'https://api.fullmetal.ai/prompt' \
--header 'apikey: YOUR_API_KEY' \
--data '{
"prompt": "Hi",
"model": "7B"
}'
Example
import requests
url = "https://api.fullmetal.ai/prompt"
payload = "{\r\n \"prompt\": \"Hi\",\r\n \"model\": \"7B\"\r\n}"
headers = {
'apikey': 'YOUR_API_KEY'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response)
Response
{
"response": " Hey there, how can I assist you today?",
"model": "TheBloke/Wizard-Vicuna-7B-Uncensored",
"speed": "6.91",
"elapsedTime": "5.65"
}