curl
Use a paid Clanker Cloud account token as the API key. The response follows the familiar choices[0].message.content shape.
curl -sS "https://clanker-auth-gw-zc0ce3o.uk.gateway.dev/v1/inference/chat/completions" \
-H "Content-Type: application/json" \
-H "X-API-Key: $CLANKER_CLOUD_API_KEY" \
-d '{
"provider": "gemini",
"model": "gemini-3.5-flash",
"messages": [
{ "role": "user", "content": "Explain this alert in one sentence." }
],
"metadata": { "source": "external-client" }
}'
Request shape
provider is optional. model is intentionally open text so new model IDs do not require a schema update.
{
"provider": "gemini",
"model": "gemini-3.5-flash",
"messages": [
{ "role": "system", "content": "Keep replies concise." },
{ "role": "user", "content": "Summarize this incident." }
],
"metadata": { "source": "external-client" }
}
Response shape
The endpoint returns an OpenAI-style non-streaming chat completion for easy client adoption.
{
"id": "llm_...",
"object": "chat.completion",
"created": 1782100000,
"model": "gemini-3.5-flash",
"choices": [
{
"index": 0,
"message": { "role": "assistant", "content": "..." },
"finish_reason": "stop"
}
]
}