Automated PR review
Send the diff plus file context, ask for findings as JSON: file, line, severity, suggested patch. Your bot posts it as a PR comment.
Put DataGo behind your editor, CI, or review bot. Long-context models for cross-file refactors, cheap models for autocomplete called thousands of times a day. The endpoint is standard, so you keep your SDK.
Writing new code is fast now. What is slow: understanding files you did not write, chasing bugs that slipped through, and writing tests for someone else's diff. The model you use needs long context and a consistent sense of your code style — not just "a smart AI".
Send the diff plus file context, ask for findings as JSON: file, line, severity, suggested patch. Your bot posts it as a PR comment.
Long-context models read several files at once, so a new pattern lands consistently without you re-explaining it file by file.
A diff already carries intent. The model derives the cases: happy path, edge cases, and error paths.
Three steps, all inside your own infrastructure.
Send the diff plus related files only. Do not ship the whole repo when you do not need to — tokens are money.
Autocomplete to a cheap model, architecture review to a long-context model. Switching models is one string.
Structured JSON output, ready to post as PR comments or inline editor diagnostics.
Prices are pulled from the catalog when the page loads. Estimates use typical token counts for coding tasks.
| Model | Role | Input / 1M | Output / 1M | Estimate / request |
|---|---|---|---|---|
moonshot/kimi-k2.7-code |
Default pick: long repo context, cheap at volume | Rp5.985 | Rp25.200 | Rp35,12 |
deepseek/deepseek-v4.1-flash |
Autocomplete and quick tasks, cheapest for thousands of daily calls | Rp1.350 | Rp5.175 | Rp2,63 |
anthropic/claude-fable-5.1 |
Architecture review and hard refactors — only for large PRs | Rp47.250 | Rp196.875 | Rp484,31 |
Estimates use the token counts shown in the header. Prices update automatically whenever the catalog changes.
Browse all coding modelsUses the official SDKs — just change base_url. Keep the API key on the server, never in the browser.
import os, subprocess
from openai import OpenAI
client = OpenAI(
base_url="https://api.datago.id/v1",
api_key=os.environ["DATAGO_API_KEY"],
)
diff = subprocess.run(
["git", "diff", "origin/main..."],
capture_output=True, text=True, check=True,
).stdout
review = client.chat.completions.create(
model="moonshot/kimi-k2.7-code",
messages=[
{"role": "system", "content": "You are a senior reviewer. Reply as JSON: [{file, line, severity, issue, patch}]."},
{"role": "user", "content": diff},
],
response_format={"type": "json_object"},
)
print(review.choices[0].message.content)
import OpenAI from "openai";
import { execSync } from "node:child_process";
const client = new OpenAI({
baseURL: "https://api.datago.id/v1",
apiKey: process.env.DATAGO_API_KEY,
});
const diff = execSync("git diff origin/main...").toString();
const review = await client.chat.completions.create({
model: "moonshot/kimi-k2.7-code",
messages: [
{ role: "system", content: "You are a senior reviewer. Reply as JSON: [{file, line, severity, issue, patch}]." },
{ role: "user", content: diff },
],
response_format: { type: "json_object" },
});
console.log(review.choices[0].message.content);
curl https://api.datago.id/v1/chat/completions \
-H "Authorization: Bearer $DATAGO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "moonshot/kimi-k2.7-code",
"messages": [
{"role": "system", "content": "You are a senior reviewer. Reply as JSON."},
{"role": "user", "content": "'"$(git diff origin/main...)"'"}
],
"response_format": {"type": "json_object"}
}'
→ Store the key in server environment variables or CI secrets. Never ship it in front-end code.
No. Prompts and responses are not stored by DataGo; only token counts for billing, and keys can be revoked at any time from the dashboard.
Yes. They all accept a custom base URL with the OpenAI format — point it at https://api.datago.id/v1 and use your DataGo key.
For high volume, DeepSeek V4.1 Flash or Kimi K2.7 Code. Live prices are in the table above so you can compare before committing.
Cap max_tokens and send diffs per file instead of one giant PR. For a full review, split by directory and merge the findings.
Sign up, grab one key, run a single test request. It costs a few rupiah — not a monthly subscription.