language generation as a service

Lorem ipsum dolor sit amet, cu menandri voluptaria nec ei.
Except in English.

Explore the API

About Retort

Retort is a collection of natural language generation APIs for easily adding and maintaining natural language in your applications. A set of API endpoints allow for incredibly easy language generation, stimulus response, markov chains, and other common tasks.

Proudly powered by Indent Labs

Indent Labs is, at its core, an ambitious open-source collection of natural language processing projects aimed squarely at moonshots in the field of writing. The first word processor showed up in the 60s and revolutionized writing through technology. Isn't it time for another shift forward?

Services


There are no rate limits at this time, so enjoy!

Stimulus Response

Get immediate, natural responses to any comment or phrase.

Markov Chains

Fetch the next word in a chain or build an entire chain at once.

Identity Mirroring

Generate text matching personalized linguistic profiles.

API Endpoints


Retorts (Stimulus Response)

Endpoint Description Method Parameters Response
/retort/get Fetch a retort for a stimulus GET
  • stimulus - a prompt to respond to
JSON
/retort/add Saves a retort, immediately available for retrieval GET
  • stimulus - a prompt to respond to
  • response - a valid response
JSON
/retort/random/opening Fetch a random opening message GET JSON

Markov Chains

Endpoint Description Method Parameters Response
/markov/create Generate a random markov chain GET
  • identifier* - username (e.g. drusepth)
  • medium* - chat medium (e.g. reddit)
  • channel* - chat channel (e.g. /r/funny)
Text
/markov/ipsum Generate five paragraphs of english lorem ipsum GET
  • identifier* - username (e.g. drusepth)
  • medium* - chat medium (e.g. reddit)
  • channel* - chat channel (e.g. /r/funny)
Text

Bigrams

Endpoint Description Method Parameters Response
/bigram/next Fetch a bigram consequent for an antecedent, optionally scoped to an identity GET
  • prior - bigram antecedent
  • identifier* - username (e.g. drusepth)
  • medium* - chat medium (e.g. reddit)
  • channel* - chat channel (e.g. /r/funny)
JSON
/bigram/consequents Fetches all possible consequents for an antecedent, optionally scoped to an identity GET
  • prior - bigram antecedent
  • identifier* - username (e.g. drusepth)
  • medium* - chat medium (e.g. reddit)
  • channel* - chat channel (e.g. /r/funny)
JSON
/bigram/antecedents Fetches all possible antecedents for a consequent, optionally scoped to an identity GET
  • after* - bigram consequent
  • identifier* - username (e.g. drusepth)
  • medium* - chat medium (e.g. reddit)
  • channel* - chat channel (e.g. /r/funny)
JSON
/bigram/add Saves a bigram, immediately available for retrieval. Can optionally be attributed to an identity GET
  • prior* - bigram antecedent
  • after* - bigram consequent
  • identifier* - username (e.g. drusepth)
  • medium* - chat medium (e.g. reddit)
  • channel* - chat channel (e.g. /r/funny)
JSON
/bigram/parse Tokenizes and parses a string into saved bigrams, optionally attributing them to a single identity GET
  • message* - tokenizable string
  • identifier* - username (e.g. drusepth)
  • medium* - chat medium (e.g. reddit)
  • channel* - chat channel (e.g. /r/funny)
JSON

*Asterisks denote optional parameters.

Watch this space!

Meet The Team


Andrew Brown

It's just me right now. Talent follows awesomeness, though.

Proudly powered by Indent Labs. Design by TemplateGarden