---
title: Chat Completion Generation API
slug: chat-completions
url: https://apyhub.com/dosvak/service/chat-completions
provider: Dosvak LLC
categories: [Artificial Intelligence, Smart Generation]
tags: [chat-completions, llm, text-generation, conversational-ai, openai-compatible]
auth: api_key
---

# Chat Completion Generation API

Send messages and receive a model-generated reply with usage, timestamps, and choices. Useful for chat apps, assistants, and task-oriented workflows.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `` | What it does Sends a chat-completions request using an OpenAI-style message array and returns a JSO… | 100 |

## About

## What it does
Chat Completions lets you send a list of messages and get a model-generated assistant reply back in the same OpenAI-style format. It is built for conversational applications that need a structured response shape and familiar parameters like `model`, `temperature`, `top_p`, `max_tokens`, and `stream`.

Send one or more messages with a `role` and `content`, and the service returns a completion object with an `id`, `model`, `created` timestamp, `usage` counts, and a `choices` array. Each choice includes the generated message with its role and content, plus a `finish_reason` so you can handle truncation or completion states in your client logic.

Use Chat Completions when you need to add AI chat to support workflows, internal assistants, content drafting, or task-oriented agents. The response format is predictable, which makes it easier to log, store, and render in applications that already follow chat-style request and response patterns.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/dosvak/service/chat-completions
