Skip to content
Documentation menu

Examples and SDKsDraft

Examples

Build a request and copy it in curl, JavaScript or Python.

Draft

The KOLDOS API is in development and this specification is a draft. Field names and endpoints can still change before launch.

Every example reads the key from the KOLDOS_API_KEY environment variable. Adjust the parameters and copy 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.

Generated request · draft format
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.

List the models your key can use

GET/v1/modelsReturns the models your API key can call, with their current status.
Example request
curl https://api.plodex.xyz/v1/models \
  -H "Authorization: Bearer $KOLDOS_API_KEY"
Response shape
{
  "object": "list",
  "data": [
    {
      "id": "koldos-1",
      "object": "model",
      "status": "development"
    }
  ]
}