> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kymaapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GPT-6.1 Sol

> OpenAI's GPT-6.1 Sol: near-Astra performance for complex coding, computer use and professional work at a lower cost. 1.05M context, 128K output, text, image and file input, reasoning; above 272K prompt tokens input doubles and output rises 1.5×.

## Overview

OpenAI's GPT-6.1 Sol: near-Astra performance for complex coding, computer use and professional work at a lower cost. 1.05M context, 128K output, text, image and file input, reasoning; above 272K prompt tokens input doubles and output rises 1.5×.

## Specs

| Field | Value |
| - | - |
| Model ID | `gpt-6.1-sol` |
| Best for | Complex coding, computer use and long-horizon agentic work |
| Context window | 1.05M |
| Max output tokens | 128K |
| Input modalities | Text, Image, File |
| Output modalities | Text |
| Tool calling | Yes |
| Structured outputs | Yes |
| Prompt caching | Yes |
| Vision | Yes |
| Reasoning | Yes |
| Speed | Medium |
| Cost band | Premium |
| Release stage | Stable |

## Pricing

| | Per 1M tokens |
| - | :-: |
| Input | \$2.70 |
| Output | \$13.50 |

Above a long prompt this model costs more per token, because the infrastructure
serving it charges more there. The threshold is on the **prompt**, so you know which
rate applies before you send.

| Prompt length | Input | Output |
| - | :-: | :-: |
| Standard | \$2.70 | \$13.50 |
| From 272,001 tokens | \$5.40 | \$20.25 |

## Example

```python theme={null}
from openai import OpenAI

client = OpenAI(base_url="https://kymaapi.com/v1", api_key="kyma-...")

response = client.chat.completions.create(
    model="gpt-6.1-sol",
    messages=[{"role": "user", "content": "..."}],
    tools=[...],  # function calling supported
)
```

## Agent query example

Ask the API which models fit, instead of hardcoding an id:

```bash theme={null}
curl "https://kymaapi.com/v1/models?recommended_for=chat&tools=true&quality_tier=frontier-open"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.