chat
Create a chat completion
Generate a chat completion with any of Krater's 500+ chat models. OpenAI-compatible request and response format, including streaming via server-sent events when stream is true. Credits are charged dynamically based on the model and token usage.
post/chat/completions
Request
- Base URLhttps://api.krater.ai/v1
- AuthHTTP bearer
Request body
Example request
{
"model": "openai/gpt-4o-mini"
}Response
Chat completion (JSON object, or a text/event-stream of chunks when stream is true).
Example response
{
"id": "chatcmpl-abc123",
"choices": [
{
"finish_reason": "stop"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.