• About Us
  • Disclaimer
  • Contact Us
  • Privacy Policy
Saturday, July 12, 2025
mGrowTech
No Result
View All Result
  • Technology And Software
    • Account Based Marketing
    • Channel Marketing
    • Marketing Automation
      • Al, Analytics and Automation
      • Ad Management
  • Digital Marketing
    • Social Media Management
    • Google Marketing
  • Direct Marketing
    • Brand Management
    • Marketing Attribution and Consulting
  • Mobile Marketing
  • Event Management
  • PR Solutions
  • Technology And Software
    • Account Based Marketing
    • Channel Marketing
    • Marketing Automation
      • Al, Analytics and Automation
      • Ad Management
  • Digital Marketing
    • Social Media Management
    • Google Marketing
  • Direct Marketing
    • Brand Management
    • Marketing Attribution and Consulting
  • Mobile Marketing
  • Event Management
  • PR Solutions
No Result
View All Result
mGrowTech
No Result
View All Result
Home Google Marketing

Batch Mode in the Gemini API: Process more for less

Josh by Josh
July 7, 2025
in Google Marketing
0
Batch Mode in the Gemini API: Process more for less
0
SHARES
0
VIEWS
Share on FacebookShare on Twitter


Gemini models are now available in Batch Mode

Today, we’re excited to introduce a batch mode in the Gemini API, a new asynchronous endpoint designed specifically for high-throughput, non-latency-critical workloads. The Gemini API Batch Mode allows you to submit large jobs, offload the scheduling and processing, and retrieve your results within 24 hours—all at a 50% discount compared to our synchronous APIs.


Process more for less

Batch Mode is the perfect tool for any task where you have your data ready upfront and don’t need an immediate response. By separating these large jobs from your real-time traffic, you unlock three key benefits:

  • Cost savings: Batch jobs are priced at 50% less than the standard rate for a given model
  • Higher throughput: Batch Mode has even higher rate limits
  • Easy API calls: No need to manage complex client-side queuing or retry logic. Available results are returned within a 24-hour window.


A simple workflow for large jobs

We’ve designed the API to be simple and intuitive. You package all your requests into a single file, submit it, and retrieve your results once the job is complete. Here are some ways developers are leveraging Batch Mode for tasks today:

  • Bulk content generation and processing: Specializing in deep video understanding, Reforged Labs uses Gemini 2.5 Pro to analyze and label vast quantities of video ads monthly. Implementing Batch Mode has revolutionized their operations by significantly cutting costs, accelerating client deliverables, and enabling the massive scalability needed for meaningful market insights.

Get started in just a few lines of code

You can start using Batch Mode today with the Google GenAI Python SDK:

# Create a JSONL that contains these lines:
# {"key": "request_1", "request": {"contents": [{"parts": [{"text": "Explain how AI works in a few words"}]}]}},
# {"key": "request_2", "request": {"contents": [{"parts": [{"text": "Explain how quantum computing works in a few words"}]}]}}

uploaded_batch_requests = client.files.upload(file="batch_requests.json")

batch_job = client.batches.create(
    model="gemini-2.5-flash",
    src=uploaded_batch_requests.name,
    config={
        'display_name': "batch_job-1",
    },
)

print(f"Created batch job: {batch_job.name}")

# Wait for up to 24 hours

if batch_job.state.name == 'JOB_STATE_SUCCEEDED':
    result_file_name = batch_job.dest.file_name
    file_content_bytes = client.files.download(file=result_file_name)
    file_content = file_content_bytes.decode('utf-8')

    for line in file_content.splitlines():
      print(line)

Python

To learn more, check out the official documentation and pricing pages.

We’re rolling out Batch Mode for the Gemini API today and tomorrow to all users. This is just the start for batch processing, and we’re actively working on expanding its capabilities. Stay tuned for more powerful and flexible options!



Source_link

READ ALSO

