Zum Hauptinhalt springen
POST
/
v1
/
chat
/
completions
GPT-5.2 Schnellchat
curl --request POST \
  --url https://api.evolink.ai/v1/chat/completions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "gpt-5.2",
  "messages": [
    {
      "role": "user",
      "content": "Hello, introduce the new features of GPT-5.2"
    }
  ]
}
'
{
  "id": "chatcmpl-20251010015944503180122WJNB8Eid",
  "model": "gpt-5.2",
  "object": "chat.completion",
  "created": 1760032810,
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello! I'm happy to introduce GPT-5.2 to you.\n\nGPT-5.2 is the next-generation large language model with enhanced reasoning and understanding capabilities..."
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 13,
    "completion_tokens": 1891,
    "total_tokens": 1904,
    "prompt_tokens_details": {
      "cached_tokens": 0,
      "text_tokens": 13,
      "audio_tokens": 0,
      "image_tokens": 0
    },
    "completion_tokens_details": {
      "text_tokens": 0,
      "audio_tokens": 0,
      "reasoning_tokens": 1480
    },
    "input_tokens": 0,
    "output_tokens": 0,
    "input_tokens_details": null
  }
}

Autorisierungen

Authorization
string
header
erforderlich

Alle APIs erfordern Bearer-Token-Authentifizierung

API-Schlüssel erhalten:

Besuchen Sie die API-Schlüssel-Verwaltungsseite, um Ihren API-Schlüssel zu erhalten

Zum Anfrage-Header hinzufügen:

Authorization: Bearer YOUR_API_KEY

Body

application/json
model
enum<string>
Standard:gpt-5.2
erforderlich

Modellname für Chat-Vervollständigung

Verfügbare Optionen:
gpt-5.2
Beispiel:

"gpt-5.2"

messages
object[]
erforderlich

Liste der Nachrichten für das Gespräch

Minimum array length: 1
Beispiel:
[
  {
    "role": "user",
    "content": "Hello, introduce the new features of GPT-5.2"
  }
]

Antwort

Chat-Vervollständigung erfolgreich

id
string

Eindeutiger Bezeichner für die Chat-Vervollständigung

Beispiel:

"chatcmpl-20251010015944503180122WJNB8Eid"

model
string

Das für die Vervollständigung verwendete Modell

Beispiel:

"gpt-5.2"

object
enum<string>

Antworttyp

Verfügbare Optionen:
chat.completion
Beispiel:

"chat.completion"

created
integer

Unix-Zeitstempel der Erstellung der Vervollständigung

Beispiel:

1760032810

choices
object[]

Liste der Vervollständigungsoptionen

usage
object

Token-Nutzungsstatistiken