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: falsegesetzt 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"
}'