Guide · 7 / 7
API & MCP
Run a multi-AI meeting through the API. In an OpenAI-compatible client you already use, only the address, key, and model name change.
What you can do
The API opens the same nine purposes as a new meeting on the web, from Watch a debate to Get a review. Progress and results come back through the same API.
Details
Meetings created through the API appear in My Meetings on the web and replay on the same screen as meetings started there. Share links and public pages work the same way.
Quick start
The last user message is the question; the messages before it are background material. A system message becomes judging criteria and constraints. Send your key in the Authorization header as a Bearer token.
Details
The question and options below are placeholders — the request shape (messages and extra_body.mpm) matches the example below.
https://hiai-meeting.com/v1
curl
curl https://hiai-meeting.com/v1/chat/completions \
-H "Authorization: Bearer $HIAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "mpm-decide-standard",
"messages": [
{ "role": "system", "content": "Decide within the confirmed budget." },
{ "role": "user", "content": "Which do we verify first: pricing, demand, or channel?" }
],
"extra_body": {
"mpm": {
"answer_shape": "choice",
"choices": ["Pricing", "Demand", "Channel"]
}
}
}'OpenAI SDK (JavaScript)
import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://hiai-meeting.com/v1',
apiKey: process.env.HIAI_API_KEY,
});
const answer = await client.chat.completions.create({
model: 'mpm-decide-standard',
messages: [
{ role: 'system', content: 'Decide within the confirmed budget.' },
{ role: 'user', content: 'Which do we verify first: pricing, demand, or channel?' },
],
extra_body: { mpm: { answer_shape: 'choice', choices: ['Pricing', 'Demand', 'Channel'] } },
});
console.log(answer.choices[0].message.content);Issue a key
Issue a personal key from the API keys section in settings. The raw key appears once in the issue response, and only the mpm_xxxxxxxx prefix is kept in the list.
Details
It is stored only as a hash, so a lost key has to be reissued, and you revoke it from the same section. The raw key is never written to logs.
Billing
API and MCP calls have no free meetings and are always settled from subscription usage and credits (Cr), whatever the purpose. Subscription usage is drawn first, then credits. If the balance is short, the request is refused during setup, before the meeting starts.
Details
API and MCP calls are settled only from subscription usage and credits, and the charge is the amount actually used, not the estimate. In the response usage, completion_tokens, total_tokens, and cost carry the credits deducted by this call rather than token counts, and prompt_tokens is 0. completion_tokens and total_tokens are rounded to whole credits, while cost is rounded to four decimal places. usage.mpm.credit_cr is the amount taken from credits; usage.mpm.allowance_percent is this call's subscription usage as a percentage of the monthly subscription allowance.
Set up your tool
Connect MCP with OAuth
In a client that supports OAuth, add the address below as a remote MCP server. Connect to open the Hi AI Meeting consent page. An existing session shows your account and requested permissions immediately. Otherwise, sign in and return to consent.
https://hiai-meeting.com/v1/mcpJudgment read access covers your results. Starting meetings requires separate permission and may use credits. Connecting and listing tools use no meeting credits.
Connect with a personal API key
Use a judgment meeting as an MCP tool inside your agent (Claude Code, opencode, Codex), or call it directly over the OpenAI-compatible API (opencode provider, Python SDK). Pick your tool, copy the config as-is, and replace the key placeholder with your personal key.
claude mcp add --transport http hiai https://hiai-meeting.com/v1/mcp \
--header "Authorization: Bearer <HIAI_API_KEY>"Don't use a judgment preset as a coding agent's main model. For the main model, choose an agent-type preset (e.g. mpm-agent-standard).
Tool calls during a meeting (gathering material)
If the meeting needs more evidence it asks for tool calls, and it resumes toward a verdict once your client runs them and sends the results back. The server never runs the tools. What you send becomes evidence for every participant, so assume your material reaches external providers.
Details
The job status is then awaiting_tools. Run the tool_calls (id, function.name, function.arguments) in the assistant message and send the results back as tool messages with the same tool_call_id. The meeting runs on several providers' models, so assume what you send reaches those providers. Limits: 3 tool points per meeting, 6 calls per point, 8,000 characters per result, 24,000 characters per point, and 600 seconds of waiting. Past a limit, it judges on the evidence gathered so far. Credential- or personal-data-bearing results are dropped from the evidence (tool_calls appear only for meetings started with tools).
Judgment skill package
A skill that helps agents call the multi-AI judgment tool at the right time with a good question. It covers when to open a meeting and when not to, how to write the question, background and decision criteria, how to pick a preset, mode and cost cap, and the async polling and result delivery. Download a bundle below and install it for your tool.
- Claude Code plugin (zip)
- Codex skill folder (zip)
- opencode commands and agent (zip)
- Claude.ai skill (zip)
Choose OAuth or a personal API key according to your client. The skill uses the server's current presets and modes.
extra_body.mpm options
Values specific to MPM go inside extra_body.mpm rather than in OpenAI fields. All of them are optional, and omitting one applies the server default.
- answer_shape
- Answer shape — choice, score, yes_no, or free. Defaults to free.
- choices
- The options to weigh. They are the subject when answer_shape is choice.
- cost_cap_usd
- Cost ceiling for this call in USD. The run stops before exceeding it. Omit to use the server default.
- visibility
- private (default) or public. Non-public is the default.
- round_cap
- Upper bound on discussion rounds. Omit to use the model preset value.
- max_utterance_length
- Character limit for a single utterance. Omit to use the model preset value.
- purpose
- discuss, decide, inspect, explore, commentary, explain, chat, counsel, or cocreate. When set, it changes only the preset's purpose and keeps the depth from model. Omit it to use the purpose of model; with no model either, the server derives it from answer_shape.
- web_search
- Web-search mode. true turns it on. Turning it on makes the meeting a coin meeting that spends credits. Omit to use the preset value.
- reasoning
- Reasoning mode. true turns it on. Turning it on makes the meeting a coin meeting that spends credits. Omit to use the preset value.
- evidence
- Evidence mode. It is enabled only when your plan includes it; otherwise the run proceeds with it off and records the swap in mpm.preset. Omit to use the preset value.
- presets
Pick the whole, model, persona, and progress presets, the same ones the web new-meeting dialog uses. Picking only one leaves the rest at the purpose's Standard.
Details
Preset selection — the whole, model, persona, and progress slots (there is no per-seat model or persona override). whole is a whole-preset id (mpm-…), model is a model placement, persona is a persona placement, and progress is a progress preset (fast, balanced, deep, independent). fast, balanced, and deep match the Light, Standard, and Deep depths; independent is separate from depth: participants speak at the same time within each round, with the same number of rounds as balanced. Each slot also accepts a preset id you saved in the web app (my-<scope>-…@v<n>, listed by GET /v1/models); another person's preset is rejected. Changing any value marks the result as custom.
- idempotency_key
- A key that keeps a repeated request from creating a second meeting. The same key returns the same job.
Model list
GET /v1/models returns recommended presets by purpose and depth. They match the Light, Standard, and Deep presets in the web new-meeting dialog, and the name is the model id, so pass it to model as is. The preset sets the participant tier, headcount, persona placement, rounds, and deliverable; omit model to use the standard preset for the purpose.
Details
In preset names, fast means Light. The preset also sets utterance length, and each entry lists the values it sets. An id that is not on the list is rejected with 400. Turn on web search, reasoning, or evidence with web_search, reasoning, and evidence in extra_body.mpm. Model tiers or evidence mode your plan does not include are swapped for ones you can use, and the swaps are listed in mpm.preset on the response. The response also carries mpm.presets, the item preset keys (model placement, persona placement, progress), which you pick with extra_body.mpm.presets (see presets below).
Judgment
Judgment form: one request = one meeting, takes minutes (non-streaming responses wait up to 10 minutes; streaming waits until the meeting ends), billed per meeting. Use it as a judgment tool (MCP deliberate) or a subagent model, not as a coding agent's main model.
Agent
Agent form: a coding agent's main model — seconds per step, a meeting only when needed. Each step bills one moderator call; a step that convenes a meeting adds one meeting.
- mpm-agent-fast — summon rule: at most 1 meeting(s) per conversation · always: planning · cap $0.10 per meeting
- mpm-agent-standard — summon rule: at most 2 meeting(s) per conversation · always: planning · final review · cap $0.30 per meeting
- mpm-agent-deep — summon rule: at most 4 meeting(s) per conversation · always: planning · final review · cap $0.60 per meeting
Status
Read progress from mpm.status in the response, and keep watching the meeting in the same web room. Streaming (stream: true) is not token-by-token output: it keeps the connection alive with a heartbeat and streams round progress. For long meetings, prefer stream: true.
Details
trace_url is a viewing address that requires the owner to sign in. Streaming (stream: true) sends a first byte and a heartbeat every 30 seconds, streams round progress and each participant and facilitator utterance live as reasoning_content, and sends the finished result at the end — only in the shape an OpenAI client accepts. A non-streaming wait can hit a proxy idle timeout.
- created
- Accepted
- running
- Running
- awaiting_tools
- Waiting for tool results — run the tool_calls and return them as tool messages with the same tool_call_id.
- completed
- Completed (reached a conclusion)
- partial
- Partly completed (no conclusion)
- blocked
- Stopped by a safety rule — finish_reason in the response is content_filter
- failed
- Failed
Limits and safety
Meetings are non-public by default. Debt brokering and gambling requests are refused; legal, investment, and medical topics proceed only after you confirm, with output limited to general information. Inputs with personal data, trade secrets, or credentials are warned about or blocked.
Details
Debt brokering covers arranged lending, brokering, and debt adjustment; gambling covers gambling, betting, lotteries, and speculative games. Legal, investment, and medical topics show a notice and proceed after you confirm. Warnings and blocks for personal data, trade secrets, or credentials apply to private meetings as well as public ones. Errors use the OpenAI error shape: 401 for a bad key, 400 for an invalid input value, and 404 when a resource is not found, without revealing whether it ever existed.