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]
Measured on the AI/ML API gateway across live traffic. Figures are medians unless stated. Last updated 2026-10-12.
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.
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.
| Type | Price |
|---|---|
| Input | |
| Output | |
| Cached input |
| Benchmark | Score | What it measures | Source | Retrieved |
|---|---|---|---|---|
| Intelligence | 28.2 | Composite score across standardised reasoning, knowledge and problem-solving evaluations, measured independently by Artificial Analysis | Source | September 12, 2026 |
| Coding | 52.7 | Composite score across standardised coding evaluations, measured independently by Artificial Analysis | Source | September 12, 2026 |
| SWE-bench Verified | 70.6 | Resolving verified real GitHub issues | Source | September 20, 2026 |
| Model | Input | Output | Context | Best for |
|---|---|---|---|---|
Solar Pro 4 This page | Agentic workflows, coding & document analysis | |||
| Complex agentic coding and enterprise workflows | ||||
| Reasoning + agents with long context | ||||
| Everyday coding + agents | ||||
| Long-context, multimodal & agentic workflows |
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.