Quick Start Guide

View as Markdown

Get up and running with NeuraAI in minutes. This guide will walk you through making your first API call.

Installation

Since NeuraAI is fully compatible with the OpenAI interface, you can use the official OpenAI Python client:

$pip install openai

Get Your API Key

  1. Sign up at neura-ai.app
  2. Navigate to your dashboard
  3. Generate a new API key
  4. Store it securely as an environment variable
$export NEURA_API_KEY='your-api-key-here'

Your First Request

Here’s a simple example to get started with text generation:

1from openai import OpenAI
2
3# Initialize the client
4client = OpenAI(
5 base_url="https://api.neura-ai.app/v1",
6 api_key="your-api-key-here" # Or use environment variable
7)
8
9# Create a chat completion
10response = client.chat.completions.create(
11 model="gpt-5",
12 messages=[
13 {
14 "role": "user",
15 "content": "Write me a haiku about artificial intelligence"
16 }
17 ]
18)
19
20# Print the response
21print(response.choices[0].message.content)

List Available Models

Discover which models are available for your use case:

1from openai import OpenAI
2
3client = OpenAI(
4 base_url="https://api.neura-ai.app/v1"
5)
6
7# Fetch all available models
8models = client.models.list()
9
10# Display model IDs
11for model in models.data:
12 print(model.id)

Common Parameters

When making requests, you’ll frequently use these parameters:

  • model - The AI model to use (e.g., gpt-5, gemini-2.5-pro)
  • messages - Array of conversation messages with role and content
  • temperature - Controls randomness (0.0 = deterministic, 2.0 = very random)
  • max_tokens - Maximum length of the generated response
  • stream - Enable streaming responses for real-time output

Next Steps

Now that you’ve made your first request: