On this page:
- What Aretu CAD needs
- Enter the connection
- Connect Claude
- Switch between connections
- Choose a service
- Run a model on your own computer
- If the connection fails
- Costs and data
Aretu CAD drives the AI itself: it sends your request, the workspace state and its modelling tools to a language model, then checks and carries out each step the model asks for. You choose which model it talks to. Modelling never depends on a connection; every AI step is also available by hand.
What Aretu CAD needs
Aretu CAD connects to any service or local server that offers an OpenAI-compatible Chat Completions endpoint or an Anthropic Messages API endpoint, either with tool calling (also called function calling). Many companies and open-source servers provide one.
| Need | Why |
|---|---|
| A Chat Completions or Messages URL | Aretu CAD posts each request to the exact URL you enter. |
| Tool calling | The model acts only by calling Aretu CAD's modelling tools. A model without tool calling can reply in text but cannot change the model. |
| A model that follows tools well | Modelling takes many dependent steps. Larger, recent models plan and recover better; small local models may stop early or repeat inspections. |
| Image input (optional) | Needed for workspace renders and for attaching sketches or photos. Text-only models still work with images turned off. |
| PDF input (optional) | Needed only to attach PDF documents. Not every compatible service accepts them. |
Official OpenAI endpoints are treated specially: Aretu CAD uses OpenAI's Responses API for them, with the Reasoning setting, and sends images automatically. Every other OpenAI-compatible endpoint receives standard Chat Completions requests. The Anthropic-compatible provider sends Messages API requests, which let the service reuse the unchanged start of each request from its prompt cache.
Enter the connection
- Open Zen over empty workspace and choose Settings > AI. The AI Configuration panel opens.
- Set AI submission to On and Provider to OpenAI-compatible,
or to Anthropic-compatible for a Messages API service such as Claude
(see Connect Claude). Diagnostics is the offline
built-in provider; it answers only a few fixed commands such as
help. - Enter the Endpoint: the full URL, including the path that ends in
/chat/completions, or/messagesfor Anthropic-compatible. A base URL such ashttps://api.example.com/v1alone is not enough. Changing the provider changes one path to the other on the same host. - Enter the Model identifier exactly as the service lists it.
- Enter the API key if the service needs one. Leave it unset for most local servers.
- Set Image input: Automatic sends images only to OpenAI's and Anthropic's own endpoints, so choose On for another service whose model accepts images and Off for a text-only model.
- Leave Reasoning and Temperature at Automatic and Provider default unless you have a reason to change them; the table below says when.
- Choose Save. The connection reloads at once and the Workspace Console header shows the connected model.
| Setting | Choices | When to change it |
|---|---|---|
| Reasoning | Automatic, Off, Low, Medium, High | Automatic is Low on OpenAI and lets other services decide. Medium or High can help with complex geometry but take longer. Off can stop a local model from thinking at length before each step. A model that has no reasoning, or cannot turn it off, may reject a value. |
| Temperature | Provider default, 0, 0.1, 0.2, 0.5, 0.7, 1 | Lower values make the model's choices more predictable. Try 0 to 0.2 for a small local model that makes mistakes in tool calls. Keep Provider default for hosted services: some reject values below 1. OpenAI's official endpoint and the Anthropic-compatible provider never receive one; for Anthropic-compatible the row shows Not used. |
The key is never written to the settings file. Aretu CAD stores it in your
Windows user environment and reads it for each request; it sends it as an
Authorization: Bearer header, or as an x-api-key header for
Anthropic-compatible. Each service's host has its own variable, so a
key you enter for one provider is never sent to another. To replace a key, type
a new one; to remove it, delete it and Save.
Send a short request such as “Inspect the workspace and describe it” to check the connection before asking for modelling work. The rows below the connection, such as Step delay and Workspace renders, are described in Work with the AI assistant.
Connect Claude
Claude is reached through Anthropic's own Messages API with the Anthropic-compatible provider. This lets Anthropic reuse the instructions, tool definitions and earlier steps of each request from its prompt cache, which costs a fraction of the normal input price.
- In the Claude Console, create an API key in a workspace. A spend limit on the workspace is a good safeguard.
- In AI Configuration, set Provider to Anthropic-compatible. The
Endpoint fills in as
https://api.anthropic.com/v1/messages. - Enter the Model, such as
claude-opus-5-5, orclaude-sonnet-5-5for lower cost. Use a current model: older ones, such as Claude Haiku 4.5, reject the adaptive thinking Aretu CAD asks for. - Paste the key into API key. It is kept in the user environment variable
ARETUCAD_LLM_API_KEY_API_ANTHROPIC_COM. - Leave Image input and Reasoning at Automatic. Reasoning Off asks for the least reasoning, because current Claude models always reason.
- Choose Save and send a short request to check the connection.
At Medium or High reasoning, Claude can think for several minutes before a step. Aretu CAD streams each reply, so the connection stays active while it thinks, and waits up to 10 minutes for an Anthropic-compatible reply rather than the 2 minutes it allows other services.
To see the cache at work, turn on Interaction log: from the second request
of an instruction, each response's usage shows most of the input as
cache_read_input_tokens. Aretu CAD keeps Claude's cache entries for an hour,
so they last through long steps; writing an entry costs twice the normal input
price and reading it a small fraction.
Do not set ANTHROPIC_API_KEY in your Windows environment for Aretu CAD: it
does not read that variable, and other tools, such as Claude Code, would then
charge their use to the key.
Switch between connections
Each time you save an OpenAI-compatible or Anthropic-compatible connection, Aretu CAD remembers its provider, endpoint, model, API key, image input, reasoning and temperature. The eight most recent are kept.
- Open AI Configuration, set the Provider and choose the arrow on the Connection row. It lists only the connections saved with that provider.
- Choose a connection, shown as its model and host, for example
model-name · api.example.com. Selecting the row itself steps to the next one. - Choose Save.
Entering a new endpoint or model starts a new connection, shown as New, which is remembered when you save it. Saving a remembered connection again moves it to the top of the list.
Choose a service
These services publish an OpenAI-compatible Chat Completions endpoint with tool calling; Anthropic also offers its own Messages API. OpenAI has been used throughout Aretu CAD's development; the others are listed from their providers' documentation (checked 23 October 2026) and have not all been tested with Aretu CAD. Model names change often, so take the identifier from the service's own model list.
| Service | Endpoint | API key | Notes |
|---|---|---|---|
| OpenAI | https://api.openai.com/v1/chat/completions |
OpenAI platform | Aretu CAD switches this URL to the Responses API, uses the Reasoning setting and sends images automatically. Accepts PDF attachments. |
| Anthropic (Claude) | https://api.anthropic.com/v1/messages with Anthropic-compatible |
Claude Console | Prompt caching, images and PDF attachments; see Connect Claude. Its OpenAI-compatible endpoint, https://api.anthropic.com/v1/chat/completions, also works with OpenAI-compatible, but has no prompt caching and ignores PDFs; Anthropic intends it for testing and comparison. |
| Google Gemini | https://generativelanguage.googleapis.com/v1beta/openai/chat/completions |
Google AI Studio | Accepts images. Keep Reasoning at Automatic for newer models, which cannot switch reasoning off. Google describes its OpenAI compatibility as beta. |
| Mistral AI | https://api.mistral.ai/v1/chat/completions |
Mistral console | Accepts images; PDF attachments are not accepted in this form. |
| Groq | https://api.groq.com/openai/v1/chat/completions |
GroqCloud console | All models support tools; only some accept images, so leave Image input off unless the model does. |
| xAI (Grok) | https://api.x.ai/v1/chat/completions |
xAI console | Accepts JPEG and PNG images. xAI recommends its newer Responses API for new work, but Chat Completions remains available. |
| DeepSeek | https://api.deepseek.com/chat/completions |
DeepSeek platform | No /v1 in the path. |
| OpenRouter | https://openrouter.ai/api/v1/chat/completions |
OpenRouter account | One key reaches models from many companies. Use a model listed with tool support. Accepts PDF attachments, which it may charge to process. |
| Together AI | https://api.together.ai/v1/chat/completions |
Together account | Use a model listed with function calling. Does not accept PDF attachments. |
| Azure OpenAI | https://<resource>.openai.azure.com/openai/v1/chat/completions |
Azure portal | Use the newer v1 URL and enter your deployment name as the Model. Older deployments/…?api-version= URLs need an api-key header and cannot be used with a key. |
Known limitations:
- Anthropic keys: a personal or service-account key that is not scoped to a workspace needs an extra header Aretu CAD does not send. Use a key created in a workspace.
- Other Messages services: Anthropic-compatible requests to a service other than Anthropic's own carry cache markers but no Anthropic thinking settings. Choose Image input On only if the model accepts images.
- Azure reasoning models: deployments of OpenAI reasoning models may reject
the
max_tokensfield Aretu CAD sends, which most other services require. - PDF attachments use OpenAI's
filecontent part. Services other than OpenAI and OpenRouter may reject or silently drop them; describe the document in text instead.
Run a model on your own computer
A local server keeps prompts and models on your machine and usually needs no key. Start the server and load a model with tool support before choosing Save.
| Server | Typical endpoint | Notes |
|---|---|---|
| Ollama | http://localhost:11434/v1/chat/completions |
Pull a model tagged tools in the Ollama library. Any key is ignored. |
| LM Studio | http://localhost:1234/v1/chat/completions |
Start its local server. Models with native tool use work best; others are prompted into tool use with varying results. If you turn on its authentication, enter its token as the API key. |
llama.cpp llama-server |
The address the server prints at startup, followed by /v1/chat/completions |
Tool calling needs the chat-template support of --jinja, on by default in current builds; some models also need --chat-template-file. Images need a multimodal model. |
| vLLM | http://localhost:8000/v1/chat/completions |
Start it with --enable-auto-tool-choice and a --tool-call-parser that matches the model, such as hermes, llama3_json, mistral or qwen3_xml. |
On another computer on your network, replace localhost with that computer's
name or address and allow the port through its firewall. For these servers set
Image input to On only when the loaded model accepts images. A small
model is often more reliable with Temperature at 0 to 0.2, and a model
that thinks at length before each step may be quicker with Reasoning Off,
if the server supports it.
If the connection fails
The Workspace Console reports the failure, and Event Log lists it with its code.
| Symptom | Likely cause and fix |
|---|---|
| HTTP 401 or 403 | The key is missing, wrong or lacks access to the model. Re-enter it and Save. A service that needs a different authentication header cannot be used directly. |
| HTTP 404 | The endpoint path is incomplete, or the model identifier is wrong. Enter the full /chat/completions URL and the exact model name. |
| HTTP 400 or 422 | The service rejected part of the request: often a Reasoning or Temperature value the model does not support, an image or PDF it cannot read, or tools. Return Reasoning and Temperature to Automatic and Provider default, turn Image input off, remove attachments, or choose a model with tool calling. |
| HTTP 429 | The service's rate limit. Aretu CAD waits and retries up to twice when the service gives a short delay; otherwise wait or raise your plan's limit. |
| Request failed (WinHTTP error) | The server is not running or not reachable at that address. Check the URL, port and network. |
| Request failed (WinHTTP 12002) | The service took longer than the timeout to answer: 10 minutes for Anthropic-compatible, 2 minutes for other services. A slow local model may need longer: with Aretu CAD closed, raise timeoutMilliseconds on the <ai> element of %LOCALAPPDATA%\AretuCAD\settings.xml, up to 600000. Lower Reasoning also shortens each step. |
| The reply is text only and nothing changes | The model did not call tools. Choose a model with tool calling or, for a local server, enable its tool-call support. |
| The AI stops early or repeats itself | The model is struggling with the task. Try a larger model or split the request into smaller steps. |
To see exactly what was sent and received, turn on Interaction log in AI Configuration. It records prompts, replies and requests to a file; API keys are never recorded.
Costs and data
A hosted service charges under its own terms, and its data policy applies to what Aretu CAD sends. Through the Anthropic-compatible provider, Anthropic charges cached input at a fraction of the normal price, so long instructions cost much less than through its OpenAI-compatible endpoint. Aretu CAD sends: your prompts and attached files, the compact workspace state, tool results and, when image input is on, renders of the 3D viewport. Aretu CAD does not send native file paths or your API key in that content. A model on your own computer keeps everything on your machine but needs suitable hardware, particularly graphics memory, to run a capable model at a usable speed.