Create chat completion

Changed on

Creates a model response for the given chat conversation.

post/chat/completions

Request

  • Base URL
    https://neo.character.ai/external
  • Auth
    none declared. Required headers: Application-Key

Headers

Application-Keystring required
X-Routing-Keystring
X-External-User-Idstring

Request body

user_namestring

The username for which to generate the chat completion.

character_idstring required

The external character ID from c.ai, from whose perspective the chat completion will be generated.

streamboolean

If set, partial message deltas will be sent, like on c.ai. Response payloads will be sent as data-only server-sent events as they become available, with the stream terminated by is_final: True.

model'default' | 'safe'

Response

Successful operation

responsestring required
is_finalboolean required

Changes

    • breaking

      the request property type changed from bool to boolean

    • info

      added the new optional request property