# gpt-6-astra

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

GPT-6 Astra (OpenAI): 922K input tokens, 128K output, vision and reasoning (`reasoning_effort` low to max; `none` is not accepted).

Function calling and sampling parameters are not available on Chat Completions for this model.

A prompt over 272,000 input tokens bills the whole request at the long-context rates; `service_tier` `priority` and `flex` bill at their own rates.

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

[View pricing and billing conditions](https://docs.sociaro.com/models/gpt-6-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-astra",
        "messages": [{"role": "user", "content": "hello"}]
      }'
```

Python

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

payload = {'model': 'gpt-6-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-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

- `messages`
- `max_completion_tokens`
- `stream`
- `stream_options`
- `reasoning_effort`
- `response_format`
- `service_tier`
- `store`
- `safety_identifier`
- `prompt_cache_key`
- `user`

## Pricing

| Billable unit and options | Rate (USD) |
| --- | --- |
| per 1M input tokens | $12.0 |
| per 1M input tokens prompts over 272,000 tokens | $24.0 |
| per 1M input tokens priority (service_tier: priority) | $24.0 |
| per 1M input tokens prompts over 272,000 tokens, priority (service_tier: priority) | $48.0 |
| per 1M input tokens flex (service_tier: flex) | $6.0 |
| per 1M input tokens prompts over 272,000 tokens, flex (service_tier: flex) | $12.0 |
| per 1M output tokens | $60.0 |
| per 1M output tokens prompts over 272,000 tokens | $90.0 |
| per 1M output tokens priority (service_tier: priority) | $120.0 |
| per 1M output tokens prompts over 272,000 tokens, priority (service_tier: priority) | $180.0 |
| per 1M output tokens flex (service_tier: flex) | $30.0 |
| per 1M output tokens prompts over 272,000 tokens, flex (service_tier: flex) | $45.0 |
| per 1M cached input tokens | $1.2 |
| per 1M cached input tokens prompts over 272,000 tokens | $2.4 |
| per 1M cached input tokens priority (service_tier: priority) | $2.4 |
| per 1M cached input tokens prompts over 272,000 tokens, priority (service_tier: priority) | $4.8 |
| per 1M cached input tokens flex (service_tier: flex) | $0.6 |
| per 1M cached input tokens prompts over 272,000 tokens, flex (service_tier: flex) | $1.2 |
| per 1M cache-write tokens | $15.0 |
| per 1M cache-write tokens prompts over 272,000 tokens | $30.0 |
| per 1M cache-write tokens priority (service_tier: priority) | $30.0 |
| per 1M cache-write tokens prompts over 272,000 tokens, priority (service_tier: priority) | $60.0 |
| per 1M cache-write tokens flex (service_tier: flex) | $7.5 |
| per 1M cache-write tokens prompts over 272,000 tokens, flex (service_tier: flex) | $15.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-astra). Your [billing logs](https://docs.sociaro.com/billing/index.md) show the actual charge for each request.
