Wizard API
Integrate AI chat in your product.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
Payload for the JSON-mode knowledge ask endpoint.
Attributes
question: str The user's question to answer. search_mode: Literal["deep", "fast", "ultrafast"] Retrieval depth preset. Controls number of documents fetched.
questionstringRequired
User question
search_modestring · enumOptionalDefault:
Retrieval depth preset
fastPossible values: Responses
200
Successful Response
application/json
Response model for JSON-mode knowledge ask.
Attributes
answer: str Final answer text. Markdown is allowed. sources: list[str] Deduplicated list of source URLs used for the answer. sentiment: int Domain-agnostic sentiment on a 1–10 scale (1 very negative, 10 very positive).
answerstringRequired
sourcesstring[]Required
sentimentinteger · min: 1 · max: 10Required
422
Validation Error
application/json
post
/knowledge/askChat API Costs
API Usage ExamplesLast updated