OpenAI 模型 · 台灣版

GPT-4

台灣團隊可用的 NextModel 目錄中的 OpenAI 模型,常用於 General chat via OpenAI、API workloads 工作負載。當前展示價格為輸入 $5.64 / 1M tokens、輸出 $11.28 / 1M tokens 每 100 萬 token,上下文視窗為 8.2k token。

OpenAIPlatform curated目錄
StreamingTool callingJSON mode
輸入價格$5.64 / 1M tokens
輸出價格$11.28 / 1M tokens
上下文長度8.2k token
最大輸出4.1k token

GPT-4 在 NextModel 中是什麼?

台灣團隊可用的 NextModel 目錄中的 OpenAI 模型,常用於 General chat via OpenAI、API workloads 工作負載。當前展示價格為輸入 $5.64 / 1M tokens、輸出 $11.28 / 1M tokens 每 100 萬 token,上下文視窗為 8.2k token。

適用場景

  • General chat via OpenAI
  • API workloads

OpenAI 相容呼叫範例

保持 OpenAI SDK 呼叫方式不變,把 base_url 改為 NextModel,並使用模型目錄 ID openai--gpt-4。

Python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.nextmodel.app/v1"
)

resp = client.chat.completions.create(
    model="openai/gpt-4",
    messages=[{"role": "user", "content": "Hello from NextModel"}]
)

print(resp.choices[0].message.content)

相似替代項

OpenAI目錄

GPT-3.5 Turbo is OpenAI's fastest model. It can understand and generate natural language or code, and is optimized for chat and traditional completion tasks. Training data up to Sep 2021.

$0.094 / 1M tokens輸入$0.282 / 1M tokens輸出16.4k上下文
適用場景General chat via OpenAI, API workloads
路由已設定
串流輸出工具呼叫JSON 模式
平台整理NextModel gateway catalog (Go origin)
查看詳情
OpenAI目錄

GPT-3.5 Turbo is OpenAI's fastest model. It can understand and generate natural language or code, and is optimized for chat and traditional completion tasks. Training data up to Sep 2021.

$0.188 / 1M tokens輸入$0.376 / 1M tokens輸出4.1k上下文
適用場景General chat via OpenAI, API workloads
路由已設定
串流輸出工具呼叫JSON 模式
平台整理NextModel gateway catalog (Go origin)
查看詳情
OpenAI目錄

This model offers four times the context length of gpt-3.5-turbo, allowing it to support approximately 20 pages of text in a single request at a higher cost. Training data: up...

$0.564 / 1M tokens輸入$0.752 / 1M tokens輸出16.4k上下文
適用場景General chat via OpenAI, API workloads
路由已設定
串流輸出工具呼叫JSON 模式
平台整理NextModel gateway catalog (Go origin)
查看詳情

常見問題

OpenAI: GPT-4 API 常見問題