Seedance 2.0 20 % RABATT | Im Video Generator erstellen →
openai
openai/gpt-4

openai/gpt-4

8,191 context · $30.00/M input tokens · $60.00/M output tokens

OpenAI's flagship model, GPT-4 is a large-scale multimodal language model capable of solving difficult problems with greater accuracy than previous models due to its broader general knowledge and advanced reasoning...

Preise

Pay-per-Use

Keine Vorabkosten, zahlen Sie nur, was Sie nutzen

Eingabe$30.00 / M Tokens
Ausgabe$60.00 / M Tokens

Modell ausprobieren

openai/gpt-4
Online
openai
Hallo! Ich bin ein hilfreicher KI-Assistent. Womit kann ich helfen?

API-Nutzung

Verwenden Sie die folgenden Codebeispiele zur Integration mit unserer API:

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://llm.wavespeed.ai/v1"
)

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

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

Modelleinführung

Openai gpt-4

openai gpt-4


Why It Looks Great

  • Large Language Model architecture for efficient processing
  • 8191 context window for long document handling
  • Competitive pricing at $33.0/$66.0 per million tokens

Key Features

  • Context Window: 8191 tokens
  • Max Output: 4096 tokens
  • Vision: Supported
  • Function Calling: Supported

Specifications

SpecificationValue
ProviderOpenai
Model TypeLarge Language Model (LLM)
ArchitectureN/A
Context Window8191 tokens
Max Output4096 tokens
InputText
OutputText
VisionSupported
Function CallingSupported

Pricing

Token TypeCost per Million Tokens
Input$33.0
Output$66.0

How to Use

  1. Write your prompt — describe the task, provide context, and specify desired output format.
  2. Submit — the model processes your request and returns the response.

API Integration

Base URL: https://llm.wavespeed.ai/v1 API Endpoint: chat/completions Model ID: openai/gpt-4


API Usage

Python SDK

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://llm.wavespeed.ai/v1"
)

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

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

cURL

curl https://llm.wavespeed.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "openai/gpt-4",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Notes

  • Model: openai/gpt-4
  • Provider: Openai

Info

Anbieteropenai
Typllm

Unterstützte Funktionen

Eingabe
Text
Ausgabe
Text
Kontext8,191
Max. Ausgabe4,096
Vision-
Function Calling✓ Unterstützt

API-Zugriffsanleitung

Base URLhttps://llm.wavespeed.ai/v1
API-Endpunktchat/completions
Modell-IDopenai/gpt-4

GPT 4 API

openai/gpt-4

OpenAI's flagship model, GPT-4 is a large-scale multimodal language model capable of solving difficult problems with greater accuracy than previous models due to its broader general knowledge and advanced reasoning...

Eingabe

$30 /M

Ausgabe

$60 /M

Kontext

8K

Max. Ausgabe

4K

Tool-Nutzung

Unterstützt

GPT 4 auf WaveSpeedAI testen

Zugriff auf GPT 4 über unsere einheitliche API — OpenAI-kompatibel, keine Kaltstarts, transparente Preise.

Häufige Fragen zu GPT 4

Wie viel kostet die GPT 4-API?+

Preise auf WaveSpeedAI: $30.00 pro Million Input-Tokens und $60.00 pro Million Output-Tokens. Prompt-Caching und Batch-Verarbeitung werden separat berechnet und reduzieren die effektiven Kosten bei langen, sich wiederholenden Workloads.

Wie groß ist das Kontextfenster von GPT 4?+

GPT 4 unterstützt bis zu 8K Kontext-Tokens und bis zu 4K Output-Tokens pro Anfrage.

Ist GPT 4 OpenAI-kompatibel?+

Ja. WaveSpeedAI stellt GPT 4 über einen OpenAI-kompatiblen Endpunkt unter https://llm.wavespeed.ai/v1 bereit. Richten Sie das offizielle OpenAI SDK mit Ihrem WaveSpeedAI-API-Schlüssel auf diese Base-URL — keine weiteren Codeänderungen erforderlich.

Wie starte ich mit GPT 4?+

Bei WaveSpeedAI anmelden, in Access Keys einen API-Schlüssel erstellen und eine Anfrage an https://llm.wavespeed.ai/v1/chat/completions mit der oben angezeigten Model-ID senden. Neue Konten erhalten kostenlose Credits, um GPT 4 zu testen.

Verwandte LLM-APIs