curl --request POST \
--url https://www.neode.ai/api/triples/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"query": "Extract facts about Tesla's Q4 2025 earnings",
"index_id": "550e8400-e29b-41d4-a716-446655440000",
"triple_count": 10
}
EOF{
"success": true,
"data": [
{
"subject": "<string>",
"predicate": "<string>",
"object": "<string>",
"object_type": "literal",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"confidence": 0.5,
"source": "<string>",
"graph_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"index_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subject_entity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"object_entity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z"
}
],
"count": 123,
"graph_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"provider": "<string>",
"credits_used": 123,
"balance_remaining": 123,
"auto_topup_triggered": true
}{
"success": false,
"error": "<string>",
"details": "<string>"
}{
"success": false,
"error": "<string>",
"balance_cents": 123,
"required_cents": 123,
"buy_credits_url": "<string>"
}{
"success": false,
"error": "<string>",
"details": "<string>"
}Generation
Generate triples
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.
POST
/
api
/
triples
/
generate
curl --request POST \
--url https://www.neode.ai/api/triples/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"query": "Extract facts about Tesla's Q4 2025 earnings",
"index_id": "550e8400-e29b-41d4-a716-446655440000",
"triple_count": 10
}
EOF{
"success": true,
"data": [
{
"subject": "<string>",
"predicate": "<string>",
"object": "<string>",
"object_type": "literal",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"confidence": 0.5,
"source": "<string>",
"graph_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"index_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subject_entity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"object_entity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z"
}
],
"count": 123,
"graph_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"provider": "<string>",
"credits_used": 123,
"balance_remaining": 123,
"auto_topup_triggered": true
}{
"success": false,
"error": "<string>",
"details": "<string>"
}{
"success": false,
"error": "<string>",
"balance_cents": 123,
"required_cents": 123,
"buy_credits_url": "<string>"
}{
"success": false,
"error": "<string>",
"details": "<string>"
}Query Parameters
Body
application/json
Request to generate triples using AI (OpenAI)
Response
Generated triples (streaming or JSON based on format parameter)
Response from generating triples with AI