Endpoints¶
| Request | What it does |
|---|---|
GET /v1/models |
The models you can use |
POST /v1/chat/completions |
Chat, OpenAI format. Streams with "stream": true |
POST /v1/messages |
Chat, Anthropic Messages format |
POST /v1/systemone |
Clef Flash: answers about a text, with probabilities (preview) |
Chat¶
curl https://api.ethux.net/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3.8-27b",
"messages": [{"role": "user", "content": "Hello"}],
"stream": true
}'
Zero data retention¶
By default, recent prompts are kept in memory for up to an hour, so a request that repeats an
earlier prompt (the next turn of a chat, an agent re-sending its context) starts in a fraction of
a second. This cache is separate per customer, so cache_salt, extra_key and
prompt_cache_key are ignored. Responses API conversations are kept the same way, separate per
customer and gone an hour after last use, so you can continue them with previous_response_id;
send "store": false and the conversation is not kept.
With zero data retention, prompts and answers exist only while the request runs. Nothing is
cached, stored or logged. Add "zero_data_retention": true to a request:
curl https://api.ethux.net/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3.8-27b",
"messages": [{"role": "user", "content": "Hello"}],
"zero_data_retention": true
}'
For a key whose every request works this way, tick Zero data retention when you create it in the console. Either way:
- nothing can be reused, so every request is processed in full: on a long chat each turn takes as long as the first;
- input is billed at the zero-data-retention rate (see Models and prices);
- it works with chat, Responses and Anthropic Messages on the chat models; Responses
background mode needs a stored response, so it is refused with
400, and a request for another model is refused with403. inkling-2-minidoes not offer it yet, and neither may a chat model in preview: a zero-data-retention request to one, and every request to one from a zero-data-retention key, is refused with403.
Every response says which mode applied, in the header x-ethux-cache-mode: standard or
zero-data-retention.
Anthropic clients¶
Set the client's base URL to the API host without /v1; the client adds /v1/messages
itself. Use your API key as the client's API key.
Embeddings¶
Two embedding models, OpenAI format on POST /v1/embeddings. Name the model in every request:
a request without one is refused.
| Model | Dimensions | Context |
|---|---|---|
qwen3-embeddings |
1024 | 32K |
embeddinggemma-2 |
768 | 8K |
curl https://api.ethux.net/v1/embeddings \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "embeddinggemma-2", "input": "task: search result | query: how do I reset my password"}'
embeddinggemma-2 expects a task prefix on every input, and its vectors are worse without one:
- a query:
task: search result | query: <the query> - a document:
title: <the title, or none> | text: <the document>