API Documentation

Access 50+ production-ready AI models through our unified API. Deploy in minutes, scale to millions.

50+ Models
99.9% Uptime
Enterprise Security
Low Latency

API Overview

The Nexa Labs API provides access to our suite of 50+ AI models, including language models, specialized agents, and custom fine-tuned systems. Built on enterprise-grade infrastructure with 99.9% uptime SLA.

API Endpoint: https://api.nexalabs.ai/v1
All requests must include your API key in the Authorization header.

Quick Start

Get up and running in under 5 minutes. Here's a complete example to make your first API call.

1. Get your API Key

Sign up at nexalabs.ai and generate your API key from the dashboard.

2. Make your first request

cURL
Python
Node.js
# Make a completion request curl https://api.nexalabs.ai/v1/completions \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "nexa-unicorn-12b", "prompt": "Write a marketing email for a new AI product", "max_tokens": 500, "temperature": 0.7 }'
Success! You've made your first API call. Check out the Models section to explore all available models.

Authentication

All API requests require authentication using an API key. Include your key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

You can generate API keys from your dashboard. Keep your keys secure and never commit them to version control.

Available Models

We offer 50+ models across different categories. Each model is optimized for specific use cases.

🦄 Language Models

Nexa Unicorn 12B

Our flagship 12B parameter model. Best for general-purpose text generation.

12B params Chat

Nexa Unicorn 7B

Faster, lighter version. Great for real-time applications.

7B params Fast

Nexa Unicorn 3B

Ultra-fast inference. Perfect for high-volume deployments.

3B params Ultra Fast

📊 Marketing & Business

Market Genius Pro

Real-time multi-channel niche analysis with AI agents.

Marketing Multi-Agent

Copywriter AI

Specialized in ad copy, emails, and social media content.

Copywriting

SEO Content Pro

Generate SEO-optimized content with keyword integration.

SEO

Product Description AI

E-commerce product descriptions that convert.

E-commerce

Email Campaign Pro

Personalized email campaigns at scale.

Email

Social Media Manager

Generate engaging posts for all platforms.

Social

🏥 Medical & Healthcare

Neurai Health Pro

Medical diagnosis assistance and pharmaceutical research.

Medical Healthcare

Clinical Notes AI

Automated clinical documentation and note-taking.

Clinical

Medical Literature AI

Summarize and analyze medical research papers.

Research

🤖 Agent Systems

Foundry Agent Orchestrator

Coordinate multiple AI agents for complex workflows.

Multi-Agent

Research Agent

Autonomous research assistant with web access.

Research

Data Analysis Agent

Analyze datasets and generate insights.

Analytics

Code Generation Agent

Generate and debug code across multiple languages.

Coding

💻 Code & Development

CodeGen Pro

Advanced code generation and completion.

Coding

Code Review AI

Automated code review and bug detection.

Code Review

Documentation AI

Generate comprehensive code documentation.

Docs

🎨 Creative & Content

Creative Writer AI

Stories, scripts, and creative content generation.

Creative

Blog Post Generator

Long-form blog content with SEO optimization.

Blogging

Video Script AI

Video scripts for YouTube, TikTok, and more.

Video

🌍 Multilingual Models

Translation Pro

High-quality translation across 100+ languages.

Translation

Multilingual Chat

Chat in any language with context preservation.

Multilingual

🔬 Specialized Models

Legal AI

Legal document analysis and drafting.

Legal

Financial AI

Financial analysis and report generation.

Finance

Academic AI

Research paper writing and citation management.

Academic

Customer Support AI

Intelligent customer support automation.

Support
Custom Models: Need a model fine-tuned for your specific use case? Contact us for custom model training.

Completions API

Generate text completions using any of our models.

Endpoint

POST https://api.nexalabs.ai/v1/completions

Parameters

Parameter Type Required Description
model string Yes Model ID to use (e.g., "nexa-unicorn-12b")
prompt string Yes The text prompt to generate from
max_tokens integer No Maximum tokens to generate (default: 100)
temperature float No Sampling temperature 0-2 (default: 1)
top_p float No Nucleus sampling parameter (default: 1)
stream boolean No Stream the response (default: false)

Response

{ "id": "cmpl-abc123", "object": "completion", "created": 1677649420, "model": "nexa-unicorn-12b", "choices": [ { "text": "Your generated text here...", "index": 0, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 10, "completion_tokens": 50, "total_tokens": 60 } }

Embeddings API

Generate vector embeddings for semantic search and similarity.

Endpoint

POST https://api.nexalabs.ai/v1/embeddings
{ "model": "nexa-embeddings", "input": "Your text to embed" }

Agents API

Deploy and manage intelligent AI agents for complex workflows.

Endpoint

POST https://api.nexalabs.ai/v1/agents/run
{ "agent": "research-agent", "task": "Research the latest AI trends", "tools": ["web-search", "summarize"] }

Pricing

Simple, transparent pricing based on usage. No hidden fees.

Model Category Price per 1M tokens Context Window
Nexa Unicorn 12B $2.00 32K tokens
Nexa Unicorn 7B $1.00 32K tokens
Nexa Unicorn 3B $0.50 16K tokens
Marketing Models $1.50 16K tokens
Medical Models $3.00 32K tokens
Agent Systems $0.10 per run Varies
Embeddings $0.10 N/A
Free Tier: All new accounts get $10 in free credits. No credit card required to start.

Rate Limits

Rate limits are enforced to ensure fair usage and system stability.

Plan Requests per minute Tokens per minute
Free Tier 60 40,000
Pro 3,000 500,000
Enterprise Custom Custom

Error Codes

Standard HTTP status codes are used to indicate success or failure.

Code Meaning Description
200 OK Request succeeded
400 Bad Request Invalid parameters
401 Unauthorized Invalid API key
429 Too Many Requests Rate limit exceeded
500 Internal Server Error Server error

Support

Need help? We're here for you.

Documentation

Comprehensive guides and tutorials

Read the docs →

Email Support

Get help from our team

api@nexalabs.ai →

Community

Join our developer community

Join Discord →