Skip to main content

🔮 Gemini Generate Endpoint

Generate rich text content using Google’s Gemini API by sending a custom prompt.

📮 POST /generate

📬 Description

Send a prompt to the Gemini API and receive a generated text response.

🧾 Headers

  • Content-Type: application/json

📤 Request Body

{
  "prompt": "How can we prevent overfishing?"
}
{
  "status": "1",
  "content": "To mitigate overfishing, we can implement stricter catch limits, expand marine protected areas..."
}
{
  "status": "-1",
  "message": "Prompt is required"
}