uttapen

North Mini Code (free) API: toman pricing and code

cohere/north-mini-code:free

Free · shared capacitytoolsreasoning
Input · per 1M tokens
0 toman
Output · per 1M tokens
0 toman
One 1,000-word request ≈
0 toman

You are billed for the usage the request actually reported. Prices follow the market.Pricing and top-ups

North Mini Code (free) example: a multi-step problem with reasoning

The example is picked from this model's own capabilities. Drop in your key and it runs as is.

from openai import OpenAI

client = OpenAI(base_url="https://api.uttapen.ir/v1", api_key="sk-up-…")

resp = client.chat.completions.create(
    model="cohere/north-mini-code:free",
    messages=[{"role": "user", "content": (
        "A shop has 3 warehouses. A ships 120 orders a day, B ships 85 and C ships 40. "
        "If C closes and its load is split between A and B in proportion to their capacity, how many does each ship a day? "
        "Work through it step by step and give just the two numbers at the end."
    )}],
    reasoning_effort="medium",   # low | medium | high
)
print(resp.choices[0].message.content)
# reasoning tokens count as output tokens too:
print(resp.usage.completion_tokens_details)

What is North Mini Code (free) good for?

North Mini Code (free) is one of Cohere's models. Put "cohere/north-mini-code:free" in the model field and the rest of your code stays as it is. North Mini Code (free) keeps 256,000 tokens in view at once, and that number is what caps the conversation history in your product. A single response can run to 64,000 tokens. It is free: nothing leaves your wallet. The capacity is shared across all users and there is a daily cap per account, so treat it as a testing lane rather than a production dependency.

What you get on top of text in, text out: it supports tool calling, so it can invoke your own functions with valid arguments; it has a reasoning mode that pays off on multi-step problems, maths and debugging. All of it works through the standard parameters of the official OpenAI SDK — no custom client, no wrapper. Keep in mind that reasoning tokens are output tokens and do appear on the bill.

Input runs at 0 toman per 1M tokens and output at 0 — output costs 0× input, so trimming the answer saves more than trimming the prompt. You are always charged for the usage the request actually reported, never for the estimate, and a failed request costs nothing.

The closest alternative with the same capabilities from a different provider is Ling 3.0 Flash Fin (free), and its context window is smaller. Both run on the same key and the same code, so trying the other one is a single string change.

Cohere has 5 models in our catalogue; the cheapest is Command R7B (12-2024) at 71 toman per thousand words and the dearest Command R+ (08-2024) at 4,715. Among the less common parameters it accepts top_k — all through the standard request body. It does not support response_format, structured_outputs, which most models here do, so test before switching if your code relies on them. By context size the nearest option from another provider is Codestral 2508 at 256,000 tokens.

Where it makes sense: proving an idea works before you spend anything, logic puzzles and code review, agents that reach out to APIs and databases, analysing a long document or codebase in one request.

Provider's own description

North Mini Code is Cohere's first agentic coding model and the debut of its North family. A sparse mixture-of-experts model with 30B total parameters and 3B active, it is optimized...

Three real jobs, priced on this model

Each figure is derived from the prices above and moves when they do.

JobTokensCost
One chat turn with a medium history1,500 in + 400 out0 toman
Summarising a ten-page document4,000 in + 600 out0 toman
Classifying a thousand short rows120,000 in + 20,000 out0 toman

Frequently asked

How do I call North Mini Code (free) from Iran?
Sign up with your mobile number, top the wallet up in toman, create an API key, then in the official OpenAI SDK point base_url at https://api.uttapen.ir/v1 and set model to "cohere/north-mini-code:free". Nothing else in your code changes.
What does North Mini Code (free) cost in toman?
0 toman per 1M input tokens and 0 toman per 1M output tokens; a 1,000-word request is around 0 toman. You pay for the usage that request actually reported, and a failed request costs nothing.
How much input does North Mini Code (free) take?
Up to 256,000 tokens per request, roughly 192k words. A single answer can reach 64,000 tokens.
Does North Mini Code (free) support streaming and tool calling?
Streaming (stream=true) works on every model here. This one supports tool calling in the standard OpenAI shape.
What are the limits on a free model?
Free models have a daily per-user cap and their capacity is shared with everyone else. When the shared pool is exhausted the request is refused with a clear error and your wallet is untouched.