Quick Start Guide
Get up and running with Conduit.im in under 5 minutes.
Prerequisites
- A Conduit.im account (sign up for free)
- Basic knowledge of REST APIs
- A terminal or API client like Postman
Step 1: Get Your API Key
First, you'll need to create an account and get your API key:
- Sign up for a Conduit.im account
- Navigate to your dashboard
- Go to the "API Keys" section
- Click "Create New Key" and copy your API key
Important: Keep your API key secure and never share it publicly. Treat it like a password and store it safely.
Step 2: Make Your First API Call
Now let's make a simple chat completion request. Replace YOUR_API_KEY with your actual API key:
curl -X POST "https://api.conduit.im/v1/chat/completions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "user",
"content": "Hello! Can you help me understand what Conduit.im does?"
}
],
"max_tokens": 150
}'Step 3: Understanding the Response
You should receive a response that looks like this:
{
"id": "chatcmpl-123",
"object": "chat.completion",
"created": 1677652288,
"model": "gpt-3.5-turbo",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! Conduit.im is a unified API platform that provides access to hundreds of large language models from various providers like OpenAI, Anthropic, Google, and more through a single, standardized interface. It simplifies AI integration for developers."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 20,
"completion_tokens": 45,
"total_tokens": 65
}
}Step 4: Try Different Models
One of the key benefits of Conduit.im is easy access to multiple models. Try changing the model in your request:
{
"model": "claude-3-sonnet",
"messages": [
{
"role": "user",
"content": "Write a haiku about programming"
}
]
}You can also try these popular models:
gpt-4- OpenAI's most capable modelclaude-3-opus- Anthropic's flagship modelgemini-pro- Google's advanced modelllama-2-70b- Meta's open-source model
Next Steps
Congratulations! You've made your first API call with Conduit.im.
Here's what you can explore next:
Troubleshooting
Getting a 401 Unauthorized error?
Double-check that you're including your API key in the Authorization header: Authorization: Bearer YOUR_API_KEY
Model not found error?
Make sure you're using a valid model name. Check our models page for a complete list.