import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.orcarouter.ai/v1",
api_key=os.environ["ORCAROUTER_API_KEY"],
)
response = client.chat.completions.create(
model="orca/orcacyber-ultra-1.0-ent",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)| 輸入 / 1M tokens | $4.25 |
|---|---|
| 輸出 / 1M tokens | $8.50 |
| 快取讀取 / 1M | $0.637 |
| 貨幣 | USD |
基於標價的估算
僅為估算——實際 Token 數取決於供應商的分詞器。
本週開發者的討論
@misc{orcarouter_orcacyber_ultra_1_0_ent,
title = {orca/orcacyber-ultra-1.0-ent API},
author = {orca},
year = {n.d.},
howpublished = {OrcaRouter},
url = {https://www.orcarouter.ai/models/orca/orcacyber-ultra-1.0-ent}
}orca. (n.d.). orca/orcacyber-ultra-1.0-ent API. OrcaRouter. https://www.orcarouter.ai/models/orca/orcacyber-ultra-1.0-ent