Use OpenAI to extract knowledge triples from natural language. Supports web search for real-time information. Streams responses by default, use format=json for non-streaming.
API key for authentication
Response format. 'json' returns a standard JSON response (default, recommended for SDKs). 'stream' returns a Vercel AI SDK data stream for chat UIs.
json, stream Request to generate triples using AI (OpenAI)
Natural language description of what to extract triples about
Index for entity disambiguation (required)
Graph to store generated triples in
Enable web search for real-time information
Target number of triples to generate (approximate)
1 <= x <= 50Restrict to specific predicate types
Constrain all generated triples to use this exact subject
Custom rules or instructions for the AI generation
Enable news-specific search for recent events
Auto-create a graph for generated triples when no graph_id is provided. When true (default) and no graph_id is given, a new graph is created and all generated triples are associated with it.
Generated triples (streaming or JSON based on format parameter)
Response from generating triples with AI
Graph ID the triples were stored in (auto-created or provided)
AI provider used (openai)
Credits deducted for generation
Remaining credit balance
Whether auto top-up was triggered after this generation