Create a chat completion
OpenAI-compatible chat completions with ordered model fallbacks and provider routing policy. Pass model "@slug" to run a saved preset you own — the preset supplies models, prompt, tools, and routing; send only messages.
post/chat/completions
Request
- Base URL: https://www.ninjachat.ai/api/v1
- URL: https://www.ninjachat.ai/api/v1/chat/completions
- Auth: HTTP bearer
Headers
Idempotency-Keystring
Safely retry the same logical write without duplicate billing or execution.
Request body
Response
Chat completion or SSE stream.
Changes
No recorded changes to this operation across all 1 revision of this API.