Small 4 API

Small 4 on AIMLAPI.

Modalities
Image, TextText
In / Out price
$0.1984/$0.7935per 1M
Context window
256K tokens
Released
Mar 16, 2026

Small 4 overview

The pelican test: one prompt, every text model, unedited SVG output from Nov 3, 2026.

SVG of a pelican riding a bicycle, written by Small 4 through AI/ML API

Small 4 specs

Model ID
mistralai/mistral-small-2603
Developer
Mistral AI
Context window
262,144 tokens
Input
Image, Text
Output
Text
API
OpenAI-compatible, base URL https://api.aimlapi.com/v1

Coding and code review
Generate, debug, and review code across languages, reading whole files or repos in a single prompt.

Agentic and multi-step workflows
Reliable tool-calling and instruction-following suit agent loops that plan, call tools, and iterate.

Complex reasoning
Extended reasoning improves reliability on multi-step math, logic, and technical analysis.

Long-document analysis
Summarize and extract from contracts, papers, and reports without aggressive chunking.

Use cases

General chat assistant: Mistral Small 4 is documented as suited to general chat assistant use cases, and the provider material also describes it as intended for enterprises seeking general chat assistants.

Document parsing and extraction: It is documented as suitable for document understanding, document parsing and extraction, and data extraction from documents and images.

Coding agent: The model is documented as suited to coding tasks, coding agent workflows, and SWE automation or codebase exploration.

Research assistant: It is documented as suited to research tasks, including math and research use cases for researchers.

Capabilities

  • Function calling
  • Reasoning
  • Streaming
  • Structured outputs
  • Web search

Small 4 benchmarks by Artificial Analysis

See how Small 4 compares in intelligence, generation speed, cost per task and latency. Data retrieved Nov 3, 2026.

Intelligence

Index v5.0

Speed

Output tokens / second

Cost per task

USD / benchmark task

Benchmark results

Compare 16 models available on AI/ML API across 5 independent benchmarks.

Humanity's Last Exam

Expert-written questions across academic subjects.

Small 4 API pricing

Small 4 pricing in US dollars
UsagePriceUnit
Input$0.19841M tokens
Output$0.79351M tokens
Cached input$0.01591M tokens

Prices from the AI/ML API price list, checked on Nov 4, 2026.

Small 4 vs other models: token prices

AI/ML API input and output rates for 5 models, per million tokens.

AI/ML API model prices in USD per million tokens
ModelInputOutput
Small 4$0.1984$0.7935
Mercury 2.5$0.2116$0.7935
Devstral 2 2512$0.4655$2.33
Mistral Large 4$1.36$4.18
Medium 3.5$1.59$7.93

How to use the Small 4 API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "mistralai/mistral-small-2603",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'

Related articles

All posts

Small 4 FAQ

What is the context window of Small 4?

Small 4 has a 262,144 tokens context window.

What inputs and outputs does Small 4 support?

Small 4 takes image, text as input and returns text.

What is the model ID for Small 4?

Use mistralai/mistral-small-2603 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.

How much does Small 4 cost?

Small 4 costs $0.1984 input and $0.7935 output per 1M tokens on AI/ML API, billed as you go with no subscription.

Does Small 4 support streaming?

Yes, Small 4 can stream responses as they are generated.

Can Small 4 read images?

Yes, Small 4 accepts image input alongside text.

Who created Small 4?

Small 4 was built by Mistral AI.

Does Small 4 support function calling and tool use?

Yes, Small 4 supports function calling, parallel tool calls, and structured outputs.

Start building with Small 4

Small 4 API

mistralai/mistral-small-2603

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "mistralai/mistral-small-2603",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'