Solar Pro 4 API

upstage/solar-pro4
Solar Pro 4 is Upstage's large language model with a 512K-token context window, built for agentic workflows, office productivity, document-intensive work, and coding.
Context
512K tokens
Input
$0.03174 / 1M tokens
Output
$0.12696 / 1M tokens
Released
Aug 10, 2026

Overview

What is Solar Pro 4 API?

Solar Pro 4 is available through AIMLAPI.

Technical Specifications
- Supported inputs: Image, Text
- Output: Text
- Context window: 524,288 tokens / Max output: 131,072 tokens
- Endpoint: /chat/completions

Solar Pro 4 API Pricing
- Input: $0.039 / 1M tokens
- Output: $0.156 / 1M tokens

Where to Use Solar Pro 4

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.

Office productivity and document-intensive work
Draft, summarize, and reason over large documents and reports without aggressive chunking, thanks to the 512K-token context window.

Code Sample
[embed]

Uptime and performance

  • Uptime (24h): 100%
  • Uptime (7d): 100%
  • Availability (24h): 100%
  • Error rate (24h): 0%
  • End-to-end latency (24h median): 879ms
  • Time to first token (24h median): 796ms
  • Throughput (24h median): 5.1 tok/s

Measured on the AI/ML API gateway across live traffic. Figures are medians unless stated. Last updated 2026-10-12.

Use cases

Solar Pro 4 is documented as suited to document understanding and information extraction, including workflows that read source material and ground answers in evidence. It is also documented for long-context contract and filing review, where many pages or multiple documents are processed in a single session. Another stated use case is terminal-based automation and other multi-step agentic workflows that chain tool calls over many steps. It is also described as fitting office productivity and document-intensive work such as generating structured deliverables from business documents.

How to use Solar Pro 4 API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to upstage/solar-pro4.
import requests

r = requests.post(
    "https://api.aimlapi.com/v1/chat/completions",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "upstage/solar-pro4",
      "messages": [
        {
          "role": "user",
          "content": "Hello!"
        }
      ]
    },
)
print(r.json())
const r = await fetch("https://api.aimlapi.com/v1/chat/completions", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "upstage/solar-pro4",
    "messages": [
      {
        "role": "user",
        "content": "Hello!"
      }
    ]
  }),
});
console.log(await r.json());
curl -X POST https://api.aimlapi.com/v1/chat/completions \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"upstage/solar-pro4","messages":[{"role":"user","content":"Hello!"}]}'

OpenAI-compatible — swap the base URL and it works with your existing SDK.

Solar Pro 4 API Pricing

TypePrice
Input
$0.03174 / 1M tokens
Output
$0.12696 / 1M tokens
Cached input
$0.006348 / 1M tokens

Solar Pro 4 Benchmarks

BenchmarkScoreWhat it measuresSourceRetrieved
Intelligence
28.2
Composite score across standardised reasoning, knowledge and problem-solving evaluations, measured independently by Artificial AnalysisSourceSeptember 12, 2026
Coding
52.7
Composite score across standardised coding evaluations, measured independently by Artificial AnalysisSourceSeptember 12, 2026
SWE-bench Verified
70.6
Resolving verified real GitHub issuesSourceSeptember 20, 2026

Solar Pro 4 vs other models

ModelInputOutputContextBest for
Solar Pro 4
This page
$0.03174 / 1M tokens
$0.12696 / 1M tokens
512K tokens
Agentic workflows, coding & document analysis
$5 / 1M tokens
$25 / 1M tokens
1M tokens
Complex agentic coding and enterprise workflows
$2 / 1M tokens
$6 / 1M tokens
500K tokens
Reasoning + agents with long context
$2 / 1M tokens
$12 / 1M tokens
1M tokens
Everyday coding + agents
$3 / 1M tokens
$15 / 1M tokens
1M tokens
Long-context, multimodal & agentic workflows

Frequently asked questions

Solar Pro 4 has a 524,288 tokens context window and can return up to 131,072 tokens.

Solar Pro 4 takes image, text as input and returns text.

Use upstage/solar-pro4 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.

Solar Pro 4 became available on August 10, 2026.

Solar Pro 4 is priced at input $0.041262 / 1M tokens, output $0.165048 / 1M tokens, cached input $0.0082524 / 1M tokens.

Yes, Solar Pro 4 can stream responses as they are generated.

Yes, Solar Pro 4 accepts image input alongside text.

Solar Pro 4 was built by Upstage.

Solar Pro 4 is suited for agentic workflows, office productivity, document-intensive work, and coding.

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

Start building with Solar Pro 4

Get API Key
1000+ models, one API.