Close Menu
techwavedispatch.com

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Subscribe to Enterprise Hub with your AWS Account

    November 12, 2026

    Building Cost-Efficient Enterprise RAG applications with Intel Gaudi 2 and Intel Xeon

    November 12, 2026

    License to Call: Introducing Transformers Agents 2.0

    November 12, 2026
    Facebook X (Twitter) Instagram
    Trending
    • Subscribe to Enterprise Hub with your AWS Account
    • Building Cost-Efficient Enterprise RAG applications with Intel Gaudi 2 and Intel Xeon
    • License to Call: Introducing Transformers Agents 2.0
    • PaliGemma โ€“ Google’s Cutting-Edge Open Vision Language Model
    • Free Lunch Uncertainty: Sequence-Level R\'enyi Entropy from Particle Decoding for Adaptive LLM Reasoning
    • Hugging Face x LangChain : A new partner package
    • Enhancing Legal Machine Translation with Structured Reasoning
    • Introducing the Open Arabic LLM Leaderboard
    Facebook X (Twitter) Instagram
    techwavedispatch.com
    Subscribe
    Thursday, November 12
    • Home
    • AI Tools & Software
    • Machine Learning
    • Generative AI
    • Robotics & Automation
    • Future Tech & Hardware
    • AI in Business
    • Ethics & Regulations
    • More
      • Gadgets & Smart Devices
      • Cybersecurity & AI
      • Tech Breakthroughs
    techwavedispatch.com
    Home»AI Tools & Software»Cohere on Hugging Face Inference Providers ๐Ÿ”ฅ
    AI Tools & Software

    Cohere on Hugging Face Inference Providers ๐Ÿ”ฅ

    adminBy adminNovember 10, 2026No Comments6 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    Cohere on Hugging Face Inference Providers ๐Ÿ”ฅ
    Share
    Facebook Twitter LinkedIn Pinterest Email

    banner image

    We’re thrilled to share that Cohere is now a supported Inference Provider on HF Hub! This also marks the first model creator to share and serve their models directly on the Hub.

    Cohere is committed to building and serving models purpose-built for enterprise use-cases. Their comprehensive suite of secure AI solutions, from cutting-edge Generative AI to powerful Embeddings and Ranking models, are designed to tackle real-world business challenges. Additionally, Cohere Labs, Cohereโ€™s in house research lab, supports fundamental research and seeks to change the spaces where research happens.

    Starting now, you can run serverless inference to the following models via Cohere and Inference Providers:

    Light up your projects with Cohere and Cohere Labs today!



    Cohere Models

    Cohere and Cohere Labs bring a swathe of their models to Inference Providers that excel at specific business applications. Letโ€™s explore some in detail.



    CohereLabs/c4ai-command-a-03-2025 ๐Ÿ”—

    Optimized for demanding enterprises that require fast, secure, and high-quality AI. Its 256k context length (2x most leading models) can handle much longer enterprise documents. Other key features include Cohereโ€™s advanced retrieval-augmented generation (RAG) with verifiable citations, agentic tool use, enterprise-grade security, and strong multilingual performance (support for 23 languages).



    CohereLabs/aya-expanse-32b ๐Ÿ”—

    Focuses on state-of-the-art multilingual support, applying the latest research on multilingual pre-training. Supports Arabic, Chinese (simplified & traditional), Czech, Dutch, English, French, German, Greek, Hebrew, Hindi, Indonesian, Italian, Japanese, Korean, Persian, Polish, Portuguese, Romanian, Russian, Spanish, Turkish, Ukrainian, and Vietnamese with 128K context length.



    CohereLabs/c4ai-command-r7b-12-2024 ๐Ÿ”—

    Ideal for low-cost or low-latency use cases, bringing state-of-the-art performance in its class of open-weight models across real-world tasks. This model offers a context length of 128k. It delivers a powerful combination of multilingual support, citation-verified retrieval-augmented generation (RAG), reasoning, tool use, and agentic behavior. Also supports 23 languages.



    CohereLabs/aya-vision-32b ๐Ÿ”—

    32-billion parameter model with advanced capabilities optimized for a variety of vision-language use cases, including OCR, captioning, visual reasoning, summarization, question answering, code, and more. It expands multimodal capabilities to 23 languages spoken by over half the world’s population.



    How it works

    You can use Cohere models directly on the Hub either on the website UI or via the client SDKs.

    You can find all the examples mentioned in this section on the Cohere documentation page.



    In the website UI

    You can search for Cohere models by filtering by the inference provider in the model hub.

    Cohere provider UI

    From the Model Card, you can select the inference provider and run inference directly in the UI.

    gif screenshot of Cohere inference provider in the UI



    From the client SDKs

    Letโ€™s walk through using Cohere models from client SDKs. Weโ€™ve also made a colab notebook with these snippets, in case you want to try them out right away.



    from Python, using huggingface_hub

    The following example shows how to use Command A using Cohere as your inference provider. You can use a Hugging Face token for automatic routing through Hugging Face, or your own cohere API key if you have one.

    Install huggingface_hub v0.30.0 or later:

    pip install -U "huggingface_hub>=0.30.0"
    

    Use the huggingface_hub python library to call Cohere endpoints by defining the provider parameter.

    from huggingface_hub import InferenceClient
    
    client = InferenceClient(
        provider="cohere",
        api_key="xxxxxxxxxxxxxxxxxxxxxxxx",
    )
    
    messages = [
            {
                "role": "user",
                "content": "How to make extremely spicy Mayonnaise?"
            }
    ]
    
    completion = client.chat.completions.create(
        model="CohereLabs/c4ai-command-r7b-12-2024",
        messages=messages,
        temperature=0.7,
        max_tokens=512,
    )
    
    print(completion.choices[0].message)
    

    Aya Vision, Cohere Labsโ€™ multilingual, multimodal model is also supported. You can include images encoded in base64 as follows:

    image_path = "img.jpg"
    with open(image_path, "rb") as f:
        base64_image = base64.b64encode(f.read()).decode("utf-8")
    image_url = f"data:image/jpeg;base64,{base64_image}"
    
    from huggingface_hub import InferenceClient
    
    client = InferenceClient(
        provider="cohere",
        api_key="xxxxxxxxxxxxxxxxxxxxxxxx",
    )
    
    messages = [
            {
                "role": "user",
                "content": [
                    {
                        "type": "text",
                        "text": "What's in this image?"
                    },
                    {
                        "type": "image_url",
                        "image_url": {"url": image_url},
                    },
                ]
            }
    ]
    
    completion = client.chat.completions.create(
        model="CohereLabs/aya-vision-32b",
        messages=messages,
        temperature=0.7,
        max_tokens=512,
    )
    
    print(completion.choices[0].message)
    



    from JS using @huggingface/inference

    import { HfInference } from "@huggingface/inference";
    
    const client = new HfInference("xxxxxxxxxxxxxxxxxxxxxxxx");
    
    const chatCompletion = await client.chatCompletion({
        model: "CohereLabs/c4ai-command-a-03-2025",
        messages: [
            {
                role: "user",
                content: "How to make extremely spicy Mayonnaise?"
            }
        ],
        provider: "cohere",
        max_tokens: 512
    });
    
    console.log(chatCompletion.choices[0].message);
    



    From OpenAI client

    Here’s how you can call Command R7B using Cohere as the inference provider via the OpenAI client library.

    from openai import OpenAI
    
    client = OpenAI(
        base_url="https://router.huggingface.co/cohere/compatibility/v1",
        api_key="xxxxxxxxxxxxxxxxxxxxxxxx",
    )
    
    messages = [
            {
                "role": "user",
                "content": "How to make extremely spicy Mayonnaise?"
            }
    ]
    
    completion = client.chat.completions.create(
        model="command-a-03-2025",
        messages=messages,
        temperature=0.7,
    )
    
    print(completion.choices[0].message)
    



    Tool Use with Cohere Models

    Cohereโ€™s models bring state-of-the-art agentic tool use to Inference Providers so letโ€™s explore that in detail. Both the Hugging Face Hub client and the OpenAI client are compatible with tools via inference providers, so the above examples can be expanded.

    First, we will need to define tools for the model to use. Below we define the get_flight_info which calls an API for the latest flight information using two locations. This tool definition will be represented by the modelโ€™s chat template. Which we can also explore in the model card (๐ŸŽ‰ open source).

    tools = [
        {
            "type": "function",
            "function": {
                "name": "get_flight_info",
                "description": "Get flight information between two cities or airports",
                "parameters": {
                    "type": "object",
                    "properties": {
                        "loc_origin": {
                            "type": "string",
                            "description": "The departure airport, e.g. MIA",
                        },
                        "loc_destination": {
                            "type": "string",
                            "description": "The destination airport, e.g. NYC",
                        },
                    },
                    "required": ["loc_origin", "loc_destination"],
                },
            },
        }
    ]
    

    Next, weโ€™ll need to pass messages to the inference client for the model to use the tools when relevant. In the example below we define the assistantโ€™s tool call in tool_calls, for the sake of clarity.

    
    messages = [
        {"role": "developer", "content": "Today is April 30th"},
        {
            "role": "user",
            "content": "When is the next flight from Miami to Seattle?",
        },
        {
            "role": "assistant",
            "tool_calls": [
                {
                    "function": {
                        "arguments": '{ "loc_destination": "Seattle", "loc_origin": "Miami" }',
                        "name": "get_flight_info",
                    },
                    "id": "get_flight_info0",
                    "type": "function",
                }
            ],
        },
        {
            "role": "tool",
            "name": "get_flight_info",
            "tool_call_id": "get_flight_info0",
            "content": "Miami to Seattle, May 1st, 10 AM.",
        },
    ]
    

    Finally, the tools and messages are passed to the create method.

    from huggingface_hub import InferenceClient
    
    client = InferenceClient(
        provider="cohere",
        api_key="xxxxxxxxxxxxxxxxxxxxxxxx",
    )
    
    completion = client.chat.completions.create(
        model="CohereLabs/c4ai-command-r7b-12-2024",
        messages=messages,
        tools=tools,
        temperature=0.7,
        max_tokens=512,
    )
    
    print(completion.choices[0].message)
    



    Billing

    For direct requests, i.e. when you use a Cohere key, you are billed directly on your Cohere account.

    For routed requests, i.e. when you authenticate via the Hub, you’ll only pay the standard Cohere API rates. There’s no additional markup from us, we just pass through the provider costs directly. (In the future, we may establish revenue-sharing agreements with our provider partners.)

    Important Note โ€ผ๏ธ PRO users get $2 worth of Inference credits every month. You can use them across providers. ๐Ÿ”ฅ

    Subscribe to the Hugging Face PRO plan to get access to Inference credits, ZeroGPU, Spaces Dev Mode, 20x higher limits, and more.

    Cohere Face Hugging Inference Providers
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    admin
    • Website

    Related Posts

    Subscribe to Enterprise Hub with your AWS Account

    November 12, 2026

    Building Cost-Efficient Enterprise RAG applications with Intel Gaudi 2 and Intel Xeon

    November 12, 2026

    License to Call: Introducing Transformers Agents 2.0

    November 12, 2026
    Leave A Reply Cancel Reply

    Top Posts

    NVIDIA Is Investigating Reports That CEO Jensen Huang Was The Target Of Chinese Spy Efforts

    November 8, 202619 Views

    Anthropic releases new Mythos and Fable models amid RSI concerns

    November 9, 20265 Views

    Efficient Vision-Language-Action Model trained on Lerobot Community Data

    November 10, 20264 Views

    Selected-Risk Calibration for Feasibility at Returned Decisions

    November 10, 20263 Views
    Don't Miss
    AI Tools & Software

    Subscribe to Enterprise Hub with your AWS Account

    By adminNovember 12, 20260

    You can now upgrade your Hugging Face Organization to Enterprise using your AWS account -…

    Building Cost-Efficient Enterprise RAG applications with Intel Gaudi 2 and Intel Xeon

    November 12, 2026

    License to Call: Introducing Transformers Agents 2.0

    November 12, 2026

    PaliGemma โ€“ Google’s Cutting-Edge Open Vision Language Model

    November 12, 2026
    About Us

    Welcome to TechWave Dispatch

    At TechWave Dispatch, we bring you the latest news, insights, and developments from the ever-evolving world of technology. Our mission is to keep readers informed about the innovations shaping our digital future.

    From artificial intelligence and machine learning to cybersecurity, robotics, smart devices, and groundbreaking technologies, we cover the topics that matter in today's fast-moving tech landscape.

    Our Picks

    Subscribe to Enterprise Hub with your AWS Account

    November 12, 2026

    Building Cost-Efficient Enterprise RAG applications with Intel Gaudi 2 and Intel Xeon

    November 12, 2026

    License to Call: Introducing Transformers Agents 2.0

    November 12, 2026
    Most Popular

    Who Controls Scientific Discovery? โ€“ Oโ€™Reilly

    November 6, 20260 Views

    After blocking Muse, Amazon now lets users text Alexa to help them shop

    November 6, 20260 Views

    A controlled world for robot learning and evaluation

    November 6, 20260 Views
    Facebook X (Twitter) Instagram Pinterest
    • Terms and Conditions
    • Privacy Policy
    • Contact Us
    • About Us
    ยฉ 2026 TechWave Dispatch. All Rights Reserved.

    Type above and press Enter to search. Press Esc to cancel.