Endpoints

Chat Completions

Der wichtigste Endpoint der innoGPT API — OpenAI-kompatibel und unterstützt Text, Bilder, PDFs, Streaming und mehr.

Alle Endpoints findest du eingeloggt in den innoGPT Einstellungen.

Endpoint: POST /api/ext/v1/chat/completions


Standard-Anfrage

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  https://app.innogpt.de/api/ext/v1/chat/completions \
  -d '{
    "model": "gpt-5",
    "messages": [
      {"role": "system", "content": "Du bist hilfreich"},
      {"role": "user", "content": "Hallo!"}
    ],
    "temperature": 0.3
  }'

Streaming-Anfrage

Token-für-Token-Antworten via Server-Sent Events:

curl -N -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  https://app.innogpt.de/api/ext/v1/chat/completions \
  -d '{
    "model": "gpt-5",
    "messages": [{"role": "user", "content": "Stream bitte"}],
    "stream": true
  }'

Hinweis: GPT-5-Serie, o3-mini und o4-mini streamen automatisch, auch wenn stream: false gesetzt ist.


Bild-Input

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  https://app.innogpt.de/api/ext/v1/chat/completions \
  -d '{
    "model": "gpt-5",
    "messages": [
      {
        "role": "user",
        "content": [
          {"type": "text", "text": "Was ist auf diesem Bild?"},
          {
            "type": "image_url",
            "image_url": {"url": "https://example.com/image.jpg"}
          }
        ]
      }
    ]
  }'

PDF per URL

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  https://app.innogpt.de/api/ext/v1/chat/completions \
  -d '{
    "model": "gpt-5",
    "messages": [
      {
        "role": "user",
        "content": [
          {"type": "text", "text": "Fasse dieses Dokument zusammen"},
          {
            "type": "file_url",
            "file_url": {
              "url": "https://example.com/document.pdf",
              "mime_type": "application/pdf"
            }
          }
        ]
      }
    ]
  }'

PDF per Multipart-Upload

Für direkte Datei-Uploads (multipart/form-data):

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: multipart/form-data" \
  -F "file=@document.pdf" \
  -F 'payload={"model":"gpt-5","messages":[{"role":"user","content":"Fasse die Kernpunkte zusammen."}]}' \
  https://app.innogpt.de/api/ext/v1/chat/completions

Die Datei wird temporär gespeichert und serverseitig verarbeitet.


Embeddings

Für Semantic Search, RAG und Klassifizierung:

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  https://app.innogpt.de/api/ext/v1/embeddings \
  -d '{
    "input": ["hello world", "another text"],
    "model": "text-embedding-3-small"
  }'

Bild-Generierung

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  https://app.innogpt.de/api/ext/v1/images/generations \
  -d '{
    "prompt": "ein minimalistisches App-Icon"
  }'

Wichtige Parameter

ParameterTypBeschreibung

model

string

Modell-ID (z. B. gpt-5, claude-4-5-sonnet)

messages

array

Chat-Verlauf mit role und content

temperature

float

0–2; niedriger = deterministischer

max_tokens

integer

Maximale Output-Tokens

stream

boolean

SSE-Streaming aktivieren

tool_choice

string/object

Tool-Auswahl (siehe Artikel 6)

response_format

object

Strukturierte Outputs (z. B. JSON)