API
Ciocu speaks the OpenAI wire format, so most tools work by changing the base URL and the key. Create a key in the app under API & MCP.
Base URL
https://ciocu.app/v1
Authenticate with Authorization: Bearer ciocu_sk_…. The model id is ciocu — there is only one.
Chat
curl https://ciocu.app/v1/chat/completions -H "Authorization: Bearer $CIOCU_KEY" -H "Content-Type: application/json" -d '{
"model": "ciocu",
"messages": [{"role": "user", "content": "I keep putting off a hard conversation."}]
}'With the OpenAI SDK:
const client = new OpenAI({
apiKey: process.env.CIOCU_KEY,
baseURL: "https://ciocu.app/v1",
});
const res = await client.chat.completions.create({
model: "ciocu",
messages: [{ role: "user", content: "Why do people avoid hard conversations?" }],
});stream: true works and returns standard SSE chunks. Prior turns in messages are used as history.
What a key can reach
The base model, her system prompt, and the curated knowledge index — and nothing else. Your own conversations and memories in the app are not reachable through a key, on either surface. Whatever you send in messages is the only history she sees.
She is the model
A system message is ignored, and so is temperature. Her persona, her voice and her knowledge are the product — an endpoint that let you replace them would just be a generic model wearing her name. If you need a blank model, use one.
MCP
The same key works as an MCP server at https://ciocu.app/api/mcp, exposing one tool: talk_to_ciocu.
{
"mcpServers": {
"ciocu": {
"type": "http",
"url": "https://ciocu.app/api/mcp",
"headers": { "Authorization": "Bearer ciocu_sk_..." }
}
}
}Energy
API calls draw on the same Energy balance as the app — one pool, not two. Each reply costs about 0.2 credits. Every response carries X-Ciocu-Energy-Remaining, and /v1/models is free to call.
Errors
Standard OpenAI error envelopes. 401 the key is wrong or revoked, 403 the plan doesn't include API access, 402the month's energy is spent.