Course
Give your AI a permanent memory of your business. A course for people who use ChatGPT or Claude daily.Compound Context

At a glance

What it is
Set up Pi to use HiAPI through a models.json file. The guide covers Node.js, Pi, API keys, Mac and Windows steps, model selection, and basic connection checks.
Transparency:
Featured

About HiAPI

Who It's For

This is for people who use Pi and want to connect it to HiAPI. It supports Mac and Windows users, with extra Git Bash setup needed on Windows.

What You Get

You get step-by-step setup instructions for Node.js, Pi, a HiAPI API key, and the models.json file. The guide uses DeepSeek V4.1 Flash and explains how to choose thinking settings and check request logs.

How It Works

Install the required tools, add the HiAPI model details to models.json, and set your API key in the terminal. Start Pi, choose the HiAPI model with /model, select a thinking level, and send a test message to confirm the connection.

Is HiAPI Worth Trying? Key Facts & Signals

Official site
hiapi.ai
Documented features
13 features
Integrations
5 listed

These are facts from the listing, not a safety or legitimacy review. Confirm details on the vendor's site before you sign up.

Stay in the loop

Weekly roundup of new AI agents. No spam, unsubscribe anytime.

Subscribe and get the free 2026 AI Agents Field Guide

Join 1,500+ AI builders · weekly, no spam

HiAPI Pricing & Free Plan

HiAPI is priced by usage.

GPT Image 2.5 Flare text-to-image

$0.025 per image
  • 1K: $0.025; 2K: $0.040; 4K: $0.060

Seedance 2.0

$0.136 per second
  • Representative rate: 480P without reference video URLs; rates vary by resolution and reference-video use

GPT Image 2.6 Flare image-to-image

$0.023 per image
  • Representative rate: 1K low; rates vary by resolution and quality; $0.012 per reference image

MAI Image 2.7 Flash text-to-image

$0.01192 per image
  • Promotional price; 1K: $0.01192, 2K: $0.04752

Gemini 4 Carbon

$6.04686 per 1 million tokens
  • Input: $6.04686; cached input: $0.30234; output: $30.23432

Seedance 2.5

$0.1215 per second
  • Representative rate: 480P reference-to-video; rates vary by resolution and operation

Nano Banana 2

$0.018 per image
  • 1K: $0.018; 2K: $0.0285; 4K: $0.043

Grok Imagine 1.5 image-to-video

$0.0114 per second
  • 480P: $0.0114; 720P: $0.0214; 1080P: $0.05714

Kling 3.0 image-to-video

$0.108 per second
  • Representative rate: 720P native audio off; rates vary by resolution and audio setting

Meshy 7.1 image-to-3d

$1.1429 per call
  • Texture off: $1.1429; texture on: $1.7143

Midjourney

$0.0644 per call
  • Relax: $0.0644; fast: $0.0787; turbo: $0.1429

Tripo H3.1 text-to-3d

$0.15 per model
  • Representative rate: standard, PBR materials off, texture off; rates vary by mode and materials

Kling Image 4.0

$0.0808 per image
  • Representative rate: image at 1K/2K; rates vary by operation and resolution; $0.0036 per reference image

Ray 3.2 text-to-video

$0.2145 per video
  • Representative rate: 540P 5-second video; rates vary by duration and resolution

Flux 3 Image Klein

$0.0092 per image
  • 768: $0.0092; 1K: $0.0103; 1.5K: $0.0126; 2K: $0.016; 4K: $0.0412

Vidu Q4 Preview image-to-video

$0.0515 per second
  • 540P: $0.0515; rates increase by resolution through 4K

Flux 3 Image

$0.041 per image
  • 768: $0.041; 1K: $0.048; 1.5K: $0.070; 2K: $0.100; 4K: $0.607

GLM 5.3

$0.85479 per 1 million tokens
  • Input: $0.85479; output: $2.99178

Qwen Image 3.0 Pro image-to-image

