Getting startedDraft
First request
Set your key and send a turn.
Draft
The KOLDOS API is in development and this specification is a draft. Field names and endpoints can still change before launch.
Store your key in an environment variable called KOLDOS_API_KEY.
export KOLDOS_API_KEY="kd_your_api_key"$env:KOLDOS_API_KEY = "kd_your_api_key"Send the request
Endpoint
The KOLDOS format: status with the mascot image, reasoning, research, tool calls and the answer.
KOLDOS runs one turn for it with the model koldos-1.
curl https://api.plodex.xyz/v1/turns \
-N \
-H "Authorization: Bearer $KOLDOS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "koldos-1",
"input": "Why does my loop never end?",
"functions": [
"text"
],
"stream": true
}'This page never sends requests or asks for a key. The API is in development, so the snippet will work once it launches.
Read the response
{
"id": "turn_example",
"model": "koldos-1",
"status": "done",
"mascot": {
"motion": "celebrate",
"gif": "https://koldos.plodex.xyz/mascot/celebrate.gif",
"gif_small": "https://koldos.plodex.xyz/mascot/celebrate-128.gif"
},
"answer": "...",
"thinking": [{ "depth": "normal", "text": "..." }],
"research": [{ "id": "r1", "question": "...", "thinking": "...", "findings": ["..."], "sources": 3 }],
"steps": [{ "tool": "read_file", "ok": true, "ms": 12 }],
"guards": [],
"sources": [{ "title": "...", "url": "https://...", "used": true }],
"usage": { "generated": 212, "credits": 8 }
}The answer is in answer, and mascot links the image for the final state. usage.credits is what the turn cost: credits are charged per use by function, not per token.