<?php
use GeminiAPI\Client;
use GeminiAPI\Resources\Parts\TextPart;
$client = new Client(''); //i entered the api here
$chat = $client->geminiPro()->startChat();
$response = $chat->sendMessage(new TextPart('Hello World in PHP'));
print $response->text();
$response = $chat->sendMessage(new TextPart('in Go'));
print $response->text();
?>```
Did you get this error for a specific prompt or was it a one time issue? Unfortunately, Google Gemini responds with a 500 error from time to time. There is nothing I can do.