Master text generation, translation, summarization, and reasoning with Gemini's state-of-the-art language model.
Explore LanguageGenerate high-quality content for any purpose: articles, code, marketing, technical documentation, and more. Specify tone, style, and audience for optimal results.
{`curl -X POST https://api.gemini.com/v1/complete \\ -H "Authorization: Bearer YOUR_api_key" \\ -d '{"prompt":"Write a technical article about quantum computing for beginners"}'`}Text Generation Tutorial ➡️
Translate between 100+ languages with context-aware accuracy. Maintain technical terminology consistency and preserve document formatting.
{`{ "prompt":"Translate this legal document from English to French", "input_text":"All parties agree to the following terms", "language_pair":"en-fr" }`}Translation Best Practices ➡️
Extract core insights from documents, articles, or reports. Supports technical content with proper entity recognition and citation handling.
{`{ "prompt":"Create a 300-word summary of this research paper", "document_type":"academic", "preserve_citations":true }`}Summarization Guidelines ➡️
Get data-driven answers to complex questions. Supports multi-step reasoning across technical, scientific, and business domains.
{`{ "query":"Compare the economic impacts of renewable energy adoption in EU vs US between 2000-2020", "format":"executive_summary" }`}Reasoning Documentation ➡️
Endpoint | Method | Function |
---|---|---|
/v1/language/generate | POST | Text generation with formatting and style controls |
/v1/language/translate | POST | Document translation between any language pair |
/v1/language/summarize | POST | Content condensation and key point extraction |
/v1/language/reason | POST | Complex data analysis and logical inference |
Specify constraints and formats explicitly: "Write a 500-word academic introduction for this paper in APA style"
{`{
"prompt": "Write an academic introduction section for a CS paper about neural networks",
"constraints": {
"length": 500,
"citation_style": "APA"
}
}`}
Include previous conversation context for consistent reasoning: "Using our earlier discussion about blockchain, explain consensus mechanisms"
{`{
"prompt": "Given the previous explanation about blockchain ledgers, now detail the proof-of-stake consensus mechanism",
"context_id": "academic_discussion_12345"
}`}
Specify target audience and tone: "Explain these technical results in investor-friendly terms with no jargon"
{`{
"prompt": "Simplify this quantum physics article for a general audience",
"style": {
"audience": "high_school",
"tone": "entertaining"
}
}`}
Request specific formats: bullet points, code, markdown, or JSON depending on your use case
{`{
"prompt": "List key points from Einstein's theory of relativity",
"format": "bulleted",
"order": "chronological"
}`}
Create compelling content, translate accurately, and gain insights from any text with Gemini's language capabilities.
Try Language Features