Skip to content
Get API key API key

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).

MethodEndpointDescription
GET/modelsList all available models
GET/models/{model_id}Get model details and metadata. Not available on this host at the moment: returns 405; use GET /models
POST/chat/completionsCreate a chat completion
POST/completionsCreate a text completion. Not available on this host at the moment: returns 404; use /chat/completions
POST/embeddingsCreate embeddings
POST/rerankRerank documents by relevance to a query (guide)
POST/audio/transcriptionsTranscribe audio to text
POST/audio/translationsTranslate audio to English
GET/audio/modelsList available audio models. At the moment it returns every model, not only the audio models
POST/images/generationsGenerate images from text
POST/images/editsEdit an image. The queued-requests section documents this path.
POST/responsesCreate a response (Responses API)
POST/decisionsTyped decision. See Decisions.
POST/filesUpload a file
GET/filesList uploaded files
DELETE/files/{id}Delete a file

Paths above are relative to https://llm-server.llmhub.t-systems.net/v2, so the chat route is /v2/chat/completions.

POST /responses supports only these request features:

  • input as a string, or as a list of message, function_call and function_call_output items
  • additional_tools input items with role: "developer", as recent versions of OpenAI Codex send them
  • Function tools in the top-level tools field, including tools grouped in a namespace
  • instructions, max_output_tokens, reasoning.effort and tool_choice
  • Streaming with stream: true
  • JSON Schema output with text.format, see Structured outputs

Other input item types, tool types and parameters are not supported. Not every model supports the Responses API: see Function calling.

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.

MethodEndpointDescription
POST/queue/chat/completionsChat completion (queued)
POST/queue/completionsText completion (queued)
POST/queue/embeddingsEmbeddings (queued)
POST/queue/audio/transcriptionsAudio transcription (queued)
POST/queue/audio/translationsAudio translation (queued)
POST/queue/images/generationsImage generation (queued)
POST/queue/images/editsImage editing (queued)
GET/queue/modelsList models (queue)

All paths are on https://llm-server.llmhub.t-systems.net. Standard calls use /v2/...:

PathUsed for
/v2Chat, completions, responses, embeddings, audio, images, decisions, files, models
/v2/codingCline, Continue, and OpenCode
/queueQueue variants such as /queue/chat/completions and /queue/images/edits

The Migrate to the new API page describes the upcoming move to the New API.

All requests require an API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

See Authentication for setup details.

All POST requests use JSON:

Terminal
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"}]}'

Responses follow the OpenAI response format. For chat completions:

JSON
{
"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
}
}