AI Prosumer
EN
huggingface/smollm2:latest

SmolLM2 is a family of compact language models available in three size: 135M, 360M, and 1.7B parameters.

Input → Output
Text Text
Input / Output · per 1M tokens
Not available in Credits
Context window
8,192 tokens
License: open_source

From model to application

Quick Start

API reference
  1. Get your API key

    Create a key in the ShareAI Console, then save it as an environment variable on your server.

    Create API key
    Environment variable
    export SHAREAI_API_KEY="your-api-key"
  2. Choose your endpoint

    Choose a tag available in this access view to see its API request.

Pricing

No Credits offer for this tag

Choose another Credits tag or explore Token Exchange in Network.

Explore Network →

A little more detail

Frequently asked questions

What is smollm2?

SmolLM2 is a family of compact language models available in three size: 135M, 360M, and 1.7B parameters.

How much does smollm2 cost?

A per-token price has not been published for this tag. Check your Console for available access and current pricing.

What inputs and outputs does smollm2 support?

Inputs: Text. Outputs: Text. These capabilities apply to the selected model tag. Check the endpoint documentation for supported request formats.

What is the context length of smollm2?

This tag has a context window of 8,192 tokens. Context size and pricing thresholds are separate. Request limits can be lower for a particular deployment.

Does smollm2 support tool calling and structured outputs?

Tool calling: Supported.

How do I use smollm2 with ShareAI?

Create an API key in the ShareAI Console, choose a model tag, and send an authenticated request to the endpoint in Quick Start. Your key must have access to the chosen model. Keep your key on your server.