OpenAI API
Use Foresight through any OpenAI-compatible client.
Minimal example
from openai import OpenAI
client = OpenAI(
api_key="your-api-key",
base_url="https://api.lightningrod.ai/v1/openai",
)
response = client.chat.completions.create(
model="foresight-v4",
messages=[
{"role": "user", "content": "Will the Fed cut interest rates in 2026?"},
],
)
message = response.choices[0].message
print(message.content)Answer formats
Research
Reasoning effort
Last updated
Was this helpful?
