| Model Name | Price |
|---|---|
| gpt-5.5-all | Input: $4/M Output: $32/M |
| gpt-5.5-medium-all | Input: $4/M Output: $32/M |
| gpt-5.5-high-all | Input: $4/M Output: $32/M |
| gpt-5.5-xhigh-all | Input: $4/M Output: $32/M |
| gpt-5.5-low-all | Input: $4/M Output: $32/M |
import os
from openai import OpenAI
# Get your CometAPI key from https://www.cometapi.com/console/token, and paste it here
COMETAPI_KEY = os.environ.get("COMETAPI_KEY") or "<YOUR_COMETAPI_KEY>"
BASE_URL = "https://api.cometapi.com/v1"
client = OpenAI(base_url=BASE_URL, api_key=COMETAPI_KEY)
stream = client.chat.completions.create(
model="gpt-5.5-xhigh-all",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"},
],
stream=True,
)
for chunk in stream:
content = chunk.choices[0].delta.content or ""
if content:
print(content, end="", flush=True)
print()import os
from openai import OpenAI
# Get your CometAPI key from https://www.cometapi.com/console/token, and paste it here
COMETAPI_KEY = os.environ.get("COMETAPI_KEY") or "<YOUR_COMETAPI_KEY>"
BASE_URL = "https://api.cometapi.com/v1"
client = OpenAI(base_url=BASE_URL, api_key=COMETAPI_KEY)
stream = client.chat.completions.create(
model="gpt-5.5-xhigh-all",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"},
],
stream=True,
)
for chunk in stream:
content = chunk.choices[0].delta.content or ""
if content:
print(content, end="", flush=True)
print()import OpenAI from "openai";
// Get your CometAPI key from https://www.cometapi.com/console/token, and paste it here
const api_key = process.env.COMETAPI_KEY || "<YOUR_COMETAPI_KEY>";
const base_url = "https://api.cometapi.com/v1";
const client = new OpenAI({
apiKey: api_key,
baseURL: base_url,
});
const stream = await client.chat.completions.create({
model: "gpt-5.5-xhigh-all",
messages: [
{ role: "system", content: "You are a helpful assistant." },
{ role: "user", content: "Hello!" },
],
stream: true,
});
for await (const chunk of stream) {
const content = chunk.choices[0]?.delta?.content || "";
if (content) {
process.stdout.write(content);
}
}
process.stdout.write("\n");# Get your CometAPI key from https://www.cometapi.com/console/token
# Export it as: export COMETAPI_KEY="your-key-here"
curl --no-buffer https://api.cometapi.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $COMETAPI_KEY" \
-d '{
"model": "gpt-5.5-xhigh-all",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Hello!"
}
],
"stream": true
}'| Versjon | tenkenivå | Pris |
|---|---|---|
| gpt-5.5-all | standard | Inndata:$4/M |
| gpt-5.5-medium-all | middels | Inndata:$4/M |
| gpt-5.5-high-all | høy | Inndata:$4/M |
| gpt-5.5-xhigh-all | ekstra høy | Inndata:$4/M |
| gpt-5.5-low-all | lav | Inndata:$4/M |