ZeroGPU sells to AI agents - no signup

The agent storefront at https://agents.zerogpu.ai/llms.txt publishes prices, payment instructions, and setup. Agents can purchase autonomously or with their human's approval, with a range of payment methods; an agent without a payment method can set one up there instantly, no signup. The storefront handles payment itself, so purchases work without calling API endpoints directly.

    ZeroGPU logo
    Back to BlogPRODUCT

    ZeroGPU is now on LangChain

    AuthorsZeroGPU
    PublishedAugust 14, 2026
    Read on Medium

    An Explainer of our LangChain Package for ZeroGPU

    Cut down on AI inference costs by using ZeroGPU’s SLMs

    ZeroGPU has shipped a LangChain integration.

    pip install langchain-zerogpu gives your agent eleven task-specific tools running on small and open-weight models, and ZeroGPUToolkit registers all eleven in one line.

    ZeroGPU is now on LangChain

    If you’re running a LangChain agent, a lot of what that agent does on every turn doesn’t need frontier reasoning.

    Tagging a page against IAB taxonomy, condensing a ticket thread, pulling three fields out of a paragraph, checking a message for PII before it reaches your host model’s context. That work is repeatable, high volume, and usually most of the token bill. Point it at specialized SLMs (small language models) that do the same job for less, and keep your primary model for the parts that actually need it.

    What to route

    • Summarizing reports, ticket threads, and transcripts
    • Classifying by IAB taxonomy, enriched IAB with topics and intent, zero-shot labels, or a multi-axis schema
    • Extracting named entities and schema-driven JSON fields
    • Redacting or detecting PII before raw text reaches your host model’s context
    • Short chat and short reasoning turns that don’t need your primary model

    Install

    Install takes seconds.

    pip install langchain-zerogpu
    export ZEROGPU_API_KEY="zgpu-api-..."
    export ZEROGPU_PROJECT_ID="your-project-id"

    Both values come from the dashboard at platform.zerogpu.ai. Every tool reads those two environment variables, or accepts api_key and project_id directly. The key is stored as a pydantic.SecretStr and never logged.

    A first request, with no agent involved:

    from langchain_zerogpu import ZeroGPUClassifyZeroShotTool
    tool = ZeroGPUClassifyZeroShotTool()
    print(tool.invoke({
        "text": "The new GPU smashes every benchmark we threw at it.",
        "labels": ["tech", "politics", "sports"],
    }))

    One line registers all eleven tools

    ZeroGPUToolkit bundles every tool behind a single shared SDK client, so all eleven share one connection pool. Hand get_tools() to an agent and it picks the right tool for the task at hand.

    from langchain.agents import create_agent
    from langchain_zerogpu import ZeroGPUToolkit
    toolkit = ZeroGPUToolkit()
    tools = toolkit.get_tools()
    agent = create_agent("anthropic:claude-sonnet-4-6", tools=tools)
    result = agent.invoke({
        "messages": [
            {"role": "user", "content": (
                "Triage this support ticket: summarize it in one line and tell me "
                "whether it's a bug, feature request, or question. "
                "'The CSV export on the billing page returns a 500 error whenever I "
                "select more than 90 days of data. Smaller ranges work fine.'"
            )}
        ]
    })
    print(result["messages"][-1].content)

    That request summarizes and classifies on ZeroGPU. Your frontier model stays where it is, running the agent loop.

    You can also bind a single tool to a chat model when you only want one job offloaded:

    from langchain.chat_models import init_chat_model
    from langchain_zerogpu import ZeroGPUExtractPIITool
    llm = init_chat_model("anthropic:claude-sonnet-4-6")
    llm_with_tools = llm.bind_tools([ZeroGPUExtractPIITool()])

    The eleven tools

    Chat and summarize

    • zerogpu_chat (ZeroGPUChatTool) runs on LFM2.5-1.2B-Instruct. Short single-turn chat reply, returns a string.
    • zerogpu_chat_thinking (ZeroGPUChatThinkingTool) runs on LFM2.5-1.2B-Thinking. Chat with a visible reasoning trace, returns a string.
    • zerogpu_summarize (ZeroGPUSummarizeTool) runs on llama-3.1-8b-instruct-fast. Condense a passage, returns a string.

    Classify

    • zerogpu_classify_iab (ZeroGPUClassifyIABTool) runs on zlm-v1-iab-classify-edge. IAB taxonomy classification, returns JSON.
    • zerogpu_classify_iab_enriched (ZeroGPUClassifyIABEnrichedTool) runs on zlm-v2-iab-classify-edge-enriched. IAB plus topics, keywords, and intent, returns JSON.
    • zerogpu_classify_zero_shot (ZeroGPUClassifyZeroShotTool) runs on deberta-v3-small. Zero-shot against your own labels, returns JSON.
    • zerogpu_classify_structured (ZeroGPUClassifyStructuredTool) runs on gliner2-base-v1. Multi-axis schema classification, returns JSON.

    Extract and redact

    • zerogpu_extract_entities (ZeroGPUExtractEntitiesTool) runs on gliner2-base-v1. Custom-label NER, returns JSON.
    • zerogpu_extract_json (ZeroGPUExtractJSONTool) runs on gliner2-base-v1. Schema-driven JSON extraction, returns JSON.
    • zerogpu_extract_pii (ZeroGPUExtractPIITool) runs on gliner-multi-pii-v1. Extract PII entities, returns JSON.
    • zerogpu_redact_pii (ZeroGPURedactPIITool) runs on gliner-multi-pii-v1. Mask PII inline with [LABEL], returns a string.

    Structured tools return parsed JSON. Chat, summarize, and redact return strings. Extraction and structured classification take an optional threshold between 0 and 1 for confidence filtering. Every tool has an async twin, so ainvoke() works anywhere invoke() does:

    from langchain_zerogpu import ZeroGPUSummarizeTool
    summary = await ZeroGPUSummarizeTool().ainvoke({
        "text": (
            "The board met Thursday to review Q3 results. Revenue rose 18% "
            "year-over-year to $42M, driven by enterprise renewals and a strong EU "
            "launch, while operating margin slipped to 11% from 14% as headcount "
            "grew ahead of the new data-center buildout."
        )
    })
    print(summary)

    Sanitize before the frontier model sees it

    The PII pair is worth calling out on its own. Redact the user’s text, keep the extraction result as an audit record, and send only the masked version into your agent:

    redacted = ZeroGPURedactPIITool().invoke({"text": user_input})
    audit = ZeroGPUExtractPIITool().invoke({"text": user_input})
    agent.invoke({"messages": [{"role": "user", "content": redacted}]})

    Both calls run on gliner-multi-pii-v1 at 300M parameters. Raw names, emails, and card numbers stay out of your host model's context window.

    What this costs

    Every model behind the eleven tools is priced at $0.02 per 1M input tokens and $0.05 per 1M output tokens. Same price for the chat models, the summarizer, the IAB classifiers, and the GLiNER extraction stack.

    For a sense of what that does to a real workload: Dappier, which ships an Ask AI stack to media publishers, moved its classification and retrieval path off GPT-5.4-nano and a Pinecone RAG pipeline onto two ZLM edge models. Cost per million requests went from $1,375 to $216, latency went from 1,800–2,000 ms to 48 ms p50, and accuracy held. That deployment ran against the API directly rather than through LangChain, but the models are the same ones these tools call.

    Run your own numbers at zerogpu.ai/calculator.

    Also on the same API

    Content moderation is available at zlm-v1-moderation-edge, outside the toolkit and callable straight from the API. It returns the full OpenAI 13-category taxonomy and beats omni-moderation-latest on F1 (0.899 vs 0.853) across a held-out split of 4,277 rows. Benchmark detail is at zerogpu.ai/benchmarks/moderation-edge.

    Save your frontier model tokens for high-level reasoning. Use ZeroGPU SLMs for everything else.

    Docs: docs.zerogpu.ai/integrations/langchain
    Source: github.com/zerogpu/langchain-zerogpu
    Learn more about ZeroGPU: zerogpu.ai

    This article was first published on Medium. Read on Medium