Google
Google AI Mode API
Ask Google AI Mode a question and get its answer with the sources it cites. Call the Google AI Mode API for JSON. 2 credits per call.
POST
Ask Google AI Mode a question and get its answer with the sources it cites
- Endpoint:
google.aiMode - Returns:
datahasprompt,answer,sources. - Cost: 2 credits per call. Failed calls cost nothing.
- Paging: No.
sources.
Example
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
The question to ask, worded the way a person would ask it.
Required string length:
1 - 2000ISO 3166-1 alpha-2 country code, e.g. us. Any case is accepted.
Pattern:
^[A-Za-z]{2}$Two-letter language code like en or pt. Any case is accepted.
Pattern:
^[A-Za-z]{2}$