2-Minute Setup
Quickstart Guide
Fobign API is 100% wire-compatible with standard OpenAI and Anthropic SDKs. You only need to switch your base_url to point to Fobign.
1. Obtain Your Secret API Key
Sign in to the Developer Console to generate a standard Bearer API Key (sk-fobign-72b8d04a6e92f15c...).
2. Run Your First Inference Request
from openai import OpenAI
# Initialize client pointing to Fobign API Gateway
client = OpenAI(
api_key="sk-fobign-72b8d04a6e92f15c3e7a1b8d2c4e9f0a5b6c7d8e9f0a1b2c",
base_url="https://api.fobign.com/v1"
)
response = client.chat.completions.create(
model="deepseek-chat",
messages=[
{"role": "system", "content": "You are a concise engineering assistant."},
{"role": "user", "content": "What is Fobign?"}
],
temperature=0.7,
stream=True
)
for chunk in response:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)