NeuralNet API
Integrate state-of-the-art AI models into your applications with a single, unified API.
Welcome to the NeuralNet API documentation. Our platform provides a standardized interface to access a wide range of Large Language Models (LLMs), including GPT-4, Claude 3, and open-source alternatives like Llama 3 and Mistral.
Our API is fully compatible with the OpenAI SDK, making it incredibly easy to switch or integrate if you're already familiar with the ecosystem.
Authentication
All API requests require an API key. You can obtain your API key from the Account Dashboard.
Your API key carries the same privileges as your user account. Do not share it or commit it to public repositories.
Authorization: Bearer YOUR_API_KEYMaking Requests
The base URL for all API requests is:
curl https://neuralnet.pages.dev/api/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "gpt-4-turbo",
"messages": [
{
"role": "user",
"content": "Hello!"
}
]
}'Available Models
We support a variety of models. Visit the Models Catalog for a full interactive list.
GPT-4 Turbo
OpenAIgpt-4-turbo Claude 3 Opus
Anthropicclaude-3-opus Llama 3 70B
Metameta-llama/llama-3-70b-instruct Error Handling
| Code | Description | Solution |
|---|---|---|
| 400 | Bad Request | Check your JSON body and required fields. |
| 401 | Unauthorized | Verify your API key is correct and active. |
| 429 | Rate Limit | You are sending too many requests. Slow down. |