package main
import (
  "fmt"
  "strings"
  "net/http"
  "io"
)
func main() {
  url := "https://cortex-api.moralis.io/chat"
  payload := strings.NewReader("{\"prompt\":\"Provide a detailed analysis of PEPE holders, is the trend bullish or bearish?\",\"model\":\"gpt-4.1-mini\",\"stream\":false}")
  req, _ := http.NewRequest("POST", url, payload)
  req.Header.Add("Accept", "application/json")
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("X-API-Key", "YOUR_API_KEY")
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := io.ReadAll(res.Body)
  fmt.Println(res)
  fmt.Println(string(body))
}