AI
AI answer API
Ask an AI assistant a question and get its answer with the sources it cites. Call the AI answer API for JSON. 3 credits per call.
POST
Ask an AI assistant a question and get its answer with the sources it cites
- Endpoint:
ai.answer - Returns:
datahasengine,prompt,answer,sources. - Cost: 3 credits per call. Failed calls cost nothing.
- Paging: No.
engine: gemini or chatgpt. Returns its answer and the pages it cites.
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 buyer would ask an AI assistant, e.g. What is the best CRM for a small business? Up to 2000 characters.
Required string length:
1 - 2000Which AI assistant answers: gemini or chatgpt.
Available options:
gemini, chatgpt