$0.0497 per image
  • 1K: $0.0497; 2K: $0.0993

Hailuo 2.3 text-to-video

$0.4 per video
  • 6s: $0.400; 10s: $0.800

Ideogram V4

$0.05 per image
  • Turbo: $0.050; balanced: $0.100; quality: $0.170

Veo 3.1 image-to-video

$0.29 per second
  • Representative rate: 720P audio off; rates vary by resolution and audio setting

FLUX.2 text-to-image

$0.0375 per image
  • 0.5 MP: $0.0375; 1 MP: $0.050; 2 MP: $0.075; 4 MP: $0.125

Wan 2.7 Video text-to-video

$0.1 per second
  • 720P: $0.100; 1080P: $0.167

Pricing is usage-based across many models, with rates per image, second, video, call, model, or 1 million tokens; remaining model-specific rates are omitted for compactness.

View current pricing

Features & Capabilities

🔌 Model Connectivity

HiAPI Model Integration

Connects Pi to HiAPI through a models.json provider configuration.

DeepSeek V4.1 Flash Support

Adds the DeepSeek V4.1 Flash model with a one-million-token context window and large output capacity.

OpenAI-Compatible API

Uses HiAPI’s OpenAI completions endpoint and supports DeepSeek reasoning formats.

🧠 Reasoning Controls

Adjustable Thinking Levels

Lets users choose off, low, high, or max reasoning modes for the active session.

Persistent Thinking Preference

Saves the selected thinking level as the default for future Pi sessions.

🔐 Authentication & Configuration

Environment-Based API Keys

Loads the HiAPI key securely through the HIAPI_API_KEY environment variable.

Configuration Backups

Automatically backs up an existing models.json file before it is edited.

Custom Agent Directory

Supports configuring models.json in a custom directory through PI_CODING_AGENT_DIR.

🖥️ Cross-Platform Setup

Mac and Windows Support

Provides platform-specific installation, configuration, and launch instructions.

Git Bash Compatibility

Supports Git Bash on Windows and allows its executable path to be configured manually.

Terminal-Based Model Selection

Enables users to search for and select the configured HiAPI model directly inside Pi.

✅ Verification & Troubleshooting

Connection Verification

Confirms successful routing by sending a test prompt and checking HiAPI request logs.

Configuration Diagnostics

Provides fixes for missing models, invalid JSON, authentication failures, and unavailable Bash.

Screenshots

See HiAPI in action

Use Cases

Connecting Pi to DeepSeek Through HiAPI

Developers using the Pi coding agent need a reliable way to access DeepSeek V4.1 Flash without implementing a custom integration. By adding a HiAPI provider to Pi’s models.json and supplying an API key through an environment variable, they can select the model directly in Pi and verify requests through HiAPI logs.

Software DevelopmentFor: Software Developer

Configuring Reasoning for Coding Sessions

Developers may need to balance response speed and depth depending on the complexity of a coding task. The integration lets Pi users choose off, low, high, or max thinking levels for DeepSeek V4.1 Flash, with the option to save a preferred level as the session default.

Software DevelopmentFor: AI-Assisted Developer

Setting Up a Cross-Platform Pi Development Environment

Teams working across macOS and Windows can face different installation, shell, and configuration requirements when connecting Pi to an API provider. The setup instructions provide platform-specific commands, Git Bash guidance for Windows, environment-variable configuration, and troubleshooting steps so developers can establish a consistent working environment.

Software DevelopmentFor: Development Team

Verifying and Troubleshooting an AI Coding Integration

Developers need to confirm that Pi is using the intended HiAPI model and diagnose configuration failures such as missing models, invalid JSON, unavailable Bash, or missing API credentials. Model selection, test prompts, request logs, backups, and targeted troubleshooting instructions help users validate the connection and recover from common setup issues.

Software DevelopmentFor: Developer Experience Engineer

Explore related AI agents