Zum Hauptinhalt springen
POST
/
v1
/
chat
/
completions
Doubao Seed 2.0 Schnell-Chat
curl --request POST \
  --url https://api.evolink.ai/v1/chat/completions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "doubao-seed-2.0-pro",
  "messages": [
    {
      "role": "system",
      "content": "<string>"
    }
  ],
  "stream": false
}
'
{
  "id": "<string>",
  "object": "<string>",
  "created": 123,
  "model": "<string>",
  "choices": [
    {
      "index": 123,
      "message": {
        "role": "<string>",
        "content": "<string>"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 123,
    "completion_tokens": 123,
    "total_tokens": 123
  }
}

Autorisierungen

Authorization
string
header
erforderlich

##Alle APIs erfordern Bearer-Token-Authentifizierung##

API-Schluessel erhalten:

Besuchen Sie die API-Schluesselverwaltungsseite, um Ihren API-Schluessel zu erhalten

Zum Anfrage-Header hinzufuegen:

Authorization: Bearer YOUR_API_KEY

Body

application/json
model
enum<string>
Standard:doubao-seed-2.0-pro
erforderlich

Modell-ID

Verfügbare Optionen:
doubao-seed-2.0-pro,
doubao-seed-2.0-lite,
doubao-seed-2.0-mini,
doubao-seed-2.0-code
messages
object[]
erforderlich

Nachrichtenliste

stream
boolean
Standard:false

Ob Streaming-Ausgabe aktiviert werden soll

Antwort

Chat-Generierung erfolgreich

id
string

Eindeutige Anfrage-ID

object
string

Objekttyp, fester Wert chat.completion

created
integer

Erstellungszeitstempel

model
string

Verwendetes Modell

choices
object[]

Antwortauswahlliste

usage
object

Token-Verbrauchsinformationen