API endpoints
AI Foundation Services provides an OpenAI-compatible REST API. All endpoints use the base URL:
https://llm-server.llmhub.t-systems.net/v2 For the complete OpenAPI specification, see the interactive API docs (Redoc).
Endpoints
Section titled “Endpoints”| Method | Endpoint | Description |
|---|---|---|
GET | /models | List all available models |
GET | /models/ | Get model details and metadata. Not available on this host at the moment: returns 405; use GET /models |
POST | /chat/ | Create a chat completion |
POST | /completions | Create a text completion. Not available on this host at the moment: returns 404; use /chat/ |
POST | /embeddings | Create embeddings |
POST | /rerank | Rerank documents by relevance to a query (guide) |
POST | /audio/ | Transcribe audio to text |
POST | /audio/ | Translate audio to English |
GET | /audio/ | List available audio models. At the moment it returns every model, not only the audio models |
POST | /images/ | Generate images from text |
POST | /images/ | Edit an image. The queued-requests section documents this path. |
POST | /responses | Create a response (Responses API) |
POST | /decisions | Typed decision. See Decisions. |
POST | /files | Upload a file |
GET | /files | List uploaded files |
DELETE | /files/ | Delete a file |
Paths above are relative to https://llm-server.llmhub.t-systems.net/v2, so the chat route is /v2/.
Responses API support
Section titled “Responses API support”POST /responses supports only these request features:
inputas a string, or as a list ofmessage,function_andcall function_itemscall_ output additional_input items withtools role: "developer", as recent versions of OpenAI Codex send them- Function tools in the top-level
toolsfield, including tools grouped in anamespace instructions,max_,output_ tokens reasoning.andeffort tool_choice - Streaming with
stream: true - JSON Schema output with
text., see Structured outputsformat
Other input item types, tool types and parameters are not supported. Not every model supports the Responses API: see Function calling.
Queue endpoints
Section titled “Queue endpoints”Queue endpoints are on the same host, https://llm-server.llmhub.t-systems.net, under /queue instead of /v2. They wait up to two minutes when you are over your rate limit instead of returning 429 immediately. See Queued requests.
| Method | Endpoint | Description |
|---|---|---|
POST | /queue/ | Chat completion (queued) |
POST | /queue/ | Text completion (queued) |
POST | /queue/ | Embeddings (queued) |
POST | /queue/ | Audio transcription (queued) |
POST | /queue/ | Audio translation (queued) |
POST | /queue/ | Image generation (queued) |
POST | /queue/ | Image editing (queued) |
GET | /queue/ | List models (queue) |
All paths are on https://llm-server.llmhub.t-systems.net. Standard calls use /v2/:
| Path | Used for |
|---|---|
/v2 | Chat, completions, responses, embeddings, audio, images, decisions, files, models |
/v2/ | Cline, Continue, and OpenCode |
/queue | Queue variants such as /queue/ and /queue/ |
The Migrate to the new API page describes the upcoming move to the New API.
Authentication
Section titled “Authentication”All requests require an API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY See Authentication for setup details.
Request format
Section titled “Request format”All POST requests use JSON:
curl -X POST "https://llm-server.llmhub.t-systems.net/v2/chat/completions" \ -H "Authorization: Bearer $OPENAI_API_KEY " \ -H "Content-Type: application/json" \ -d '{"model": "gpt-oss-120b", "messages": [{"role": "user", "content": "Hello"}]}' Response format
Section titled “Response format”Responses follow the OpenAI response format. For chat completions:
{ "id": "chatcmpl-abc123" , "object": "chat.completion" , "created": 1710000000, "model": "gpt-oss-120b" , "choices": [ { "index": 0, "message": { "role": "assistant", "content": "Hello! How can I help you today?" }, "finish_reason" : "stop" } ], "usage": { "prompt_tokens" : 10, "completion_tokens" : 9, "total_tokens" : 19 }}Next steps
Section titled “Next steps”- Chat completions for the request this page returns.
- Error codes when the call fails.
- Authentication for the bearer token.