PublicAI Apertus
Apertus models are called with the publicai/... canonical model id. Two models from the Apertus v1.5 family are in the public catalog:
| Model | Context | Image input | Tool calling | Input / Output (1M tokens) |
|---|---|---|---|---|
publicai/apertus-v1.5-8b |
262,144 | Yes | Yes | $0.10 / $0.20 |
publicai/apertus-v1.5-70b |
262,144 | Yes | Yes | $0.82 / $2.92 |
Both take text and image input, produce text output, support JSON mode, and offer a 262,144-token context window.
The previous-generation publicai/apertus-8b-instruct and publicai/apertus-70b-instruct models keep working. Their context window is 65,536 tokens and they do not accept image input; use the v1.5 versions for new integrations.
Chat Completions
Section titled “Chat Completions”curl "$LLMTR_BASE_URL/v1/chat/completions" \ -H "Authorization: Bearer llmtr-your_key" \ -H "Content-Type: application/json" \ -d '{ "model": "publicai/apertus-v1.5-70b", "messages": [ { "role": "user", "content": "What are the official languages of Switzerland?" } ], "max_tokens": 600 }'Retired model
Section titled “Retired model”publicai/apertus-v1.5-8b-thinking was retired on 14 November 2026; the provider no longer serves it. Requests for it are rejected with model_retired (HTTP 410). Use publicai/apertus-v1.5-8b instead: the same price, context window and image input, with tool calling and without the reasoning step.
Tool calling
Section titled “Tool calling”publicai/apertus-v1.5-8b and publicai/apertus-v1.5-70b support the OpenAI-compatible tools schema:
curl "$LLMTR_BASE_URL/v1/chat/completions" \ -H "Authorization: Bearer llmtr-your_key" \ -H "Content-Type: application/json" \ -d '{ "model": "publicai/apertus-v1.5-8b", "messages": [ { "role": "user", "content": "What is the weather in Ankara?" } ], "tools": [ { "type": "function", "function": { "name": "get_weather", "description": "Get the current weather for a city", "parameters": { "type": "object", "properties": { "city": { "type": "string" } }, "required": ["city"] } } } ] }'See Tool calling for the general tool-calling flow.
Image input
Section titled “Image input”Both v1.5 models read images. Images can only be supplied as base64 data URLs:
curl "$LLMTR_BASE_URL/v1/chat/completions" \ -H "Authorization: Bearer llmtr-your_key" \ -H "Content-Type: application/json" \ -d '{ "model": "publicai/apertus-v1.5-70b", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "What is in this image?" }, { "type": "image_url", "image_url": { "url": "data:image/png;base64,BASE64_CONTENT" } } ] } ], "max_tokens": 400 }'Remote https:// image URLs are not supported and are rejected with 400 unsupported_input. Download the image and send it base64-encoded. Image tokens are reported inside usage.prompt_tokens and billed at the normal input token price; there is no separate image charge.
See Images for the general image flow.
JSON mode
Section titled “JSON mode”Both models produce JSON output with response_format:
curl "$LLMTR_BASE_URL/v1/chat/completions" \ -H "Authorization: Bearer llmtr-your_key" \ -H "Content-Type: application/json" \ -d '{ "model": "publicai/apertus-v1.5-8b", "messages": [ { "role": "user", "content": "Return JSON with the city name and country for Ankara." } ], "response_format": { "type": "json_object" }, "max_tokens": 200 }'Prompt cache
Section titled “Prompt cache”Apertus models have no prompt cache. Responses do not include a usage.prompt_tokens_details field and all input tokens are billed at the normal price.
Data policy
Section titled “Data policy”Requests are processed on PublicAI / Swiss AI infrastructure. These are not Turkey-hosted LLMTR models. Take that into account for production flows that carry sensitive data.