Quickstart
Get up and running with NeuralHub in minutes.
1. Create an Account
To use NeuralHub, you first need to create an account. This will automatically create your personal workspace.
2. Generate an API Key
Navigate to the Settings page to generate your first API Key. You will need this key to authenticate your requests to the NeuralHub API.
3. Make your first Request
You can use the standard OpenAI client libraries to interact with NeuralHub. Just set the `baseURL` to `https://neuralhub.xyz/v1` and use your API Key.
import OpenAI from "openai";
const openai = new OpenAI({
apiKey: "nh_...", // Your NeuralHub API Key
baseURL: "https://neuralhub.xyz/v1",
});
async function main() {
const completion = await openai.chat.completions.create({
messages: [{ role: "user", content: "Hello world!" }],
model: "meta-llama/llama-3.2-3b-instruct",
});
console.log(completion.choices[0]);
}
main();Next Steps
- Explore Workspaces: Organize your projects and resources.
- Deploy Pods: Launch GPU instances for training and inference.
- Browse Models: See available models for chat completions.