UwUfy
UwUfy a message
POST /api/ai/uwufy
https://api.cookie-api.com/api/ai/uwufy
Authentication Learn how to get your API Key and use it in your requests!
{ "prompt": "Prompt for the ai",}
curl --location 'https://api.cookie-api.com/api/ai/uwufy' \--header 'Authorization: API_Key' \--data '{ "prompt": "Hello"}'
import requests
url = 'https://api.cookie-api.com/api/ai/uwufy'headers = { 'Authorization': 'API_Key'}data = { 'prompt': 'Hello'}
response = requests.post(url, headers=headers, json=data)print(response.json())
const fetch = require('node-fetch');
const url = 'https://api.cookie-api.com/api/ai/uwufy';const headers = { 'Authorization': 'API_Key', 'Content-Type': 'application/json'};const body = JSON.stringify({ prompt: 'Hello'});
fetch(url, { method: 'POST', headers: headers, body: body}).then(res => res.json()).then(data => console.log(data)).catch(err => console.error(err));
package main
import ( "bytes" "fmt" "log" "net/http" "encoding/json")
func main() { url := "https://api.cookie-api.com/api/ai/uwufy" requestBody := map[string]interface{}{ "prompt": "Hello", } jsonData, err := json.Marshal(requestBody) if err != nil { log.Fatal(err) }
req, err := http.NewRequest("POST", url, bytes.NewBuffer(jsonData)) if err != nil { log.Fatal(err) }
req.Header.Set("Authorization", "API_Key") req.Header.Set("Content-Type", "application/json")
client := &http.Client{} resp, err := client.Do(req) if err != nil { log.Fatal(err) } defer resp.Body.Close()
var res map[string]interface{} if err := json.NewDecoder(resp.Body).Decode(&res); err != nil { log.Fatal(err) }
fmt.Println(res)}
const https = require('https');
const data = JSON.stringify({ prompt: 'Hello'});
const options = { hostname: 'api.cookie-api.com', path: '/api/ai/uwufy', method: 'POST', headers: { 'Authorization': 'API_Key', 'Content-Type': 'application/json' }};
const req = https.request(options, res => { let body = '';
res.on('data', chunk => { body += chunk; });
res.on('end', () => { console.log(JSON.parse(body)); });});
req.on('error', error => { console.error(error);});
req.write(data);req.end();
require 'net/http'require 'uri'require 'json'
uri = URI.parse('https://api.cookie-api.com/api/ai/uwufy')
request = Net::HTTP::Post.new(uri)request['Authorization'] = 'API_Key'request['Content-Type'] = 'application/json'
request.body = { prompt: 'Hello' }.to_json
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http| http.request(request)end
puts response.body
use reqwest::blocking::Client;use reqwest::header::{HeaderMap, CONTENT_TYPE};use std::collections::HashMap;
fn main() { let url = "https://api.cookie-api.com/api/ai/uwufy"; let client = Client::new();
let mut headers = HeaderMap::new(); headers.insert("Authorization", "API_Key".parse().unwrap()); headers.insert(CONTENT_TYPE, "application/json".parse().unwrap());
let mut body = HashMap::new(); body.insert("prompt", "Hello");
let res = client .post(url) .headers(headers) .json(&body) .send() .unwrap();
println!("{}", res.text().unwrap());}
Responses
{ "success": true, "uwufy": "Oolloo!"}