Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/nayalsaurav/ai360/llms.txt

Use this file to discover all available pages before exploring further.

The Summarizer endpoint accepts any block of text and returns a concise, meaningful summary generated by Google’s Gemini 2.5 Flash model. It is suited for articles, documentation snippets, reports, or any other long-form input that needs quick distillation.

Request

POST /api/utilities/summarizer
Content-Type: application/json
userPrompt
string
required
The full text you want summarized. Must be a non-empty string. There is no enforced character limit at the API layer, but very long inputs may increase latency.

Response

A successful request returns HTTP 200 with the following body:
summary
string
The AI-generated summary of the submitted text.
{
  "summary": "Your concise summary appears here."
}

Error Responses

StatusBodyCause
400{ "error": "Missing input text." }userPrompt was absent or empty.
500{ "error": "Failed to summarize text." }Gemini API call failed or an unexpected server error occurred.
Ensure userPrompt is included in the request body. A missing or empty field immediately returns a 400 without calling the AI model.

Example

Request
curl -X POST https://your-domain.com/api/utilities/summarizer \
  -H "Content-Type: application/json" \
  -d '{
    "userPrompt": "Artificial intelligence (AI) is intelligence demonstrated by machines, as opposed to the natural intelligence displayed by animals including humans. AI research has been defined as the field of study of intelligent agents, which refers to any system that perceives its environment and takes actions that maximize its chance of achieving its goals."
  }'
Response
{
  "summary": "Artificial intelligence (AI) refers to machine-demonstrated intelligence, contrasted with natural intelligence found in animals and humans. It focuses on intelligent agents — systems that perceive their environment and act to achieve goals."
}

Build docs developers (and LLMs) love