This repository contains examples demonstrating how to use our API endpoints, featuring realistic, LLM-powered use cases.
Share your examples with the community! Pull requests are welcome. We'll review PRs and potentially merge the best use cases (with credit, of course).
To use these examples, you'll need:
- An API key from Limitless
- Python 3 and virtualenv (you can install virtualenv with
pipx install virtualenv
) - Basic understanding of REST APIs
You can also use our OpenAPI spec to generate client libraries in your language of choice.
All API requests require authentication using an API key. Include it in the header of your requests:
cd examples
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
curl -X GET "https://api.limitless.ai/v1/<endpoint>" \
-H "X-API-KEY: YOUR_API_KEY"
See the notebooks/
folder for examples.
This example simply prints the Markdown content from each the most recent record.
LIMITLESS_API_KEY="your_api_key" python export_markdown.py
A request to play a song, followed by a discussion about the lyrics
Requesting Siri to play "Shiny" from Moana.
Speaker 1: Okay.
Speaker 2: serious.
Speaker 2: Siri, play Shiny from Moana in the front room.
Speaker 2: Shiny from Moana soundtrack by Jemaine Clement now playing on the front room.
Discussing the desired part of the song.
Speaker 3: It's from the part where you're singing. we want the shiny.
Speaker 3: Right, Mom.
Confusion about the lyrics and a reference to Grandma's advice.
... etc ...
LIMITLESS_API_KEY="your_api_key" OPENAI_API_KEY="sk-...." python summarize_day.py
Here's a summary of the provided transcripts:
1. **Song Request and Lyrics Discussion**: A family member requests Siri to play "Shiny" from Moana. They discuss their favorite parts of the song, express confusion over the lyrics, and reflect on Grandma's advice to "listen to your heart."
2. **Swimming Conversation**: You and another speaker recall whose child was first in the water, discuss a successful swim attempt, and consider whether to do another lap.
... etc ...
For more information on the API, see the documentation.
If you need help, join our Slack community, follow us on X/Twitter, or email us.