TekkscopeTekkscope
    QuickstartAuthenticationPricing
POSTSearchPOSTTekPOSTLensPOSTDeepLensPOSTReportLens
Docs

Tek API

Tek is our advanced reasoning model. It uses a graph-based agentic approach to "think" before answering, allowing it to perform research, verification, and complex multi-step reasoning.

Chat Completion

Generate a reasoned response. The model may take longer to respond as it formulates its thoughts.

POST/tek/chat-completion

Request Body

payload.json
1{ 2 "query": "string" 3}

Example Request

curl.sh
1curl -X POST "https://api.tekkscope.com/tek/chat-completion" \ 2 -H "Authorization: Bearer YOUR_API_KEY" \ 3 -H "Content-Type: application/json" \ 4 -d '{ 5 "query": "Explain the concept of entropy" 6 }'

Response

response.json
1{ 2 "response": "Entropy is a measure of disorder..." 3}

Stream Thinking & Response

Stream the model's thought process (thinking events) followed by the final response. This provides visibility into the agent's actions.

GET/tek/chat-completion/stream

Query Parameters

  • query (string) - Required

Example Request

stream.js
1const eventSource = new EventSource( 2 "https://api.tekkscope.com/tek/chat-completion/stream?query=complex+question&token=YOUR_API_KEY" 3); 4 5eventSource.onmessage = (event) => { 6 const data = JSON.parse(event.data); 7 8 if (data.type === "thinking") { 9 // Shows the model's internal reasoning phase 10 console.log("Thinking:", data.content); 11 } else if (data.type === "response") { 12 // The actual answer content 13 console.log("Response:", data.content); 14 } 15};