GPT-6 Astra
gpt-6-astra- Vendor
- openai
- Context, tokens
- 1.1M
- Max output, tokens
- 128K
Capabilities
- Images in the input (image_url)
- PDF in the input (file)
- Tools (tools)
- Reasoning
- temperature and top_p
- Web search (web_search)
reasoning_effort levels: low, medium, high, xhigh
Price, balance tokens per 1M tokens
Inputinput | 1,156.9669 |
Cached inputcached_input | 115.6967 |
Cache write, 5 minutescache_write_5m | 2,346.781 |
Cache write, 1 hourcache_write_1h | 1,446.2086 |
Outputoutput | 5,784.8344 |
Parameters
The model takes a standard Chat Completions request. The full list of parameters and what happens to the rest: Chat (LLM)
This model does not take temperature or top_p: a request with them returns 400 unsupported_parameter.
Example request
curl
curl https://api.unitool.ai/v1/chat/completions \
-H "Authorization: Bearer $UNITOOL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-6-astra",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Hello"}]
}'Python (openai)
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.unitool.ai/v1", api_key=os.environ["UNITOOL_API_KEY"])
stream = client.chat.completions.create(
model="gpt-6-astra",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello"}],
stream=True,
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)JavaScript (openai)
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.unitool.ai/v1", apiKey: process.env.UNITOOL_API_KEY });
const stream = await client.chat.completions.create({
model: "gpt-6-astra",
max_tokens: 1024,
messages: [{ role: "user", content: "Hello" }],
stream: true,
});
for await (const chunk of stream) process.stdout.write(chunk.choices[0]?.delta?.content ?? "");