Speed
Output tokens / second
Custom pricing for production workloads
Upstage's Solar Pro 4: large-context (512K) chat model for agentic workflows, office productivity, document-intensive work, and coding.
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.
upstage/solar-pro4https://api.aimlapi.com/v1Coding 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.
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.
See how Solar Pro 4 compares in generation speed and latency. Data retrieved Nov 4, 2026.
Output tokens / second
Compare 18 models available on AI/ML API across 5 independent benchmarks.
Expert-written questions across academic subjects.
Graduate-level science questions written to resist web search.
Agentic tasks completed in a command-line environment.
Reasoning across long documents of about 100k tokens.
Python coding tasks drawn from scientific research.
| Usage | Price | Unit |
|---|---|---|
| Input | $0.0952 | 1M tokens |
| Output | $0.3809 | 1M tokens |
| Cached input | $0.019 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $0.0952 | $0.3809 | |
| $0.3703 | $0.3703 | |
| $0.1 | $0.4 | |
| $0.05 | $0.4 | |
| $0.1058 | $0.4232 |
Give your agent the model details, code and documentation.
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"curl '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": "Write a haiku about the ocean."
}
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "upstage/solar-pro4",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}
response = requests.post("https://api.aimlapi.com/v1/chat/completions", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = 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": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());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 costs $0.0952 input and $0.3809 output per 1M tokens on AI/ML API, billed as you go with no subscription.
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.