OpenAI model

GPT-4

OpenAI: GPT-4. Porównaj ceny API, dostawcę, długość kontekstu, możliwości, przypadki użycia, opóźnienie i alternatywy. General chat via OpenAI, API workloads. $5.64 / 1M tokens / $11.28 / 1M tokens. 8.2k tokens.

OpenAIPlatform curatedCatalog
StreamingTool callingJSON mode
Cena wejścia$5.64 / 1M tokens
Cena wyjścia$11.28 / 1M tokens
Długość kontekstu8.2k tokens
Maks. output4.1k tokens

Czym jest GPT-4 w NextModel?

OpenAI: GPT-4. Porównaj ceny API, dostawcę, długość kontekstu, możliwości, przypadki użycia, opóźnienie i alternatywy. General chat via OpenAI, API workloads. $5.64 / 1M tokens / $11.28 / 1M tokens. 8.2k tokens.

Najlepsze zastosowania

  • General chat via OpenAI
  • API workloads

Przykład zgodny z OpenAI

Zachowaj styl SDK OpenAI, ustaw base_url na NextModel i użyj ID katalogu 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)

Podobne alternatywy

OpenAICatalog

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 tokensInput$0.282 / 1M tokensOutput16.4kContext
Best forGeneral chat via OpenAI, API workloads
RoutingConfigured
StreamingTool callingJSON mode
Platform curatedNextModel gateway catalog (Go origin)
View details
OpenAICatalog

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 tokensInput$0.376 / 1M tokensOutput4.1kContext
Best forGeneral chat via OpenAI, API workloads
RoutingConfigured
StreamingTool callingJSON mode
Platform curatedNextModel gateway catalog (Go origin)
View details
OpenAICatalog

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 tokensInput$0.752 / 1M tokensOutput16.4kContext
Best forGeneral chat via OpenAI, API workloads
RoutingConfigured
StreamingTool callingJSON mode
Platform curatedNextModel gateway catalog (Go origin)
View details

FAQ

OpenAI: GPT-4 FAQ