Forge is an OpenAI-compatible routing gateway. Point your SDK at us and stream from GPT-5.6, Claude Opus, Grok, DeepSeek, Kimi and 20+ more — with automatic key pooling and millisecond failover.
Change two lines. Keep your streaming, tool-calls, JSON mode. Every request is observable in the Forge dashboard and billed against a single balance.
from openai import OpenAI
client = OpenAI(
api_key="fg-demotoken1234567890",
base_url="https://forge-gateway-api.fly.dev/v1",
)
response = client.chat.completions.create(
model="deepseek-r1",
messages=[{"role": "user", "content": "Explain load balancing."}],
stream=True,
)
for chunk in response:
print(chunk.choices[0].delta.content, end="")