The Library of Unwritten Books
More stories than stars in the sky

To use The Library you need access to a large language model (LLM). We're calling the credentials for this access your "library card."

Use your own LLM Provider (Library Card)

If API Key below is empty, text of your stories is being passed to OpenAI over the site author's business account. The site author will turn off this access for all users once it hits a prepaid limit. If, however, you provide your own endpoint (API Base) and API key, your text will be passed to the LLM provider maintaining that endpoint, and you can keep using the library even after the limit is hit. If you have no idea what a base or API key are, see the section below.

API Base: 
API Key: 

This site stores this information along with your current story in your browser's localStorage. This isn't shared with the site's author. However, if someone has access to your browser, they could see this data. To remove all such data, click remove my saved data.

Note: If you are using your own API provider, you should consider that using different models than those the prompts were written for will produce different results.

So you need an API key?

You can access the Library with a number of LLM providers, as long as they use the same syntax as the OpenAI API. For example, you could download LM Studio and point to a local LLM ensuring your stories stay on your computer. However, for simplicity's sake, we will only walk through how to set up OpenAI credentials here.

If you need an OpenAI account, you can create one here. When you create a new OpenAI account, you are given a limited amount of free API credits. If you created an account some time ago, however, these may have expired. If your credits have expired, you will need to enter a billing method before you can use the API. You can check the state of any credits here.

Login to OpenAI, and navigate to the API documentation.

Once you are looking at the API docs, follow the steps outlined in the image above. That is:

  1. Select "API keys" from the left menu
  2. Click "+ Create new secret key"

After solving a puzzle to prove you're human, you will be provided with your API key. Use this and the "API Base" https://api.openai.com/v1/chat/completions above.

If you receive an error when trying to use your key, make sure to check the state of any credits here. If you don't have any credits, you will need a billing method on file with OpenAI.

Questions or comments? I'm on Mastodon @Colarusso@mastodon.social