AI Conversation API (1.0.0)

Download OpenAPI specification:Download

API for managing AI conversations and characters

Start a new conversation

Authorizations:
BearerAuth
Request Body schema: application/json
required
characterId
string
initialMessage
string

Responses

Request samples

Content type
application/json
{
  • "characterId": "string",
  • "initialMessage": "string"
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "messages": [
    ]
}

Send a message in an existing conversation

Authorizations:
BearerAuth
path Parameters
conversationId
required
string
Request Body schema: application/json
required
message
string

Responses

Request samples

Content type
application/json
{
  • "message": "string"
}

Response samples

Content type
application/json
{
  • "role": "user",
  • "content": "string"
}

Create a new character

Authorizations:
BearerAuth
Request Body schema: application/json
required
name
string
temperature
number <float>
model
string
modelType
string
Enum: "automatic" "self-trained"
personality
string
backstory
string

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "temperature": 0.1,
  • "model": "string",
  • "modelType": "automatic",
  • "personality": "string",
  • "backstory": "string"
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "name": "string",
  • "temperature": 0.1,
  • "model": "string",
  • "modelType": "automatic",
  • "personality": "string",
  • "backstory": "string"
}