The Text Summarizer takes any block of text — an article, research report, email thread, or document — and distills it into a concise, meaningful summary using Google Gemini 2.5 Flash. Under the hood, the page sends your text to theDocumentation 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.
/api/utilities/summarizer endpoint with the prompt Summarize the following text in a concise and meaningful way, and returns the result in real time. A compression ratio indicator lets you see exactly how much the original content was reduced.
How to use
Paste your text
Click into the Your Content textarea and paste the text you want to condense. The character and word count update live as you type.
Click Summarize
Press the Summarize button. Skeleton placeholders appear while Gemini processes your request — typically within a few seconds.
API integration
The frontend calls the summarizer endpoint with a straightforwardPOST request. You can use the same endpoint directly from any client or server-side code:
Request & Response
POST /api/utilities/summarizer
The full text you want summarized. Can be an article, document, email, or any prose content. The field must be non-empty — the API returns a
400 if it is missing.Success response
The AI-generated summary of the submitted text, condensed into a concise, meaningful paragraph or set of sentences.
Error responses
| Status | Condition | Response body |
|---|---|---|
400 | userPrompt field is missing or empty | { "error": "Missing input text." } |
500 | Gemini API call failed | { "error": "Failed to summarize text." } |
Example
InputThe Text Summarizer requires a valid
GEMINI_API_KEY environment variable to be set on your server. Without it, the GoogleGenAI client will fail to authenticate and all requests will return a 500 error.