If you already have a coding-agent controller, the immediate CometAPI decision is how to connect its model call. CometAPI’s Grok Build 0.1 guide documents a specific starting point: send grok-build-0.1 to /v1/chat/completions with a messages array. That is a narrower claim than saying the example runs an entire coding agent.
The distinction matters because Grok Build is also the name of a terminal coding-agent product. The API model can be called from another controller, but the controller still owns repository access, edits, tool execution, test runs, and recovery from failures. A successful model response would establish only that the request was accepted and answered; it would not establish that a patch was applied or validated.
For a first connection check, the guide’s request shape is:
curl "https://api.cometapi.com/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $COMETAPI_KEY" \
-d '{
"model": "grok-build-0.1",
"messages": [{"role": "user", "content": "Find the bug in this repository and propose a minimal fix."}]
}'
Pin that current model ID in the controller configuration rather than relying on the older grok-code-fast-1 slug. The guide notes inconsistent descriptions of how that retired alias redirects, so an implicit alias makes it harder to know which model an evaluation actually exercised.
Then evaluate the controller plus model on a representative repository task. Keep a record of the input context and model response, the files the controller inspected, the proposed versus applied diff, each tool call, test results, and any recovery attempt. Compare completed-task success and human correction time alongside token use and latency. Those are evaluation steps to perform, not results reported by the CometAPI example.
The published example has one user message. It does not demonstrate a Responses request, a tool-result exchange, or a completed edit-and-test loop. If your controller depends on those behaviors, test that exact path separately before treating this Chat Completions example as integration proof. What is the smallest repository task you would use to verify the full loop after the initial model-call check?