---
title: "completions · RUAL Documentation"
description: "Chat models take a list of messages as input and return a model-generated message as output."
canonical: https://docs.rual.nl/block-types/chatgpt/function_chatgpt_completions
language: en
---

# completions

This block is part of the [`chatgpt`](https://docs.rual.nl/block-types/chatgpt) group and was last modified in core [`v14.0.1`](https://docs.rual.nl/core-versions/140001).

Chat models take a list of messages as input and return a model-generated message as output.

- flow `flow`

- key required `value`

- messages required `array `

- model `value`

- flow `flow`

- success `condition`

- choices `array`

- id `value`

- usage `object`

- error `value`

| `gpt4` |
| --- |

### Core Releases
