# Google AI Mode

Get Google AI data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no proxies required. Powered by LiteScrape, pass parameters such as gl, hl, q, and retrieve structured data including returned references value, returned search metadata value, returned search parameters value, and returned text blocks value to search interfaces and source review, and integration reference.

Documentation: https://openany.si/google/google-ai/6a56b00a-0331-4f7e-9ec5-9b5701e4bb03/
API ID: 6a56b00a-0331-4f7e-9ec5-9b5701e4bb03
Provider: litescrape
Contract revision: 6
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/litescrape/api/google/ai-mode
Page update time: 2026-12-03T02:53:21.491Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.00015 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:53:16.799Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "150",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Google AI Mode API

Retrieve Google AI Mode answers with cited sources. Provide q in body. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Search interfaces and source review**: Keep returned sources and query context together.
- **Integration reference**: Use the selected request format and keep source identifiers with the returned result.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `references` | Returned references value (nullable in the reference) |
| `search_metadata` | Returned search metadata value (nullable in the reference) |
| `search_parameters` | Returned search parameters value (nullable in the reference) |
| `submit_feedback_for_this_response_here` | Returned submit feedback for this response here field |
| `subsequent_request_token` | Returned subsequent request token value (nullable in the reference) |
| `text_blocks` | Returned text blocks value (nullable in the reference) |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Google AI Mode request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "timeout": {
          "type": "number",
          "description": "Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.",
          "maximum": 90
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "additionalProperties": false,
      "examples": [
        {
          "gl": "us",
          "hl": "en",
          "q": "why is the sky blue"
        }
      ],
      "properties": {
        "continuable": {
          "default": false,
          "description": "Return a subsequent_request_token so this answer can be followed up.",
          "title": "Continuable",
          "type": "boolean",
          "x-litescrape": {
            "formGroup": 3,
            "group": 2,
            "id": "google-ai-mode-conversation-continuable",
            "kind": "select",
            "label": "Continuable",
            "options": [
              {
                "label": "Default (false)",
                "value": ""
              },
              {
                "label": "true",
                "value": "true"
              },
              {
                "label": "false",
                "value": "false"
              }
            ],
            "summary": "Return a subsequent_request_token so this answer can be followed up."
          }
        },
        "device": {
          "default": "desktop",
          "description": "Google returns its real layout for the selected device.",
          "enum": [
            "desktop",
            "tablet",
            "mobile"
          ],
          "title": "Device",
          "type": "string",
          "x-litescrape": {
            "formGroup": 2,
            "group": 3,
            "id": "google-ai-mode-localization-device",
            "kind": "select",
            "label": "Device",
            "options": [
              {
                "label": "desktop",
                "value": "desktop"
              },
              {
                "label": "tablet",
                "value": "tablet"
              },
              {
                "label": "mobile",
                "value": "mobile"
              }
            ],
            "summary": "Google returns its real layout for the selected device."
          }
        },
        "gl": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Two-letter country localization, normalized to lowercase.",
          "title": "Gl",
          "x-litescrape": {
            "formGroup": 2,
            "group": 3,
            "id": "google-ai-mode-localization-gl",
            "label": "Country",
            "placeholder": "us",
            "summary": "Two-letter country localization, normalized to lowercase."
          }
        },
        "google_domain": {
          "default": "google.com",
          "description": "Validated first-party Google domain the request is served from.",
          "title": "Google Domain",
          "type": "string",
          "x-litescrape": {
            "formGroup": 2,
            "group": 3,
            "id": "google-ai-mode-localization-google_domain",
            "label": "Google domain",
            "placeholder": "google.com",
            "summary": "Validated first-party Google domain the request is served from."
          }
        },
        "hl": {
          "default": "en",
          "description": "Language code such as en, en-GB, or de.",
          "title": "Hl",
          "type": "string",
          "x-litescrape": {
            "formGroup": 2,
            "group": 3,
            "id": "google-ai-mode-localization-hl",
            "label": "Language",
            "placeholder": "en",
            "summary": "Language code such as en, en-GB, or de."
          }
        },
        "image_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Public http or https image to include in the prompt, up to 2,048 characters and 20 MB. Google Lens receives the image; the answer still comes from AI Mode.",
          "title": "Image Url",
          "x-litescrape": {
            "formGroup": 4,
            "group": 2,
            "id": "google-ai-mode-conversation-image_url",
            "kind": "textarea",
            "label": "Image URL",
            "placeholder": "https://example.com/photo.jpg",
            "summary": "Public http or https image to include in the prompt, up to 2,048 characters and 20 MB. Google Lens receives the image; the answer still comes from AI Mode."
          }
        },
        "location": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Named search origin, up to 512 characters and 63 UTF-8 bytes once Google-encoded. Conflicts with uule.",
          "title": "Location",
          "x-litescrape": {
            "formGroup": 1,
            "group": 1,
            "id": "google-ai-mode-geography-location",
            "label": "Location",
            "placeholder": "Austin, Texas",
            "summary": "Named search origin, up to 512 characters and 63 UTF-8 bytes once Google-encoded. Conflicts with uule."
          }
        },
        "q": {
          "description": "The question to ask Google AI Mode, up to 2,048 characters with no controls.",
          "title": "Q",
          "type": "string",
          "x-litescrape": {
            "formGroup": 0,
            "group": 0,
            "id": "google-ai-mode-question-q",
            "kind": "textarea",
            "label": "Question",
            "placeholder": "what is the best espresso machine for a small kitchen",
            "summary": "The question to ask Google AI Mode, up to 2,048 characters with no controls."
          }
        },
        "subsequent_request_token": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Continue a conversation from a previous continuable response. Requires a new question, and cannot be combined with image_url. Expires after 30 minutes.",
          "title": "Subsequent Request Token",
          "x-litescrape": {
            "formGroup": 3,
            "group": 2,
            "id": "google-ai-mode-conversation-subsequent_request_token",
            "kind": "textarea",
            "label": "Continuation token",
            "placeholder": "ai1.…",
            "summary": "Continue a conversation from a previous continuable response. Requires a new question, and cannot be combined with image_url. Expires after 30 minutes."
          }
        },
        "uule": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Canonical Google location token, up to 2,048 characters. Conflicts with location.",
          "title": "Uule",
          "x-litescrape": {
            "formGroup": 1,
            "group": 1,
            "id": "google-ai-mode-geography-uule",
            "kind": "textarea",
            "label": "UULE",
            "placeholder": "w+CAIQICI…",
            "summary": "Canonical Google location token, up to 2,048 characters. Conflicts with location."
          }
        }
      },
      "required": [
        "q"
      ],
      "title": "Request",
      "type": "object",
      "description": "Get Google AI Mode answers with cited sources."
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "references": {
      "type": "null"
    },
    "search_metadata": {
      "type": "null"
    },
    "search_parameters": {
      "type": "null"
    },
    "submit_feedback_for_this_response_here": {
      "type": "string"
    },
    "subsequent_request_token": {
      "type": "null"
    },
    "text_blocks": {
      "type": "null"
    }
  }
}
```

## Request example
Scenario: Schema template (HTTP assumed)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/litescrape/api/google/ai-mode' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "gl": "us",
  "hl": "en",
  "q": "why is the sky blue"
}'
```

