# gpt-6.2-astra

Source: https://docs.sociaro.com/models/gpt-6-2-astra/

OpenAI's GPT-6.2 Astra — its most capable model, for hard and long projects: building and revising software, operating a computer, and working with documents, slides and spreadsheets.

Takes text and images, answers in text, with a context window of about 1.05M tokens and up to 128K tokens of output.

|  |  |
| --- | --- |
| Slug | `gpt-6.2-astra` |
| Kind | chat |
| Vendor | openai |
| Endpoint | `POST /v1/chat/completions` |

[View pricing and billing conditions](https://docs.sociaro.com/models/gpt-6-2-astra/#pricing)

## Example request

cURL

```bash
curl https://api.sociaro.com/v1/chat/completions \
  -H "Authorization: Bearer $SOCIARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
        "model": "gpt-6.2-astra",
        "messages": [{"role": "user", "content": "hello"}]
      }'
```

Python

```python
# Requires Python 3 and requests (pip install requests).
import os
import requests

payload = {'model': 'gpt-6.2-astra', 'messages': [{'role': 'user', 'content': 'hello'}]}

response = requests.post(
    'https://api.sociaro.com/v1/chat/completions',
    headers={
        'Authorization': 'Bearer ' + os.environ['SOCIARO_API_KEY'],
        'Content-Type': 'application/json',
    },
    json=payload,
    timeout=120,
)
response.raise_for_status()
print(response.text)
```

JavaScript

```javascript
// Run as an .mjs file with Node.js 22 or later.

const payload = {
  "model": "gpt-6.2-astra",
  "messages": [
    {
      "role": "user",
      "content": "hello"
    }
  ]
};

const response = await fetch("https://api.sociaro.com/v1/chat/completions", {
  method: "POST",
  headers: {
    "Authorization": "Bearer " + process.env.SOCIARO_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify(payload),
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.text());
```

## Parameters

- `frequency_penalty`
- `logit_bias`
- `logprobs`
- `top_logprobs`
- `max_tokens`
- `max_completion_tokens`
- `modalities`
- `prediction`
- `n`
- `presence_penalty`
- `seed`
- `stop`
- `stream`
- `stream_options`
- `temperature`
- `top_p`
- `tools`
- `tool_choice`
- `function_call`
- `functions`
- `max_retries`
- `extra_headers`
- `parallel_tool_calls`
- `audio`
- `web_search_options`
- `service_tier`
- `safety_identifier`
- `prompt_cache_key`
- `prompt_cache_retention`
- `store`
- `response_format`
- `user`

## Pricing

| Billable unit and options | Rate (USD) |
| --- | --- |
| per 1M input tokens | $9.6 |
| per 1M input tokens prompts over 272,000 tokens | $19.2 |
| per 1M input tokens priority (service_tier: priority) | $19.2 |
| per 1M input tokens prompts over 272,000 tokens, priority (service_tier: priority) | $38.4 |
| per 1M output tokens | $48.0 |
| per 1M output tokens prompts over 272,000 tokens | $72.0 |
| per 1M output tokens priority (service_tier: priority) | $96.0 |
| per 1M output tokens prompts over 272,000 tokens, priority (service_tier: priority) | $144.0 |
| per 1M cached input tokens | $0.48 |
| per 1M cached input tokens prompts over 272,000 tokens | $0.96 |
| per 1M cached input tokens priority (service_tier: priority) | $0.96 |
| per 1M cached input tokens prompts over 272,000 tokens, priority (service_tier: priority) | $1.92 |
| per 1M cache-write tokens | $12.0 |
| per 1M cache-write tokens prompts over 272,000 tokens | $24.0 |
| per 1M cache-write tokens priority (service_tier: priority) | $24.0 |
| per 1M cache-write tokens prompts over 272,000 tokens, priority (service_tier: priority) | $48.0 |
| per 1K responses that search the web | $12.0 |

- A prompt over 272,000 tokens bills the whole request at the long-context rates.

[View this model in the pricing catalogue](https://sociaro.com/pricing?model=gpt-6.2-astra). Your [billing logs](https://docs.sociaro.com/billing/index.md) show the actual charge for each request.
