Skip to content

LLM Providers

InfraSigns supports OpenAI and Anthropic. The provider is set in config.yaml:

llm:
  provider: openai   # openai | anthropic
  api_key: ...
  model: ...

Model recommendations

Provider Model Cost/digest Notes
OpenAI gpt-4o-mini ~$0.001 Best value, recommended default
OpenAI gpt-4o ~$0.02 Higher quality, 20x more expensive
Anthropic claude-haiku-4-5-20251001 ~$0.001 Fast, cost-efficient
Anthropic claude-sonnet-4-6 ~$0.01 Higher quality

At one digest per day: $0.03–$0.60/month per source.

OpenAI setup

  1. Create an API key at platform.openai.com/api-keys
  2. Add to config:
llm:
  provider: openai
  api_key: sk-proj-...
  model: gpt-4o-mini

Anthropic setup

  1. Create an API key at console.anthropic.com
  2. Add to config:
llm:
  provider: anthropic
  api_key: sk-ant-...
  model: claude-haiku-4-5-20251001

Switching providers

Change provider and api_key in config and restart. No other changes needed — both providers receive the same prompts and produce equivalent output quality for this use case.