npx skills add ...
npx skills add inference-sh/skills --skill python-sdk
Python SDK for inference.sh - run AI apps, build agents, and integrate with all models. Package: inferencesh (pip install inferencesh). Supports sync/async, streaming, file uploads. Build agents with template or ad-hoc patterns, tool builder API, skills, and human approval. Use for: Python integration, AI apps, agent development, RAG pipelines, automation. Triggers: python sdk, inferencesh, pip install, python api, python client, async inference, python agent, tool builder python, programmatic ai, python integration, sdk python
npx skills add inference-sh/skills --skill python-sdk
Install the belt CLI skill:
npx skills add belt-sh/cli
Build AI applications with the inference.sh Python SDK.

Requirements: Python 3.8+
Get your API key: Settings → API Keys → Create API Key
| Parameter | Type | Description |
|---|---|---|
app | string | App ID (namespace/name@version) |
input | dict | Input matching app schema |
setup | dict | Hidden setup configuration |
infra | string | 'cloud' or 'private' |
session | string | Session ID for stateful execution |
session_timeout | int | Idle timeout (1-3600 seconds) |
Keep workers warm across multiple calls:
Use pre-built agents from your workspace:
Create custom agents programmatically:
| Model | App Reference |
|---|---|
| Claude Sonnet 4 | infsh/claude-sonnet-4@latest |
| Claude 3.5 Haiku | infsh/claude-haiku-35@latest |
| GPT-4o | infsh/gpt-4o@latest |
| GPT-4o Mini | infsh/gpt-4o-mini@latest |