siam-thai/sak-family-agent/sakthai-hf-inference-providers-responses-api-deep-dive

Claude Code and agent skill by siam-thai/sak-family-agent

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

name: SakThai-hf-inference-providers-responses-api-deep-dive

Install

npx vskill@latest install siam-thai/sak-family-agent/sakthai-hf-inference-providers-responses-api-deep-dive

SKILL.md

The same SKILL.md was published earlier as siam-thai/sak-family-agent/sakthai-hf-inference-providers-responses-api-deep-dive.

HF Inference Providers — Responses API & Remote MCP (Deep Dive)

Overview

The Responses API (beta) is Hugging Face's unified OpenAI-compatible interface over Inference Providers, exposed at https://router.huggingface.co/v1. It provides a single endpoint for chat completion, tool calling, structured outputs, event-driven streaming, Remote MCP tool execution, and multi-provider routing — all billed through your HF account with free monthly credits ($0.10/mo for free users, $2/mo for PRO).

Key differentiator: The Responses API is the first HF offering that natively integrates Remote MCP servers as callable tools, letting models invoke server-hosted tools without you managing the MCP client infrastructure.

Zero-cost: Free monthly credits cover moderate usage (widgets, playground, API calls). No GPU or paid account needed. See references/hf-learnings.md for full architecture, routing strategies, MCP integration patterns, and provider comparison.

Quick Start

python
from openai import OpenAI
import os
client = OpenAI(
base_url="https://router.huggingface.co/v1",
api_key=os.getenv("HF_TOKEN"),
)
response = client.responses.create(
model="moonshotai/Kimi-K2-Instruct-0905:groq",
instructions="You are a helpful assistant.",
input="Tell me a three-sentence bedtime story about a unicorn.",
)
print(response.output_text)

Provider Routing

Append :<provider> or :<policy> to the model ID:

  • :fastest — auto-picks lowest latency provider (default)
  • :cheapest — lowest cost provider
  • :preferred — follows your HF account's provider ordering
  • Explicit — e.g. :groq, :fireworks-ai, :together, :deepinfra

Key Features

FeaturePatternDescription
Plain textinput="string"Single-turn response
Multimodalinput=[{content: [input_text, input_image]}]Text + image input
Multi-turninput=[{role}, {role}]Full conversation history
Streamingstream=TrueEvent-driven response.* events
Tool callingtools=[function_schemas]Model calls your functions
Structured outputsresponse_format=schemaGuaranteed JSON compliance
Remote MCPtools=[{type:"mcp", server_url, allowed_tools}]Call server-hosted MCP tools
Reasoning effort`reasoning={"effort": "low"\"medium"\"high"}`Control reasoning depth

Remote MCP Integration

python
response = client.responses.create(
model="moonshotai/Kimi-K2-Instruct-0905:groq",
input="how does tiktoken work?",
tools=[{
"type": "mcp",
"server_label": "gitmcp",
"server_url": "https://gitmcp.io/openai/tiktoken",
"allowed_tools": ["search_tiktoken_documentation", "fetch_tiktoken_documentation"],
"require_approval": "never",
}],
)

Multi-Provider Model Discovery

List models available via providers:

bash
# All models served by any provider
curl -s https://router.huggingface.co/v1/models
# Filter by provider
curl -s https://huggingface.co/api/models?inference_provider=groq
curl -s https://huggingface.co/api/models?inference_provider=fireworks-ai
# Get model inference status
curl -s https://huggingface.co/api/models/google/gemma-3-27b-it?expand=inference

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
2
Repository forks
2
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/siam-thai/sak-family-agent/sakthai-hf-inference-providers-responses-api-deep-dive/badge)](https://verified-skill.com/skills/siam-thai/sak-family-agent/sakthai-hf-inference-providers-responses-api-deep-dive)

Something wrong with this skill or its page? Tell us.