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 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 the /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

1

Open the Text Summarizer

Navigate to /utilities/text-summarizer in your AI360 app.
2

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.
3

Click Summarize

Press the Summarize button. Skeleton placeholders appear while Gemini processes your request — typically within a few seconds.
4

Read and copy your summary

The Summary panel populates with the condensed version of your content. Use the Copy button to send it to your clipboard instantly.

API integration

The frontend calls the summarizer endpoint with a straightforward POST request. You can use the same endpoint directly from any client or server-side code:
const response = await fetch('/api/utilities/summarizer', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ userPrompt: 'Your long text here...' })
})

const { summary } = await response.json()

Request & Response

POST /api/utilities/summarizer
userPrompt
string
required
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

summary
string
The AI-generated summary of the submitted text, condensed into a concise, meaningful paragraph or set of sentences.

Error responses

StatusConditionResponse body
400userPrompt field is missing or empty{ "error": "Missing input text." }
500Gemini API call failed{ "error": "Failed to summarize text." }

Example

Input
Artificial intelligence (AI) is transforming industries at an unprecedented pace.
From healthcare diagnostics to autonomous vehicles and financial forecasting, machine
learning models are now embedded in decision-making processes that affect millions of
people daily. However, this rapid adoption also raises critical questions about
transparency, bias, and accountability. Researchers and policymakers are calling for
standardized frameworks to audit AI systems and ensure they operate fairly across
diverse populations. Without such guardrails, the risk of entrenching existing societal
inequalities through automated systems remains a pressing concern.
Output
AI is rapidly transforming many industries, but its swift adoption has raised important
concerns around transparency, bias, and fairness. Researchers and policymakers are
urging the creation of standardized audit frameworks to ensure AI systems operate
equitably and do not reinforce existing societal inequalities.
The 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.

Build docs developers (and LLMs) love