Integrations
DeepInfra
Route CortexDB's answer and extraction LLM calls through DeepInfra's OpenAI-compatible API.
DeepInfra exposes an OpenAI-compatible API, so CortexDB's LLM routers point straight at it.
Set both the extraction and answer lanes
CORTEX_LLM_* is the entity-extraction lane; /v1/answer uses the separate CORTEX_ANSWER_*
lane (default anthropic/claude-opus-4-6). Set both. See
Self-hosting defaults.
Deployment configuration
# Extraction lane
CORTEX_LLM_URL=https://api.deepinfra.com/v1/openai
CORTEX_LLM_MODEL=meta-llama/Meta-Llama-3.1-70B-Instruct
CORTEX_LLM_API_KEY=$DEEPINFRA_API_KEY
# Answer lane (OpenAI-compatible)
CORTEX_ANSWER_PROVIDER=openai
CORTEX_ANSWER_URL=https://api.deepinfra.com/v1/openai
CORTEX_ANSWER_MODEL=meta-llama/Meta-Llama-3.1-70B-Instruct
CORTEX_ANSWER_API_KEY=$DEEPINFRA_API_KEYDeepInfra also serves embedding models; otherwise keep CORTEX_EMBEDDING_* on OpenAI or Ollama. See
Embeddings.
Per-request override
client.answer(scope="org:acme/user:alice", question="…",
answer_model="openai/meta-llama/Meta-Llama-3.1-70B-Instruct")