Notice: MAI Image 2.7 launch limited-time 20% off, covering the full text-to-image and image editing lineup, try it now
Notice: Black Friday 2026 × Cyber Monday: Get up to 30% extra on top-ups, DeepSeek free to use · View the promotion
Open navigation

Agent tools

There are two independent ways to wire HiAPI into an agent tool. Pick by what you want the agent to do.

What you want the agent to doHow to connectEntry
Chat, write code and run agent workflows on text modelsPoint the tool at HiAPI’s base URL and API keyText reasoning
Generate images, video and audioInstall the MCP server or Agent SkillsMedia generation

They don’t conflict — a tool can have text only, or both.

Setup

  • Get an API key: create a key in the console and have it ready before you connect.
  • API key setup: pick your tool and copy a ready-made config with the right base URL and key filled in.
  • Base URL & protocols: the URL differs by protocol, and a wrong one usually returns 404 right away.
  • Node.js setup: Claude Code, Codex CLI, Pi and DeepSeek Harness all need it first.
  • CC Switch install and one-click import: set up Claude Code, Codex and OpenCode without editing config files.
  • Common errors: 401, 404, 429 and other errors any tool can hit, plus why you should check the request log before retrying.

Text reasoning

Point the tool at HiAPI’s OpenAI-compatible endpoint and you can chat, write code and run agent workflows on Claude, GPT and DeepSeek text models.

There are two usual shapes: command-line tools take a config file or environment variables, desktop apps take a custom provider in their settings. Pick the page for your tool below and follow it.

Command line

ToolBest for
Claude CodeUnderstanding, editing and collaborating on code with Claude in the terminal
Codex CLIHandling coding tasks with GPT models in the terminal
OpenCodeOne config file for multiple models, coding in the terminal
OpenClawAn open-source agent: chat in the web dashboard or terminal, with models and tools managed in one place
HermesAn open-source agent: connect to HiAPI in a few steps with its built-in wizard
PiWorking on project files with a lightweight coding agent in the terminal

Desktop apps & clients

ToolBest for
Claude DesktopUsing HiAPI’s Claude models in the Claude desktop app
Codex DesktopUsing GPT models in the Codex desktop app, entirely through the UI
Cherry StudioUsing Claude, GPT and DeepSeek in one chat client
TraeAdding a custom model to an AI IDE for coding
WorkBuddyAdding a custom model in the WorkBuddy desktop assistant
DeepSeek HarnessA DeepSeek coding agent that starts in the terminal and runs in the browser

Media generation

Once text is wired up the agent can only talk. To make it actually produce images, video and audio, give it both the knowledge and the permission to call HiAPI’s media endpoints — two ways, pick the one your client supports.

ApproachBest forWhat it gives you
MCPMost MCP clients (Cursor, VS Code, Claude Desktop and more)Connect to https://mcp.hiapi.ai/mcp and image, video, audio and text tools are available after one authorization — nothing to deploy locally
SkillsClaude Code, Codex, OpenClawThe agent learns how to fill in each model’s parameters and turns a request into a correct call

They complement each other: MCP provides the capability to call, Skills provide the knowledge of how to call. Install both if your client supports it.