Upstage's Solar Pro 4 served through the OpenRouter aggregator - a cost-efficient LLM with a 524K-token context window, built for long-horizon tasks and agentic workflows with strengths in office productivity and document-intensive work. Billed at OpenRouter's actual usage cost.
Test this model instantly in the Console Playground โ no code required
Copy usage instructions for Claude, ChatGPT, or other AI
| Token Type | Credits | USD Equivalent |
|---|---|---|
| Input Tokens | 56 | $0.04 |
| Output Tokens | 223 | $0.15 |
| Cached Tokens | 11.148 | $0.01 |
* 1,500 credits โ $1 (actual charges may vary based on usage)
curl -X POST "https://api.core.today/llm/openrouter/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cdt_your_api_key" \
-d '{
"model": "upstage/solar-pro4",
"messages": [
{
"role": "user",
"content": "Summarize the attached report in 5 bullets."
}
],
"max_tokens": 1024
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | - | Model ID in vendor/model form, e.g. "upstage/solar-pro4". |
messages | array | Yes | - | Chat messages in OpenAI format (system/user/assistant roles). |
temperature | number | No | 0.7 | Sampling temperature (0-2). |
max_tokens | integer | No | 2048 | Maximum completion tokens. |
stream | boolean | No | false | Stream the response as server-sent events. |
OpenAI-compatible chat completion request via OpenRouter
curl -X POST "https://api.core.today/llm/openrouter/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cdt_your_api_key" \
-d '{
"model": "upstage/solar-pro4",
"messages": [
{
"role": "user",
"content": "Summarize the attached report in 5 bullets."
}
],
"max_tokens": 1024
}'POST /llm/openrouter/v1/chat/completions