Model string
hal-1.0
Specs
| Spec | Value |
|---|---|
| Context window | 128,000 tokens |
| Max output tokens | 32,768 tokens |
| Input / 1M tokens | $2.00 |
| Cached input / 1M tokens | $0.20 |
| Output / 1M tokens | $10.00 |
Pricing is dynamic. For current rates see radium.cloud/pricing.
Capabilities
- Streaming: Supported
- Tool calling: Supported
- JSON mode: Supported
- JSON schema: Supported
- Reasoning: Supported
- Vision input: Supported
Recommended use cases
- Multi-step agent reasoning
- Deep code review and architecture analysis
- Research synthesis across large document sets
- Complex structured output generation
- Chain-of-thought reasoning workflows
Not suited for
High-volume classification, real-time chat, or any workload where latency and cost are the primary constraints. Use Clarke 1.0 or Tycho 1.0 for those.Quick start
- OpenAI SDK
- Anthropic SDK
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.radium.cloud/v1",
)
response = client.chat.completions.create(
model="hal-1.0",
messages=[{"role": "user", "content": "Hello, Radium!"}],
)
print(response.choices[0].message.content)
import OpenAI from "openai";
const client = new OpenAI({
apiKey: "YOUR_API_KEY",
baseURL: "https://api.radium.cloud/v1",
});
const response = await client.chat.completions.create({
model: "hal-1.0",
messages: [{ role: "user", content: "Hello, Radium!" }],
});
console.log(response.choices[0].message.content);
curl -X POST https://api.radium.cloud/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "hal-1.0",
"messages": [{"role": "user", "content": "Hello, Radium!"}]
}'
package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
)
func main() {
payload := map[string]interface{}{
"model": "hal-1.0",
"messages": []map[string]string{
{"role": "user", "content": "Hello, Radium!"},
},
}
body, _ := json.Marshal(payload)
req, _ := http.NewRequest("POST", "https://api.radium.cloud/v1/chat/completions", bytes.NewBuffer(body))
req.Header.Set("Authorization", "Bearer YOUR_API_KEY")
req.Header.Set("Content-Type", "application/json")
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
var result map[string]interface{}
json.NewDecoder(resp.Body).Decode(&result)
fmt.Println(result)
}
import java.net.http.*;
import java.net.URI;
public class Main {
public static void main(String[] args) throws Exception {
String json = """
{
"model": "hal-1.0",
"messages": [{"role": "user", "content": "Hello, Radium!"}]
}
""";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.radium.cloud/v1/chat/completions"))
.header("Authorization", "Bearer YOUR_API_KEY")
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(json))
.build();
HttpClient client = HttpClient.newHttpClient();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
using System;
using System.Net.Http;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
class Program
{
static async Task Main()
{
var payload = new
{
model = "hal-1.0",
messages = new[] {
new { role = "user", content = "Hello, Radium!" }
}
};
var json = JsonSerializer.Serialize(payload);
var content = new StringContent(json, Encoding.UTF8, "application/json");
var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer YOUR_API_KEY");
var response = await client.PostAsync("https://api.radium.cloud/v1/chat/completions", content);
var result = await response.Content.ReadAsStringAsync();
Console.WriteLine(result);
}
}
from anthropic import Anthropic
client = Anthropic(
api_key="YOUR_API_KEY",
base_url="https://api.radium.cloud/v1",
)
response = client.messages.create(
model="hal-1.0",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello, Radium!"}],
)
print(response.content[0].text)
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
apiKey: "YOUR_API_KEY",
baseURL: "https://api.radium.cloud/v1",
});
const response = await client.messages.create({
model: "hal-1.0",
max_tokens: 1024,
messages: [{ role: "user", content: "Hello, Radium!" }],
});
console.log(response.content[0].text);
curl -X POST https://api.radium.cloud/v1/messages \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "anthropic-version: 2023-06-01" \
-d '{
"model": "hal-1.0",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Hello, Radium!"}]
}'
package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
)
func main() {
payload := map[string]interface{}{
"model": "hal-1.0",
"max_tokens": 1024,
"messages": []map[string]string{
{"role": "user", "content": "Hello, Radium!"},
},
}
body, _ := json.Marshal(payload)
req, _ := http.NewRequest("POST", "https://api.radium.cloud/v1/messages", bytes.NewBuffer(body))
req.Header.Set("Authorization", "Bearer YOUR_API_KEY")
req.Header.Set("Content-Type", "application/json")
req.Header.Set("anthropic-version", "2023-06-01")
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
var result map[string]interface{}
json.NewDecoder(resp.Body).Decode(&result)
fmt.Println(result)
}
import java.net.http.*;
import java.net.URI;
public class Main {
public static void main(String[] args) throws Exception {
String json = """
{
"model": "hal-1.0",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Hello, Radium!"}]
}
""";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.radium.cloud/v1/messages"))
.header("Authorization", "Bearer YOUR_API_KEY")
.header("Content-Type", "application/json")
.header("anthropic-version", "2023-06-01")
.POST(HttpRequest.BodyPublishers.ofString(json))
.build();
HttpClient client = HttpClient.newHttpClient();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
using System;
using System.Net.Http;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
class Program
{
static async Task Main()
{
var payload = new
{
model = "hal-1.0",
max_tokens = 1024,
messages = new[] {
new { role = "user", content = "Hello, Radium!" }
}
};
var json = JsonSerializer.Serialize(payload);
var content = new StringContent(json, Encoding.UTF8, "application/json");
var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer YOUR_API_KEY");
client.DefaultRequestHeaders.Add("anthropic-version", "2023-06-01");
var response = await client.PostAsync("https://api.radium.cloud/v1/messages", content);
var result = await response.Content.ReadAsStringAsync();
Console.WriteLine(result);
}
}