Quickstart
Forecasting API quickstart.
Your first prediction
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 any company operate a commercial AI data center in space before January 1, 2028?"},
],
)
print(response.choices[0].message.content)Available Models
Model
Model ID
Description
Structured Prediction
Prediction Context
Custom Models
Next steps
Last updated
Was this helpful?
