# Solar Mini 4

Canonical page: https://agentsky.dev/models/upstage/solar-mini4
JSON record: https://gateway.agentsky.dev/v1/models/upstage/solar-mini4

Solar Mini 4 is a text-input model by Upstage, available through the AgentSky API as upstage/solar-mini4 at $0.058025 per million input tokens and $0.2321 per million output tokens, with a 524K context window.

Solar Mini 4 is Upstage's compact, cost-efficient language model, a 35B-parameter mixture-of-experts with 3B active parameters and a 524K context window.

## Facts

- **Model id:** `upstage/solar-mini4`
- **Maker:** Upstage
- **Input modalities:** Text
- **Context:** 524K
- **Max output tokens:** 131,072
- **Aliases:** `upstage/solar-mini4`, `solar-mini4`

## Pricing

USD per million tokens on the default plan. Signed-in pages show your own plan's price; every response carries the cost of that call in `usage.cost`.

| Meter | Per 1M tokens |
|---|---|
| Input | $0.058025 |
| Output | $0.2321 |
| Cache read | $0.005803 |
| Cache write | $0.058025 |

## Use it

Anthropic wire base URL: `https://gateway.agentsky.dev`. OpenAI wire base URL: `https://gateway.agentsky.dev/v1`. Authenticate with an AgentSky API key (`ast_…`) and pass the model id.

### OpenAI SDK

```js
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://gateway.agentsky.dev/v1",
  apiKey: process.env.AGENTSKY_API_KEY, // ast_…
});

const completion = await client.chat.completions.create({
  model: "upstage/solar-mini4",
  messages: [{ role: "user", content: "Summarise this ticket." }],
});
console.log(completion.usage.cost); // USD, in the response
```

### Codex

```bash
export OPENAI_BASE_URL="https://gateway.agentsky.dev/v1"
export OPENAI_API_KEY="$AGENTSKY_API_KEY"

codex --model upstage/solar-mini4
```

### OpenCode

```js
// opencode.json — then switch models any time with /models
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "agentsky": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "AgentSky",
      "options": {
        "baseURL": "https://gateway.agentsky.dev/v1",
        "apiKey": "{env:AGENTSKY_API_KEY}"
      },
      "models": { "upstage/solar-mini4": {} }
    }
  }
}
```

## Questions

### What is Solar Mini 4?

Solar Mini 4 is a model from Upstage. Solar Mini 4 is Upstage's compact, cost-efficient language model, a 35B-parameter mixture-of-experts with 3B active parameters and a 524K context window.

### How much does Solar Mini 4 cost?

$0.058025 / $0.2321 per million tokens at the prices shown, for input and output respectively. The exact price of every call comes back in the response as usage.cost, so you never have to compute it.

### What is the context length of Solar Mini 4?

524K tokens, and it writes up to 131K tokens in one reply. These are the limits listed for this model in the current AgentSky catalog.

### Which clients can call Solar Mini 4?

Anything that speaks the OpenAI-compatible request format. Point the client's base URL at the gateway, use an AgentSky key, and pass upstage/solar-mini4 as the model.

### How do I name Solar Mini 4 in a request?

The gateway accepts upstage/solar-mini4, solar-mini4. Any of them resolves to the same model, so an existing integration usually needs no change to its model string.

### Can Solar Mini 4 read images?

No image input is listed for this model. Its supported input types are text. For screenshots or photographs, choose a model that lists image input.

### What output can Solar Mini 4 produce?

The listed output types are text. This model returns text. Producing image, video or audio files requires a suitable tool or another model; it is not included in text generation.

### How should I plan a long prompt for Solar Mini 4?

Plan your instructions, conversation history and source material around the 524K-token context limit, leaving room for the response. The listed response ceiling is 131K tokens. A larger window lets you supply more relevant material; it does not make unrelated content useful.

### What would 10,000 input tokens and 2,000 output tokens cost with Solar Mini 4?

At the displayed input and output rates, the model-token subtotal is $0.00104445. This example assumes uncached input and excludes additional pricing categories, tool calls and agent runtime. Actual usage determines the final charge.

### How is cached input priced for Solar Mini 4?

The catalog lists $0.005803 per million cache-read tokens. Cache writes are listed at $0.058025 per million tokens. Repeating a prompt does not by itself guarantee a cache hit; only usage reported as cached receives that rate.

### Does the Solar Mini 4 token price cover an entire agent task?

No. The model price covers the model usage described above. A task can also incur tool and runtime charges, and several model calls may be needed to complete it. Compare total task usage when evaluating cost.

### How do I use Solar Mini 4 on AgentSky?

The composer above preselects Solar Mini 4 for a compatible agent. Enter a concrete task, select any tools or connectors it needs, and send. Sign in if prompted; paid execution requires available credits.
