ai
Generate
Generate endpoint that auto-classifies intent and creates resources.
This endpoint:
- Validates the prompt using guardrails
- Classifies intent (if mode is 'auto') - insight, dashboard, or data_model
- Creates the appropriate resource
- Returns a redirect URL or helpful message
Mode options:
- 'auto': Let AI classify the request type (default)
- 'insight': Force creation of a single insight
- 'dashboard': Force creation of a dashboard with multiple insights
- 'data_model': Force creation of a data model (data transformation)
Returns:
- For successful creation: { action: 'redirect', url: '/insights/{id}', resource_type: 'insight' }
- For rejected/other requests: { action: 'message', message: 'Helpful explanation...' }
post/ai/generate
Request
- Base URL: https://api.pandas-ai.com (the document declares no server; this is the origin it was published from)
- URL: https://api.pandas-ai.com/ai/generate
- Auth: none declared
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.