Solar Pro 4 API

Upstage's Solar Pro 4: large-context (512K) chat model for agentic workflows, office productivity, document-intensive work, and coding.
Context
512K tokens
Input
$0.039 / 1M
Output
$0.156 / 1M
Released
Aug 10, 2026

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.039 / 1M tokens
Output
$0.156 / 1M tokens

Solar Pro 4 vs other models

ModelInputOutputContextBest for
Solar Pro 4
This page
$0.039 / 1M
$0.156 / 1M
512K tokens
Agentic workflows, coding & document analysis
$6.50 / 1M
$32.50 / 1M
1M tokens
Complex agentic coding and enterprise workflows
$2.6 / 1M
$7.8 / 1M
500K tokens
Reasoning + agents with long context
$3.25 / 1M
$19.5 / 1M
1M tokens
Everyday coding + agents
$3.9 / 1M
$19.5 / 1M
1M tokens
Long-context, multimodal & agentic workflows

Start building with Solar Pro 4

Get API Key
1000+ models, one API.