Quickstart
Send a first request in three steps. Prefer a UI? Use the Playground.
1. Get an API key
Section titled “1. Get an API key”Create a free trial key in the API Key Portal. A trial key unlocks all models, including Premium models. For a production plan, contact us.
2. Set two environment variables
Section titled “2. Set two environment variables”export OPENAI_API_KEY ="your_api_key_here" export OPENAI_BASE_URL ="https://llm-server.llmhub.t-systems.net/v2" $env:OPENAI_API_KEY = "your_api_key_here" $env:OPENAI_BASE_URL = "https://llm-server.llmhub.t-systems.net/v2" setx OPENAI_API_KEY "your_api_key_here" setx OPENAI_BASE_URL "https://llm-server.llmhub.t-systems.net/v2" 3. Send a request
Section titled “3. Send a request”curl -X POST "$OPENAI_BASE_URL /chat/completions" \ -H "Authorization: Bearer $OPENAI_API_KEY " \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-oss-120b", "messages": [{"role": "user", "content": "Hello from AIFS"}] }' # pip install openaifrom openai import OpenAI
client = OpenAI() response = client.chat.completions.create( model="gpt-oss-120b" , messages=[{ "role": "user", "content": "Hello from AIFS"}],)print(response.choices[ 0].message.content) // npm install openaiimport OpenAI from "openai";
const client = new OpenAI(); const response = await client.chat.completions. create ({ model: "gpt-oss-120b" , messages: [{ role: "user", content: "Hello from AIFS" }],});console.log (response.choices[ 0].message.content);