Chat completions
Erstellen Sie OpenAI-kompatible Chat Completions mit Capriole AI Modellen.
model und messages. Capriole AI löst Latest-Aliase vor der Upstream-Weiterleitung zur ausgewählten Anbietermodell-ID auf, leitet kompatible Felder wie messages, tools, tool_choice, response_format und stream weiter und gibt den Upstream-JSON- oder SSE-Stream unverändert zurück. Bei Streaming-Anfragen setzt Capriole AI vor der Weiterleitung stream_options.include_usage=true, damit die Nutzung erfasst werden kann.
POST /v1/chat/completions akzeptiert openai-latest, claude-latest, google-latest und öffentliche konkrete Modell-IDs aus GET /v1/models. Verwenden Sie einen Latest-Alias, damit Capriole AI das von uns empfohlene Flaggschiff-Modell für diesen Anbieter wählt.
Latest-Aliase sind Eingabe-Kurzformen. Die Nutzung wird für das aufgelöste Modell erfasst, während der Antwortkörper das Modellbenennungsverhalten des gewählten kompatiblen Endpunkts beibehält.
Für Capriole-native Textgenerierung verwenden Sie POST /v1/chat. Verwenden Sie POST /v1/chat/completions, wenn OpenAI-kompatibles Wire-Verhalten erforderlich ist.Autorisierungen
Use an API key created in the Capriole AI page. Send it as Authorization: Bearer sk-....
Body
Public model identifier or latest alias returned by GET /v1/models
openai-latest, openai/gpt-5.6-terra, openai/gpt-5.6-luna, openai/gpt-5.5, openai/gpt-5.4-mini, claude-latest, anthropic/claude-fable-5, anthropic/claude-opus-5, anthropic/claude-opus-4-8, anthropic/claude-opus-4-7, anthropic/claude-opus-4-6, anthropic/claude-sonnet-4-6, google-latest, google/gemini-3.1-pro-preview, google/gemini-3.5-flash, xai/grok-4.5, zai/glm-5.2, moonshot/kimi-k3 OpenAI-compatible conversation messages.
OpenAI-compatible tool definitions.
OpenAI-compatible tool choice.
OpenAI-compatible response format.
Stream the response as OpenAI-compatible server-sent events.
OpenAI-compatible stream options. For streaming requests, Capriole AI sets include_usage=true before upstream dispatch for usage accounting.
Antwort
OpenAI-compatible Chat Completions response or SSE stream. Response model fields follow the selected compatible endpoint and may differ from the input alias.