Google Ai Mode Api logo

Google Ai Mode Api

Community
scavio-ai
google-ai-mode-api

Google AI Mode answers as structured JSON: the AI-generated response split into text blocks, the cited source references behind it, and shopping results on commercial queries. Localize by country and language. One endpoint on the v2 engine, 1 credit per request.

Overview

Publisherscavio-ai
Repositoryskills
Skill namegoogle-ai-mode-api
Stars
67
Forks
0
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by scavio-ai on GitHub. Read the source before you install it.

Installation

Install the Google Ai Mode Api AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/scavio-ai/skills/tree/main/skills/google-ai-mode-api
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/scavio-ai/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/google-ai-mode-api .claude/skills/google-ai-mode-api
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Google Ai Mode Api in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Google Ai Mode Api on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Google Ai Mode Api is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Google AI Mode API - AI Answers with Cited Sources

Fetch Google's AI Mode answer as structured JSON: an AI-generated response broken into text blocks, the cited source references behind it, and shopping results for commercial queries. One credit per request.

When to trigger

Use this skill when the user asks to:

  • Get Google's AI-generated answer to a question, with its sources
  • See what Google's AI Mode says about a topic or product
  • Pull cited references behind an AI answer for grounding or verification
  • Answer a commercial query and surface AI-suggested products

Setup

Get a free API key at scavio.dev (50 free credits to get started, no card required):

bash
export SCAVIO_API_KEY=sk_live_your_key

If you do not have a key yet

An agent running this skill without SCAVIO_API_KEY set will get 401 on every call below. The whole path from nothing to a working key is self-serve:

  1. Sign up at dashboard.scavio.dev - email or Google, no card required.
  2. A key is created for the account automatically at signup. It is on the dashboard under API Keys, ready to copy.
  3. A new account starts with 50 credits. Endpoints in this skill cost 1 credit each unless the table below says otherwise.

When the balance runs out the API answers 402 with a JSON body carrying billing_url. Topping up needs no code change - the same key keeps working. The smallest purchase is 2,500 credits for $25, and monthly plans work out cheaper per credit if the usage is steady rather than one-off.

Endpoint

POST https://api.scavio.dev/api/v2/google/ai-mode
Authorization: Bearer $SCAVIO_API_KEY

Every request costs 1 credit.

Workflow

  1. Send the user's question as query.
  2. Localize with gl/hl/location when the answer is region-specific.
  3. Read text_blocks[] for the AI answer, references[] for the cited sources, and shopping_results[] for product suggestions on commercial queries.

Parameters

ParameterTypeDefaultDescription
querystringrequiredSearch query (1-500 chars)
devicestringdesktopdesktop or mobile
hlstring--UI language, ISO 639-1
glstring--Geo country, ISO 3166-1 alpha-2
google_domainstringgoogle.comRegional Google domain
locationstring--Canonical location name (auto-UULE)
uulestring--Pre-encoded UULE (takes priority over location)
safestring--active filters adult content
include_htmlbooleanfalseInclude raw HTML in the html field

Example

python
import requests

# Your key from https://scavio.dev. Load it from your environment or secret
# store in real code - keep it out of source control.
API_KEY = "sk_your_key_here"

response = requests.post(
    "https://api.scavio.dev/api/v2/google/ai-mode",
    headers={"Authorization": f"Bearer {API_KEY}"},
    json={"query": "best running shoes for flat feet 2026", "gl": "us", "hl": "en"},
)
data = response.json()
for b in data.get("text_blocks", []):
    print(b.get("snippet") or b.get("text"))
for ref in data.get("references", []):
    print("source:", ref.get("title"), ref.get("link"))

Response

json
{
  "text_blocks": [
    { "type": "paragraph", "snippet": "AI-generated answer text..." }
  ],
  "references": [
    { "title": "Source article", "link": "https://example.com", "source": "Example" }
  ],
  "shopping_results": [],
  "response_time": 2140,
  "credits_used": 1,
  "credits_remaining": 995,
  "cached": false
}

Guardrails

  • Each call costs 1 credit.
  • Never fabricate the AI answer, references, or products. Only return API data.
  • Present the answer from text_blocks and always surface its references so the user can verify sources.
  • AI Mode does not support pagination or result filtering — it is a single answer per query.

Failure handling

  • 400 means an invalid parameter — fix and retry.
  • 401 means the API key is invalid or missing. Check SCAVIO_API_KEY.
  • 429 means rate or usage limit exceeded. Wait before retrying. See rate limits.
  • 502 / 503 mean upstream is temporarily unavailable. Wait a few seconds before retrying.
  • If no AI answer is returned, the query may not trigger AI Mode — fall back to the scavio-google search skill.
  • If SCAVIO_API_KEY is not set, prompt the user to export it before continuing.

Frequently asked questions

What does the Google Ai Mode Api AI skill do?

Google AI Mode answers as structured JSON: the AI-generated response split into text blocks, the cited source references behind it, and shopping results on commercial queries. Localize by country and language. One endpoint on the v2 engine, 1 credit per request.

Why use Google Ai Mode Api on TypingMind?

Because you install it once and use it with any model. Google Ai Mode Api is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Google Ai Mode Api in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/scavio-ai/skills/tree/main/skills/google-ai-mode-api. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Google Ai Mode Api?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Google Ai Mode Api?

As many as you like. As long as a model supports skills, you can use Google Ai Mode Api with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Google Ai Mode Api AI skill free?

Yes. It is published on GitHub by scavio-ai under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