Skip to content
Back to skills

Using Model Endpoint

ASecurity

Call a registered model endpoint over its native HTTP API from the endpoint's scoped inference kernel (BASE_URL preloaded). Load once a task needs predictions from a registered model endpoint.

  • 230 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 6, 2026
ai-agentspythonrustapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add BioTender-max/awesome-bio-agent-skills --skill using-model-endpoint --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Using Model Endpoint?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Using Model Endpoint
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/biotender-max-using-model-endpoint/badge)](https://www.skillsdirectory.com/skills/biotender-max-using-model-endpoint)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: using-model-endpoint
description: Call a registered model endpoint over its native HTTP API from the endpoint's scoped inference kernel (BASE_URL preloaded). Load once a task needs predictions from a registered model endpoint.
license: Apache-2.0
---

You are a **pure HTTP client of `BASE_URL`**. Each registered model endpoint
gets its own inference kernel — a Python REPL whose network egress is scoped
to exactly that endpoint — reached via
`compute_provider({'provider': '<slug>', 'code': '…'})` (`<slug>` from
`list_compute`, without the `infer:` prefix).

- `BASE_URL` is preloaded (as a Python variable AND as
  `os.environ["BASE_URL"]`) — build request URLs from it, never hardcode
  hosts/ports. Call the model's **native API** with `httpx` (preinstalled)
  or `requests`; request shapes live in the provider's own runbook skill
  (the registration's `skillName`).
- Hosted endpoints: send `Authorization: Bearer $INFER_API_KEY` (always the
  canonical env name when a credential is delivered; the credential's own
  name is usually aliased too). Local endpoints need no auth header.
- Requests ride the sandbox HTTP proxy (`HTTP_PROXY`/`HTTPS_PROXY` are set) —
  don't disable it (e.g. `trust_env=False`) or the endpoint is unreachable.
- No job lifecycle here (no submit/harvest) — direct request/response only.

**Managed endpoints** (entries with `managed: true` / a `location` field in
`list_compute`): their lifecycle — daemon-owned start/stop, registration,
`free_port()`/`register()` — lives in the
**`managed-model-endpoints`** skill. Cells against them are still just
HTTP calls to `BASE_URL`; the daemon brings the model up on demand (a cold
start streams its progress into your cell and can take minutes).

Files in this skill

  • SKILL.md1.7 KB
  • provider.json243 B
  • provider.py5.1 KB
  • requirements.lock1.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.