Getting Started
Learn how to make your first API request to Meibel AI
Getting Started with Meibel AI API
This guide will walk you through making your first API request to Meibel AI. We’ll show you how to set up authentication, create a datasource, and run a simple chat completion.
Prerequisites
Before you begin, make sure you have:
- A Meibel AI account (sign up at dashboard.meibel.ai if you don’t have one)
- An API key (generated from the Dashboard under Settings > API Keys)
- Basic knowledge of API requests (using curl, Postman, or your programming language of choice)
Step 1: Set Up Authentication
All requests to the Meibel AI API require authentication using your API key. You’ll need to include this key in the Authorization
header of your requests.
Step 2: Create a Datasource
Datasources are containers for your data elements. Let’s create a datasource for our project:
Step 3: Add a Data Element
Now, let’s add some content to our datasource:
Step 4: Run a Completion
Now, let’s use our datasource to power a completion with context retrieval:
Step 5: Stream a Response
For longer responses or real-time interactions, you can use streaming:
Next Steps
Congratulations! You’ve successfully made your first requests to the Meibel AI API. Here are some next steps to explore:
Explore Confidence Scoring
Learn how to leverage our confidence scoring system for higher accuracy
Set Up Execution Control
Gain precise control over AI execution flow and traceability
Configure Webhooks
Set up webhooks for asynchronous notifications
Browse the API Reference
Explore all available endpoints and parameters
Remember to secure your API keys and follow best practices for rate limiting and error handling in your production applications.