<?php
// Define the prompt to be sent
$prompt = 'Please generate a simple blog post according to this title "What is CHATGPT"';
// Enter E-mail to generate API
$apiKey = 'Enter your E-mail Address to get the free ChatGPT API';
// Define the default model if none is specified
$defaultModel = 'gpt-3.5-turbo';
// Uncomment the model you want to use, and comment out the others
// $model = 'gpt-4';
// $model = 'gpt-4-32k';
// $model = 'gpt-3.5-turbo-0125';
$model = $defaultModel;
// Build the URL to call
$apiUrl = 'http://195.179.229.119/gpt/api.php?prompt=' . urlencode($prompt) . '&api_key=' . urlencode($apiKey) . '&model=' . urlencode($model);
// Initialize cURL session
// Set cURL options
// Execute the cURL request
// Check for cURL errors
if ($response === false) {
} else {
}
// Close the cURL session
?>
PD9waHAKLy8gRGVmaW5lIHRoZSBwcm9tcHQgdG8gYmUgc2VudAokcHJvbXB0ID0gJ1BsZWFzZSBnZW5lcmF0ZSBhIHNpbXBsZSBibG9nIHBvc3QgYWNjb3JkaW5nIHRvIHRoaXMgdGl0bGUgIldoYXQgaXMgQ0hBVEdQVCInOwoKLy8gRW50ZXIgRS1tYWlsIHRvIGdlbmVyYXRlIEFQSQokYXBpS2V5ID0gJ0VudGVyIHlvdXIgRS1tYWlsIEFkZHJlc3MgdG8gZ2V0IHRoZSBmcmVlIENoYXRHUFQgQVBJJzsKCi8vIERlZmluZSB0aGUgZGVmYXVsdCBtb2RlbCBpZiBub25lIGlzIHNwZWNpZmllZAokZGVmYXVsdE1vZGVsID0gJ2dwdC0zLjUtdHVyYm8nOwoKLy8gVW5jb21tZW50IHRoZSBtb2RlbCB5b3Ugd2FudCB0byB1c2UsIGFuZCBjb21tZW50IG91dCB0aGUgb3RoZXJzCi8vICRtb2RlbCA9ICdncHQtNCc7Ci8vICRtb2RlbCA9ICdncHQtNC0zMmsnOwovLyAkbW9kZWwgPSAnZ3B0LTMuNS10dXJiby0wMTI1JzsKJG1vZGVsID0gJGRlZmF1bHRNb2RlbDsKCi8vIEJ1aWxkIHRoZSBVUkwgdG8gY2FsbAokYXBpVXJ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