Skip to main content
POST
Ask an AI assistant a question and get its answer with the sources it cites
  • Endpoint: ai.answer
  • Returns: data has engine, prompt, answer, sources.
  • Cost: 3 credits per call. Failed calls cost nothing.
  • Paging: No.
Pick the assistant with engine: gemini or chatgpt. Returns its answer and the pages it cites.

Example

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
prompt
string
required

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 - 2000
engine
enum<string>
default:gemini

Which AI assistant answers: gemini or chatgpt.

Available options:
gemini,
chatgpt

Response

The data, and the credits this call used.

success
any
required
data
object
required
creditsUsed
integer
required
requestId
string
required