OpenRizz

OpenRizz is a simple API to give you Pickup lines and Flirt lines

Usage:
      
# curl
curl --location --request POST 'http://localhost:8000/rizz/invoke' \
     --header 'Content-Type: application/json' \
     --data-raw '{
        "input" : {
          "description":"Her name is Shreya. She looks cute and has a Heart of Gold (metaphor)!",
          "response_type":"Funny, Flirty, Seductive"}
     }'
      
      
      
# Python 
import requests

url = "http://localhost:8000/rizz/invoke"

payload = "{\"input\": {\"description\": \"Her name is Shreya. She looks cute and has a Heart of Gold (metaphor)!\",\"response_type\": \"Funny, Flirty, Seductive\"}}"
headers = { 'Content-Type': 'application/json' }
response = requests.request("POST", url, headers=headers, data=payload)
      
      
      
# Go
package main

import (
	"fmt"
	"io"
	"log"
	"net/http"
	"strings"
)

func main() {
	client := &http.Client{}
	var data = strings.NewReader(`{
        "input" : {
          "description":"Her name is Shreya. She looks cute and has a Heart of Gold (metaphor)!",
          "response_type":"Funny, Flirty, Seductive"}
     }`)
	req, err := http.NewRequest("POST", "http://localhost:8000/rizz/invoke", data)
	if err != nil {
		log.Fatal(err)
	}
	req.Header.Set("Content-Type", "application/json")
	resp, err := client.Do(req)
	if err != nil {
		log.Fatal(err)
	}
	defer resp.Body.Close()
	bodyText, err := io.ReadAll(resp.Body)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%s\n", bodyText)
}
      
      
      
# JS
fetch('http://localhost:8000/rizz/invoke', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    'input': {
      'description': 'Her name is Shreya. She looks cute and has a Heart of Gold (metaphor)!',
      'response_type': 'Funny, Flirty, Seductive'
    }
  })
});