python-sdk
Python SDK for building AI applications, agents, and integrations with 150+ inference.sh models.
- Supports sync and async execution with streaming progress updates, fire-and-forget task submission, and stateful sessions for warm worker continuity
- Agent SDK includes template agents, ad-hoc agent creation with custom tools, and built-in capabilities like web search, code execution, and image generation
- Tool builder API enables four tool types: client tools (run in your code), app tools (call AI apps), agent tools (delegate to sub-agents), and webhook tools (external APIs)
- Automatic file upload and attachment handling for images and other file types; human approval workflows for sensitive tool calls
- Requires Python 3.8+; install with
pip install inferenceshorpip install inferencesh[async]for async support
Install the belt CLI skill:
npx skills add belt-sh/cli
Python SDK
Build AI applications with the inference.sh Python SDK.

Quick Start
pip install inferencesh
from inferencesh import inference
client = inference(api_key="inf_your_key")
More from inferen-sh/skills
video-prompting-guide
Best practices and techniques for writing effective AI video generation prompts. Covers: Veo, Seedance, Wan, Grok, Kling, Runway, Pika, Sora prompting strategies. Learn: shot types, camera movements, lighting, pacing, style keywords, negative prompts. Use for: improving video quality, getting consistent results, professional video prompts. Triggers: video prompt, how to prompt video, veo prompts, video generation tips, better ai video, video prompt engineering, video prompt guide, video prompt template, ai video tips, video prompt best practices, video prompt examples, cinematography prompts
0elevenlabs-stt
0nano-banana-2
Generate images with Google Gemini 3.1 Flash Image Preview (Nano Banana 2) via inference.sh CLI. Capabilities: text-to-image, image editing, multi-image input (up to 14 images), Google Search grounding. Triggers: nano banana 2, nanobanana 2, gemini 3.1 flash image, gemini 3 1 flash image preview, google image generation
0product-hunt-launch
0qwen-image-2
Generate and edit images with Alibaba Qwen-Image-2.0 models via inference.sh CLI. Models: Qwen-Image-2.0 (fast), Qwen-Image-2.0-Pro (professional text rendering). Capabilities: text-to-image, multi-image editing, complex text rendering. Triggers: qwen image, qwen-image, alibaba image, dashscope image, qwen image 2, qwen image pro
0seo-content-brief
0