GreenPT Code
Specialized AI models for software development, optimized for efficiency and sustainability.
GreenPT Code is our suite of specialized AI models for software development, optimized for efficiency and sustainability. These models are designed for agentic coding tasks, multi-file editing, and integration with modern AI coding assistants.
Available coding models
High-performance models for software engineering tasks, hosted on sustainable
EU infrastructure. glm-5.2 is our flagship coding model.
| Model | Provider | Parameters | Context | Architecture |
|---|---|---|---|---|
glm-5.2 | z.ai | 753B | 1M tokens | MoE |
kimi-k2.7-code | Moonshot AI | 1T total | 256K tokens | MoE |
devstral-2-123b-instruct-2512 | Mistral | 123B | 256K tokens | Dense (FP8) |
qwen3-coder-30b-a3b-instruct | Qwen (Alibaba) | 30.5B total (3.3B active) | 256K tokens (1M extended) | MoE (128 experts, 8 active) |
API usage
Call these models via the GreenPT API using OpenAI-compatible endpoints.
curl -X POST https://api.greenpt.ai/v1/chat/completions \
-H "Authorization: Bearer $GREENPT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.2",
"messages": [
{
"role": "user",
"content": "Write a Python function to parse JSON files"
}
]
}'import OpenAI from 'openai';
const client = new OpenAI({
apiKey: process.env.GREENPT_API_KEY,
baseURL: 'https://api.greenpt.ai/v1',
});
const completion = await client.chat.completions.create({
model: 'glm-5.2',
messages: [
{
role: 'user',
content: 'Write a Python function to parse JSON files',
},
],
});
console.log(completion.choices[0].message.content);from openai import OpenAI
client = OpenAI(
api_key="YOUR_GREENPT_API_KEY",
base_url="https://api.greenpt.ai/v1",
)
completion = client.chat.completions.create(
model="glm-5.2",
messages=[
{
"role": "user",
"content": "Write a Python function to parse JSON files",
}
],
)
print(completion.choices[0].message.content)Connect your coding agent
GreenPT Code is OpenAI-compatible, so any tool that supports a custom OpenAI-style endpoint works. Most setups need the same three values:
- Base URL:
https://api.greenpt.ai/v1 - API key: your
GREENPT_API_KEY - Model: a coding model ID, e.g.
glm-5.2
Step-by-step guides for popular agents:
OpenCode
Terminal-native agent via @ai-sdk/openai-compatible.
Cline
Autonomous VS Code agent, OpenAI Compatible provider.
Aider
Terminal pair programmer with git integration.
Kilo Code
VS Code, JetBrains & CLI with model auto-detection.
Claude Code
Anthropic-compatible endpoint or translation proxy.
Codex CLI
OpenAI Responses API endpoint or LiteLLM proxy.
Any other OpenAI-compatible IDE or extension (Cursor, GitHub Copilot BYOK, Continue, …) connects with the three values above.
Token compression
Cut what your coding agent emits — less code, less prose — to lower API cost, speed up responses, and reduce energy per request. GreenPT Code pairs well with these open-source agent skills:
- Honey — less code and less prose, plus dense agent-to-agent handoffs (~49% fewer code tokens at 98% of baseline quality).
- Ponytail — minimal code, YAGNI first (~54% less code).
- Caveman — terse prose (~75% fewer output tokens).
See the Token compression section for details.
Use cases
Ideal applications for GreenPT Code models.
- AI code assistants: power IDE extensions and coding copilots with agentic capabilities.
- Automated code review: analyze pull requests and suggest improvements automatically.
- Repository analysis: understand large codebases with 256K+ context windows.
- Multi-file refactoring: perform complex migrations across multiple files simultaneously.
- Test generation: generate comprehensive unit and integration tests.
- Documentation: auto-generate documentation from code and comments.
Sustainability
- Sustainable infrastructure: hosted on Scaleway's green EU data centers with low PUE (1.25) and WUE (0.25).
- Efficient architecture: Qwen3 Coder uses MoE (only 3.3B params active per request), reducing compute and energy consumption.
- Data sovereignty: full GDPR compliance with EU-based processing.
- Transparency: CO2 and energy usage tracking per request. See Sustainability Impact.