iblai-api-inference

iblai-api-inference is a skill for Claude Code, Codex from iblai/api. It costs 100 tokens per session (1,166 once invoked), scanned A, original, MIT.

An OpenAI-compatible API for sending chat messages to a selected AI provider and model through an ibl.ai deployment.

In plain words
What is it for?
Use it for single completions, streamed responses, and tool calls, or to list available models.
Why use it?
It lets existing code that uses the OpenAI chat format call configured models without adopting a different request and response design.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for single completions, streamed responses, and tool calls, or to list available models.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/iblai/api/iblai-api-inference
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add iblai/api --skill iblai-api-inference
Clone the repo
git clone --depth 1 https://github.com/iblai/api

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for iblai-api-inference

README.md
[![agentmods](https://agentmods.dev/badge/skills/iblai/api/iblai-api-inference/github.svg)](https://agentmods.dev/skills/iblai/api/iblai-api-inference)
Your own site
<a href="https://agentmods.dev/skills/iblai/api/iblai-api-inference"><img src="https://agentmods.dev/badge/skills/iblai/api/iblai-api-inference/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for iblai-api-inference

Your own site · 80×15
<a href="https://agentmods.dev/skills/iblai/api/iblai-api-inference"><img src="https://agentmods.dev/badge/skills/iblai/api/iblai-api-inference.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,166 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 4 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 22
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 58
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 78
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 57
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00100 $0.01166
Opus 5.5 $0.00040 $0.00466
Sonnet 5.5 $0.00020 $0.00233
Haiku 4.5 $0.00010 $0.00117

Measured 3mo ago against content hash 284166110390, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

iblai-api-inference scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST \
skills/iblai-api-inference/SKILL.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.

iblai-api-inference

Call ibl.ai's OpenAI-compatible chat endpoint: identical request/response shape to OpenAI's /v1/chat/completions, but served by your deployment and routed to whichever provider/model you name. Use it for raw completions, streamed tokens, or tool calls directly — no MCP server, no agent needed. To configure which model an agent runs on use /iblai-api-agent-llm; to converse with a deployed agent (RAG, memory, history) use /iblai-api-agent-chat.

Auth & conventions

  • Header: Authorization: Api-Token $IBLAI_API_KEY on every request.

  • Path var: {org} = $IBLAI_ORG (no username in the path).

  • Model: always provider/model form, e.g. openai/gpt-5, anthropic/claude-sonnet-4. A bare name is rejected 400 invalid_request.

  • Two hosts — streaming is async/ASGI-only:

    • Non-streaming → https://api.iblai.app/dm/api/ai-mentor/orgs/{org}/v1
    • Streaming (stream: true) → https://asgi.data.iblai.app/api/ai-mentor/orgs/{org}/v1

    The sync WSGI gateway can't drive the async SSE generator, so stream:true must hit the ASGI host.

  • Not connected yet? Run /iblai-api-login first to populate IBLAI_ORG and IBLAI_API_KEY.

Reads

  • GET …/orgs/{org}/v1/models — OpenAI-style model list for the deployment; each id is a provider/model you can pass as model.

Writes

  • POST …/orgs/{org}/v1/chat/completions — run a completion (an inference call, not a state mutation; POST per the OpenAI wire format). Standard OpenAI chat body:
    {
      "model": "openai/gpt-5",
      "messages": [{ "role": "user", "content": "Hello" }],
      "stream": false,
      "tools": [],
      "stream_options": { "include_usage": true }
    }
    
    stream:true returns Server-Sent Events (data: {chunk} … data: [DONE]); omit it (or false) for one JSON completion.

Examples

Non-streaming completion:

curl -X POST \
  "https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/v1/chat/completions" \
  -H "Authorization: Api-Token $IBLAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"openai/gpt-5","messages":[{"role":"user","content":"Say hi"}]}'

Read the full file on GitHub · 94 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 94 lines · 100 tokens per session scan A 284166110390

Subscribe to this mod's changes

iblai-api-inference is a skill published in the GitHub repository iblai/api (15 stars, last pushed 2mo ago), licensed MIT. It adds 100 tokens to every session and 1,166 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

iblai-api-inference compared with skills from other repositories

iblai-api-inference next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
iblai-api-inferenceiblai/apiSkill152mo agoMITA100Claude Code, Codex
llm-cost-advisorulises-jeremias/agent-toolkitSkill28todayMITA45Claude Code
dbt-validationulises-jeremias/agent-toolkitSkill28todayMITA37Claude Code
programasweightsprogramasweights/skillsSkill925d agoMITA215Claude Code
aeonrootcastleco/rei-skillsSkill11yesterdaynoneA57Claude Code, Codex
azure-ai-openai-dotnetrootcastleco/rei-skillsSkill11yesterdaynoneA92Claude Code, Codex
azure-ai-projects-dotnetrootcastleco/rei-skillsSkill11yesterdaynoneA92Claude Code, Codex