CoffeeHouse API Wrappers

CoffeeHouse API Wrappers

Find Content
CoffeeHouse API Wrappers are designed to communicate with the CoffeeHouse API service while you focus on programming. Intellivoid when possible, will make official and open source API Wrappers allowing anyone to contribute to them and improve it.

This page will display both official and unofficial API wrappers. If you created one then let us know! we will showcase it here.

CoffeeHouse Python API Wrapper

from coffeehouse import LydiaAI
lydia = LydiaAI("<API KEY>")

# Create a new chat session (Like a conversation)
session = lydia.create_session("en")

# Talk to the bot!
while True:
    output = session.think_thought(input("Input: "))
    print("Output: {0}".format(output))

Install it via pip!

pip install coffeehouse

Lydia Client Go

package main

import (

func main(){
    var API_KEY string = "<your_api_key>"
    var input string
    client := lydia.NewClient(API_KEY)
    res,err := client.CreateSession()
    if err != nil {
    out,err := client.ThinkThought(res.Payload.SessionId,input)
    if err != nil {
    fmt.Println("Lydia: "+out.Payload.Output)

Install it from GitHub

go get -u

CoffeeHouse Dart API Wrapper

import 'dart:io';

import 'package:coffeehouse/coffeehouse.dart';

void main() async {
  var lydia = Lydia("YOUR_ACCESS_KEY");
  var session = await lydia.createSession();
  while (true) {
    print("Enter some text");
    var input = stdin.readLineSync();
    print("Output: ${await session.thinkThought(input)}");

CoffeeHouse JavaScript API Wrapper

const { LydiaAI } = require('coffeehouse');

async function speak(apikey, text) {
    const api = new LydiaAI(apikey);
    const session = await api.createSession();
    console.log('Session ID: ' +;
    session.think_thought(text).then(data => console.log(;

speak('ur api key', 'Merhaba Dünya');