GreenPT Docs
GreenPT Code

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.

Two open-weight models cover almost every coding workload, hosted on EU infrastructure. glm-5.3 is our flagship coding model and the default; deepseek-v4.1-flash-1017 handles routine edits at a fraction of the cost.

glm-5.3z.aiFlagship

The newest z.ai flagship reasoning model, successor to glm-5.2, with agentic tool-use at the same price.

Input€1.10
Cached input€0.275
Output€4.40
Context1M
ReleasedAug 2026
ChatReasoningTool useAgentic coding

Use it for: The default: agentic, multi-file work across a large codebase.

deepseek-v4.1-flash-1017DeepSeekNew

The 17 October 2026 snapshot of DeepSeek V4.1 Flash: multimodal reasoning, tool calling and a 1M-token context window for chat and agentic coding.

Input€0.36
Cached input€0.04
Output€1.45
Context1M
ReleasedOct 2026
ChatReasoningVisionTool useLong context

Use it for: Routine edits, quick questions and test runs, at a fraction of the cost.

For every model in the catalogue, including chat, vision, embedding, reranking and speech, see Model Cards.

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.3",
    "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.3',
  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.3",
    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.3

Step-by-step guides for popular agents:

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

  • EU infrastructure: both models are served from EU data centers.
  • Efficient architecture: both are Mixture-of-Experts models, so only a fraction of their parameters activates 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.

On this page