gpt-6.2-astra-law
GPT-6.2 Astra set up by OpenAI for legal work ("Astra for Law"): Astra paired with an expanded legal search index, covering more than 99.9% of published US precedential case law, and with instructions for researching a question, weighing the authorities and writing the answer.
| Slug | gpt-6.2-astra-law |
| Kind | chat |
| Vendor | openai |
| Endpoint | POST /v1/chat/completions |
View pricing and billing conditions
Example request
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-law",
"messages": [{"role": "user", "content": "hello"}]
}'# Requires Python 3 and requests (pip install requests).
import os
import requests
payload = {'model': 'gpt-6.2-astra-law',
'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)// Run as an .mjs file with Node.js 22 or later.
const payload = {
"model": "gpt-6.2-astra-law",
"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_penaltylogit_biaslogprobstop_logprobsmax_tokensmax_completion_tokensmodalitiespredictionnpresence_penaltyseedstopstreamstream_optionstemperaturetop_ptoolstool_choicefunction_callfunctionsmax_retriesextra_headersparallel_tool_callsaudioweb_search_optionsservice_tiersafety_identifierprompt_cache_keyprompt_cache_retentionstoreresponse_formatuser
Pricing
| Billable unit and options | Rate (USD) |
|---|---|
| per 1M input tokens | $9.60 |
| per 1M input tokens prompts over 272,000 tokens | $19.20 |
| per 1M output tokens | $48.00 |
| per 1M output tokens prompts over 272,000 tokens | $72.00 |
| per 1M cached input tokens | $0.48 |
| per 1M cached input tokens prompts over 272,000 tokens | $0.96 |
| per 1M cache-write tokens | $12.00 |
| per 1M cache-write tokens prompts over 272,000 tokens | $24.00 |
| per 1K responses that search the web | $12.00 |
- A prompt over 272,000 tokens bills the whole request at the long-context rates.
View this model in the pricing catalogue. Your billing logs show the actual charge for each request.