Documentation
Quick start
- Open the bot @PalantirGPT_bot and accept the terms.
- Top up your balance (the Top-up button).
- In the API section create a key. You can view it again there later.
- In your client set the Base URL and the key, and put a model name from the price table into the model field.
- Send a test message.
Connection details
- Base URL
https://api.palantir-gpt.com/v1- API key
sk-… from the bot- Model
glm-5.3-flash- Protocol
OpenAI Chat Completions- Output limit
16384 (set in your client)- Concurrency
up to 3 requests per key
Client setup
Menu names can differ slightly between client versions. The idea is the same everywhere: an “OpenAI Compatible” provider, an address, a key and a model.
Cline
- Open the Cline panel and click the settings gear.
- API Provider: OpenAI Compatible.
- Base URL: https://api.palantir-gpt.com/v1
- OpenAI Compatible API Key: your key.
- Model ID: glm-5.3-flash
- Expand Model Configuration and set Max Output Tokens to 16384.
Roo Code
- Open Roo Code settings, Providers.
- API Provider: OpenAI Compatible.
- Base URL: https://api.palantir-gpt.com/v1
- API Key: your key.
- Model: glm-5.3-flash
- Under Model Configuration set Max Output Tokens to 16384.
Kilo Code
- Open Kilo Code settings and choose the OpenAI Compatible provider.
- Base URL: https://api.palantir-gpt.com/v1
- API Key: your key.
- Model: glm-5.3-flash
Cursor
- Settings → Models.
- Turn on Override OpenAI Base URL and enter https://api.palantir-gpt.com/v1
- Paste your key into OpenAI API Key.
- Add Custom Model: glm-5.3-flash
- Select the model in chat. Features tied to Cursor's own servers may behave differently.
Continue
- Open config.yaml and add the model:
models:
- name: PalantirGPT
provider: openai
model: glm-5.3-flash
apiBase: https://api.palantir-gpt.com/v1
apiKey: sk-...
defaultCompletionOptions:
maxTokens: 16384Zed
- Open settings.json and add the provider:
- Enter the key in the provider settings in the Agent Panel.
{
"language_models": {
"openai_compatible": {
"PalantirGPT": {
"api_url": "https://api.palantir-gpt.com/v1",
"available_models": [
{ "name": "glm-5.3-flash", "max_tokens": 200000, "max_output_tokens": 16384 }
]
}
}
}
}Aider
- Set environment variables and start Aider:
export OPENAI_API_BASE=https://api.palantir-gpt.com/v1
export OPENAI_API_KEY=sk-...
aider --model openai/glm-5.3-flashOpenCode
- Add a provider to opencode.json:
- Set the key with /connect or in OpenCode's auth file.
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"PalantirGPT": {
"npm": "@ai-sdk/openai-compatible",
"name": "PalantirGPT",
"options": { "baseURL": "https://api.palantir-gpt.com/v1" },
"models": { "glm-5.3-flash": { "name": "glm-5.3-flash" } }
}
}
}ZCode
- In the model settings choose a custom OpenAI-compatible provider.
- Base URL: https://api.palantir-gpt.com/v1
- API Key: your key.
- Model: glm-5.3-flash
Other
- Find an “OpenAI Compatible”, “Custom OpenAI” or “Custom endpoint” provider in your client.
- Base URL: https://api.palantir-gpt.com/v1 (ending in /v1, without /chat/completions).
- API Key: your key, Model: glm-5.3-flash.
Code examples
cURL
curl https://api.palantir-gpt.com/v1/chat/completions \
-H "Authorization: Bearer sk-..." \
-H "Content-Type: application/json" \
-d '{"model": "glm-5.3-flash", "max_tokens": 1000,
"messages": [{"role": "user", "content": "Hello"}]}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.palantir-gpt.com/v1", api_key="sk-...")
r = client.chat.completions.create(
model="glm-5.3-flash",
max_tokens=2000,
messages=[{"role": "user", "content": "Hello"}],
)
print(r.choices[0].message.content)Node.js
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.palantir-gpt.com/v1", apiKey: "sk-..." });
const r = await client.chat.completions.create({
model: "glm-5.3-flash",
max_tokens: 2000,
messages: [{ role: "user", content: "Hello" }],
});
console.log(r.choices[0].message.content);Errors
401 | Invalid or revoked key. Copy the key from the bot again. |
402 | Insufficient balance. Top up in the bot. |
400 | Unknown model or a malformed request. Check the model name in the price table. |
413 | Request too large. Shorten the context. |
429 | More than three concurrent requests on one key. Wait and retry. |
503 | The model provider is temporarily unavailable. Retry in a minute. |
Not supported
Only Chat Completions and the model list. Clients that need Anthropic Messages (for example Claude Code directly) or the Responses API will not connect. Embeddings and autocomplete are not available either.