Explore the world around you in 30 endangered languages with Google AI

A Prime Day Lightning deal strikes hundreds off the Google Pixel Fold

Related Posts

Explore the world around you in 30 endangered languages with Google AI
Google Marketing

Explore the world around you in 30 endangered languages with Google AI

July 12, 2025
A Prime Day Lightning deal strikes hundreds off the Google Pixel Fold
Google Marketing

A Prime Day Lightning deal strikes hundreds off the Google Pixel Fold

July 11, 2025
New cohort for Google for Startups AI Academy: American Infrastructure
Google Marketing

New cohort for Google for Startups AI Academy: American Infrastructure

July 11, 2025
Flow adds speech to videos and expands to more countries
Google Marketing

Flow adds speech to videos and expands to more countries

July 11, 2025
Gemini AI can now turn photos into videos
Google Marketing

Gemini AI can now turn photos into videos

July 11, 2025
Announcing GenAI Processors: Build powerful and flexible Gemini applications
Google Marketing

Announcing GenAI Processors: Build powerful and flexible Gemini applications

July 11, 2025
Next Post
Website Maintenance Services

Search Marketing and Online Advertising

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

POPULAR NEWS

Communication Effectiveness Skills For Business Leaders

Communication Effectiveness Skills For Business Leaders

June 10, 2025
7 Best EOR Platforms for Software Companies in 2025

7 Best EOR Platforms for Software Companies in 2025

June 21, 2025
Eating Bugs – MetaDevo

Eating Bugs – MetaDevo

May 29, 2025
Top B2B & Marketing Podcasts to Lead You to Succeed in 2025 – TopRank® Marketing

Top B2B & Marketing Podcasts to Lead You to Succeed in 2025 – TopRank® Marketing

May 30, 2025
App Development Cost in Singapore: Pricing Breakdown & Insights

App Development Cost in Singapore: Pricing Breakdown & Insights

June 22, 2025

EDITOR'S PICK

What Is Context Engineering in AI? Techniques, Use Cases, and Why It Matters

What Is Context Engineering in AI? Techniques, Use Cases, and Why It Matters

July 6, 2025
How to Create an SEO Forecast [Free Template Included] — Whiteboard Friday

How to Create an SEO Forecast [Free Template Included] — Whiteboard Friday

June 14, 2025
Double digit growth | Idaho Ad Agencies

Double digit growth | Idaho Ad Agencies

May 27, 2025
Making AI-generated code more accurate in any language | MIT News

Making AI-generated code more accurate in any language | MIT News

July 7, 2025

About

We bring you the best Premium WordPress Themes that perfect for news, magazine, personal blog, etc. Check our landing page for details.

Follow us

Categories

  • Account Based Marketing
  • Ad Management
  • Al, Analytics and Automation
  • Brand Management
  • Channel Marketing
  • Digital Marketing
  • Direct Marketing
  • Event Management
  • Google Marketing
  • Marketing Attribution and Consulting
  • Marketing Automation
  • Mobile Marketing
  • PR Solutions
  • Social Media Management
  • Technology And Software
  • Uncategorized

Recent Posts

  • New Incremental Attribution Details – Jon Loomer Digital
  • Red Hat Introduces Cost-Free RHEL for Business Developers
  • New AI system uncovers hidden cell subtypes, boosts precision medicine | MIT News
  • Sonic’s CMO Talks Tapping into the X Games Fanbase
  • About Us
  • Disclaimer
  • Contact Us
  • Privacy Policy
No Result
View All Result
  • Technology And Software
    • Account Based Marketing
    • Channel Marketing
    • Marketing Automation
      • Al, Analytics and Automation
      • Ad Management
  • Digital Marketing
    • Social Media Management
    • Google Marketing
  • Direct Marketing
    • Brand Management
    • Marketing Attribution and Consulting
  • Mobile Marketing
  • Event Management
  • PR Solutions

Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?