Docs
Selecting the Optimal Language Model in a Crowded Marketplace
The proliferation of language models and providers presents a significant challenge: identifying the solution that best aligns with your specific needs. AIConvo simplifies this process by enabling you to prioritize based on your key criteria: price or performance.
-
Focus on Value: Price vs. Performance AIConvo offers a curated selection of front-end language models optimized for diverse use cases. Whether your primary concern is cost-efficiency or maximizing performance, we provide the tools and resources to make an informed decision.
-
Effortless Integration with a Robust API Seamlessly integrate AI capabilities into your existing workflows with AIConvo's robust and user-friendly API. We partner with leading platforms to ensure effortless integration and minimize development overhead.
Available Language Models
Explore and experiment with our supported language models directly within our interactive playground. This hands-on experience allows you to evaluate performance and identify the optimal model for your requirements. You can then seamlessly deploy your chosen model on our integrated partner platforms.
OAuth PKCE
Users can connect to AIConvo in one click using Proof Key for Code Exchange (PKCE).
1.Send your user to 'https://aiconvo.app/auth?callback_url=YOUR_SITE_URL'
- You can optionally include a 'code_challenge' (random password up to 256 digits) for extra security.
- For maximum security, we recommend also setting 'code_challenge_method' to 'S256', and then setting 'code_challenge' to the base64 encoding of the sha256 hash of 'code_verifier', which you will submit in Step 2. More info in Auth0's docs.
2.Once logged in, they'll be redirected back to your site with a code in the URL. Make an API call (can be frontend or backend) to exchange the code for a user-controlled API key. And that's it for PKCE!
axios.post('https://aiconvo.app/api/v1/auth/keys', {
code: $QUERY_PARAM,
code_verifier: $VERIFIER,
})
.then(response => {
// Handle the successful response here
console.log(response.data);
})
.catch(error => {
// Handle errors here
console.error(error);
});
3.A fresh API key will be in the result under "key". Store it securely and make OpenAI-style requests:
axios.post('https://aiconvo.app/api/v1/chat/completions', {
model: 'gpt-3.5-turbo',
messages: [
{ role: 'system', content: '' },
{ role: 'user', content: 'Hi!' },
],
}, {
headers: {
'Authorization': Bearer ${AICONVO_API_KEY},
'Content-Type': 'application/json',
}
})
.then(response => {
// Handle the successful response here
console.log(response.data);
})
.catch(error => {
// Handle any errors here
console.error(error);
});
You can use JavaScript or any server-side framework like node.js.