Quickstart
cortexa.curl https://api.cortexa.sh/v1/chat/completions \
-H "Authorization: Bearer $CORTEXA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "cortexa",
"messages": [
{
"role": "user",
"content": "Summarize the evidence for GLP-1 agonists in neuroinflammation. Cite sources."
}
]
}'from openai import OpenAI
client = OpenAI(
api_key="sk-cortexa-live-...",
base_url="https://api.cortexa.sh/v1",
)
response = client.chat.completions.create(
model="cortexa",
messages=[
{
"role": "user",
"content": "Find recent clinical evidence for tau PET as an Alzheimer's endpoint.",
}
],
)
print(response.choices[0].message.content)Endpoint reference
/v1/chat/completionsOpenAI-compatible chat completion endpoint. Best for existing SDKs and server-side integrations.
/v1/agents/cortexa/runsNative streaming endpoint for text deltas, tool events, citations, and rich data cards.
/v1/runs/{id}Fetch the completed messages, tool invocations, and stream of an earlier run by ID.
/v1/modelsList available Cortexa models. Returns a single entry today; included for OpenAI client compatibility.
/v1/toolsInspect the verified tools the agent can route to per request.
/v1/sourcesBrowse the curated data source catalog the agent can reach.
/mcpMCP endpoint for clients that support streamable HTTP. Desktop stdio clients use the npm adapter.
Native streaming
curl https://api.cortexa.sh/v1/agents/cortexa/runs \
-H "Authorization: Bearer $CORTEXA_API_KEY" \
-H "Content-Type: application/json" \
-N \
-d '{
"input": "Compare evidence for two candidate targets and cite primary sources."
}'2.1K+ verified tools behind one model
Authentication
Authorization: Bearer sk-cortexa-live-.... Create and revoke keys from the API Keys dashboard.