---
title: "Google AI Mode"
method: GET
path: "/v1/web/ai-mode"
tags: ["Google Search"]
---

# Google AI Mode

`GET /v1/web/ai-mode`

## Request

- Base URL: `https://apidirect.io`
- URL: `https://apidirect.io/v1/web/ai-mode`
- Auth: API key in header `X-API-Key`

Send a prompt to Google's AI Mode and receive a structured conversational reply broken into ordered parts (paragraph, heading, list, images) with cited reference links. Each response includes a session_token: pass it on the next call to continue the conversation in context. Each call, including a follow-up, is billed as one request. The same endpoint also accepts POST with a JSON body for prompts that do not fit comfortably in a URL. In the rare case where Google returns no answer, the response is still 200 with an empty reply_parts array.

**Price:** $0.005 per request. **Free tier:** 50 requests/month.

## Query parameters

- `prompt` string, required
- `country` string
- `language` string
- `session_token` string

## Response `200`

Successful response

- GoogleAiModeResponse: Inferred from a live response. Any field can be null or absent, and new fields may be added at any time.
  - `reply_parts` object[], nullable
    - `type` string, nullable
    - `text` string, nullable
    - `ordered` boolean, nullable
    - `list` object[], nullable
      - `title` string, nullable
      - `text` string, nullable
  - `reference_links` object[], nullable
    - `title` string, nullable
    - `link` string, nullable
    - `snippet` string, nullable
    - `source` string, nullable
    - `favicon` string, nullable
    - `date` string, nullable
  - `session_token` string, nullable

## Other responses

- `400`: Bad request: missing or invalid parameters
- `401`: Unauthorized: invalid or missing API key
- `402`: Free tier used up for this endpoint and no payment method on file (`payment_required`).
- `403`: Account blocked after a failed payment (`account_blocked`).
- `429`: Rate limit exceeded or too many concurrent requests
- `500`: Internal server error
- `502`: Temporary failure retrieving search data. Please retry shortly.
- `503`: Service temporarily unavailable. Please retry shortly.
- `504`: The request timed out

---

[API](https://skmtc.dev/apidirect/apis/api-direct.md) · [All operations](https://skmtc.dev/apidirect/apis/api-direct/llms.txt) · [OpenAPI document](https://skmtc.dev/apidirect/apis/api-direct/revisions/fa8c68d70bd0?raw)
