pi-parasail-provider
v1.0.22
Published
Parasail provider extension for pi - Access top open-source models (DeepSeek, Qwen, GLM, Kimi, Llama, Gemma, Mistral) through the Parasail API
Maintainers
Readme
🪂 pi-parasail-provider
30+ models via Parasail
DeepSeek, Qwen, GLM, Kimi, Llama, Gemma, Mistral — serverless with live pricing for pi.
Features
- Wide Model Selection — 30+ models from DeepSeek, Qwen, GLM, Kimi, Llama, Gemma, Mistral, MiniMax, and more
- Reasoning Models — DeepSeek V4, Qwen3, GLM 5, Kimi K2.5/K2.6, Trinity, MiniMax with thinking mode
- Vision Support — Qwen3-VL, Gemma 4, Qwen2.5-VL accept image + text input
- Unified API — OpenAI-compatible completions endpoint
- Long Context — DeepSeek V4 (1M), Llama 4 Maverick (1M), MiniMax M2.5 (1M)
Installation
Option 1: Using pi install (Recommended)
Install directly from GitHub:
pi install https://github.com/monotykamary/pi-parasail-providerThen set your API key and run pi:
# Recommended: add to auth.json
# See Authentication section below
# Or set as environment variable
export PARASAIL_API_KEY=your-api-key-here
piGet your API key at parasail.io.
Option 2: Manual Clone
Clone this repository:
git clone https://github.com/monotykamary/pi-parasail-provider.git cd pi-parasail-providerSet your Parasail API key:
# Recommended: add to auth.json # See Authentication section below # Or set as environment variable export PARASAIL_API_KEY=your-api-key-hereRun pi with the extension:
pi -e /path/to/pi-parasail-provider
Available Models
| Model | Context | Reasoning | Input | Max Output | Input $/M | Output $/M | Cache $/M | |-------|---------|-----------|-------|------------|-----------|------------|-----------| | Cydonia 24B v4.1 | 131K | ❌ | Text | 16K | $0.30 | $0.50 | $0.15 | | DeepSeek V4 Flash | 1M | ✅ | Text | 384K | $0.14 | $0.28 | $0.07 | | Deepseek V4 Flash 0731 | 1M | ✅ | Text | 16K | $0.14 | $0.28 | $0.05 | | DeepSeek V4 Pro | 1M | ✅ | Text | 384K | $1.74 | $3.48 | $0.10 | | Deepseek V4 Pro 0813 | 1M | ❌ | Text | 16K | $1.32 | $3.96 | $0.04 | | Deepseek V41 Flash | 1M | ❌ | Text | 16K | $0.30 | $1.20 | $0.01 | | Gemma 3 27B | 131K | ❌ | Text + Image | 16K | $0.08 | $0.45 | $0.04 | | Gemma 4 26B (A4B) | 262K | ✅ | Text + Image | 16K | $0.13 | $0.40 | $0.05 | | Gemma 4 31B | 262K | ✅ | Text + Image | 16K | $0.15 | $0.40 | $0.06 | | Glm 52 | 262K | ✅ | Text | 16K | $1.40 | $4.40 | $0.26 | | Glm 53 | 1M | ❌ | Text | 16K | $1.40 | $4.40 | $0.26 | | Glm 53 Flash | 1M | ❌ | Text | 16K | $0.15 | $0.50 | $0.03 | | Googlegemma 3 4b It | 131K | ❌ | Text | 16K | $0.05 | — | — | | Gpt Oss 120b Fast | 131K | ✅ | Text | 16K | $0.15 | $0.60 | — | | GPT-OSS 120B | 131K | ✅ | Text | 16K | $0.10 | $0.75 | $0.06 | | GPT-OSS 20B | 131K | ✅ | Text | 16K | $0.03 | $0.15 | $0.02 | | Kimi K2.6 | 262K | ✅ | Text + Image | 16K | $0.75 | $3.50 | $0.16 | | Kimi K3 | 1M | ✅ | Text + Image | 16K | $3.00 | $15.00 | $0.30 | | Llama 3.3 70B | 131K | ❌ | Text | 16K | $0.22 | $0.50 | $0.11 | | Llama 32 3b Instruct | 131K | ❌ | Text | 16K | $0.05 | $0.33 | — | | Llama 4 Maverick 17B-128E | 524K | ❌ | Text + Image | 16K | $0.35 | $1.00 | $0.17 | | Minimax M3 | 1M | ✅ | Text + Image | 16K | $0.30 | $1.20 | $0.06 | | Mistral Small 32 24b | 131K | ❌ | Text | 16K | $0.09 | $0.30 | $0.05 | | Mistralaimistral Nemo | 131K | ❌ | Text | 16K | $0.03 | $0.03 | — | | Mythomax 13b | 4K | ❌ | Text | 16K | $0.08 | $0.11 | — | | Qwen 3.5 35B (A3B) | 262K | ✅ | Text + Image | 33K | $0.15 | $1.00 | $0.05 | | Qwen 3.5 397B (A17B) | 262K | ✅ | Text + Image | 33K | $0.50 | $3.60 | $0.30 | | Qwen 3.6 35B (A3B) | 262K | ✅ | Text + Image | 33K | $0.15 | $1.00 | $0.05 | | Qwen2.5-VL 72B | 128K | ❌ | Text + Image | 8K | $0.80 | $1.00 | $0.40 | | Qwen3 235B (A22B) | 131K | ✅ | Text | 33K | $0.14 | $0.80 | $0.05 | | Qwen3 Coder Next | 262K | ✅ | Text | 33K | $0.12 | $0.80 | $0.07 | | Qwen3 Next 80B (A3B) | 262K | ✅ | Text | 33K | $0.10 | $1.10 | $0.07 | | Qwen3-VL 235B (A22B) | 131K | ✅ | Text + Image | 33K | $0.21 | $1.90 | $0.10 | | Qwen3-VL 8B | 262K | ✅ | Text + Image | 8K | $0.25 | $0.75 | $0.12 | | Qwen35 9b | 262K | ❌ | Text | 16K | $0.10 | $0.25 | — | | Qwen38 27b | 262K | ❌ | Text | 16K | $0.24 | $2.20 | $0.05 | | Sao10kl3 Lunaris 8b | 8K | ❌ | Text | 16K | $0.04 | $0.05 | — | | Skyfall 36b V2 Fp8 | 33K | ❌ | Text | 16K | $0.55 | $0.80 | $0.25 | | Unslopnemo 12b | 1M | ❌ | Text | 16K | $0.40 | $0.40 | — |
Pricing fetched live from Parasail's pricing API. Prices are per million tokens and subject to change.
Usage
After loading the extension, use the /model command in pi to select your preferred model:
/model parasail parasail-deepseek-v4-proOr start pi directly with a Parasail model:
pi --provider parasail --model parasail-deepseek-v4-proThinking Mode
Reasoning models (DeepSeek V4, Qwen3, GLM, Kimi) support both thinking and non-thinking modes. In pi, reasoning models automatically use the appropriate thinking format:
- DeepSeek V4 —
openaithinking format (thinking: {type: "enabled"}) - Qwen3/Qwen3.5 —
qwenthinking format - GLM —
zaithinking format
Authentication
The Parasail API key can be configured in multiple ways (resolved in this order):
auth.json(recommended) — Add to~/.pi/agent/auth.json:
The{ "parasail": { "type": "api_key", "key": "your-api-key" } }keyfield supports literal values, env var names, and shell commands (prefix with!). See pi's auth file docs for details.- Runtime override — Use the
--api-keyCLI flag - Environment variable — Set
PARASAIL_API_KEY
Get your API key at parasail.io.
Environment Variables
| Variable | Required | Description |
|----------|----------|-------------|
| PARASAIL_API_KEY | No | Your Parasail API key (fallback if not in auth.json) |
Configuration
Add to your pi configuration for automatic loading:
{
"extensions": [
"/path/to/pi-parasail-provider"
]
}Compat Settings
Parasail's API uses OpenAI-compatible settings:
thinkingFormat— Set per-model family:"openai"(DeepSeek V4),"qwen"(Qwen3),"zai"(GLM)maxTokensField: "max_completion_tokens"— All models usemax_completion_tokenssupportsDeveloperRole: false— All models usesystemrole, notdevelopersupportsStore: false— All models don't support thestoreparameter
Patch Overrides
The patch.json file contains overrides that are applied on top of models.json data at runtime. This is useful for:
- Correcting API-derived values (e.g., marking a model as reasoning-capable)
- Adding compat settings that the API doesn't provide
- Overriding pricing/context window when specs change
Updating Models
Run the update script to fetch the latest models from Parasail's API:
export PARASAIL_API_KEY=your-api-key
node scripts/update-models.jsThis will:
- Fetch models from
https://api.parasail.io/v1/models - Preserve pricing, compat, and metadata from existing
models.json - Apply overrides from
patch.jsonat runtime - Update
models.jsonand the README model table
A GitHub Actions workflow runs this daily and creates a PR if models have changed.
License
MIT