## Response example
Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.
Response template · not a real response · Configured HTTP 200; actual status is unverified.
```json
{
  "references": null,
  "search_metadata": null,
  "search_parameters": null,
  "submit_feedback_for_this_response_here": "<submit_feedback_for_this_response_here>",
  "subsequent_request_token": null,
  "text_blocks": null
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which inputs identify this request?
Provide q in body (string). Keep identifiers and URLs in the formats documented for this implementation.

### What type does timeout use?
timeout uses the JSON type number in query. Preserve that type; strings, numbers, booleans and arrays are not interchangeable.

### How should I structure the JSON body?
Send the body according to its root JSON schema. Do not add a second body wrapper around the documented properties, and preserve the declared types of nested values.

### How should I map the returned fields?
Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

## Available implementations
- anyapi: https://openany.si/google/google-ai/ca87c058-83f3-41c4-84ec-d76a762b4662/
- anyapi: https://openany.si/google/google-ai/db534d95-5616-46b6-bce8-b8e7fec9588d/
- litescrape: https://openany.si/google/google-ai/27d2667e-7cb4-4765-9b45-69006a99341c/
- litescrape: https://openany.si/google/google-ai/4b2f6448-f1c6-4d62-aa8c-07ea228df437/
- litescrape: https://openany.si/google/google-ai/6a56b00a-0331-4f7e-9ec5-9b5701e4bb03/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
