Introduction
Welcome to the Nexus API documentation. Nexus provides a unified, professional interface for the world's most powerful AI models, streamlining access to text generation and image creation through a single integration.
Base URL
Key Features
Unified Text API
Switch between Gemini, GPT-4, Claude, and Llama with a single parameter change.
Image Generation
Access Flux, Stable Diffusion, and Midjourney styles instantly.
High Performance
Optimized routing for low latency and high availability.
Obtaining an API Key
To start building with Nexus, you'll need a unique API key. Follow these steps to generate yours.
1. Start Building
Navigate to nexusify.co and click on the "Start building" button.
2. Authentication
You will be redirected to the authentication portal (auth.nexusify.co). Complete one of the following:
- Complete the "I'm not a robot" verification.
- Or sign in using Google or Discord.
3. Access Dashboard
Upon successful login, you will be automatically redirected to the developer dashboard at:
4. Retrieve Credentials
Scroll down to the "API Credentials" section. Your API Key will be obscured for security.
Click the "Copy Secret Key" button located below the blurred field to copy your active key.
Authentication
All API requests require an API Key to be included in the header for security and tracking.
Headers
Include the Authorization header with your API key.
Authorization: Bearer YOUR_API_KEY
Chat Completions
Generate text using over 40 distinct AI models through a single, OpenAI-compatible endpoint.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | The ID of the model to use (e.g., gpt-4, gemini-2.5-flash). |
| messages | array | Yes | Array of message objects containing role and content. |
| stream | boolean | No | If true, returns a data stream. |
| temperature | float | No | Controls randomness (0.0 to 2.0). Default is 0.7. |
Example Request
curl -X POST https://api.nexusify.co/v1/chat/completions \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-2.5-flash",
"messages": [
{"role": "user", "content": "Explain relativity to a 5 year old."}
]
}'
Available Text Models
A complete list of the 42 models currently supported by the Nexus API.
| Provider | Model ID | Capabilities |
|---|
Image Generation
Create stunning visuals from text prompts using state-of-the-art diffusion models.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | string | - | A detailed text description of the desired image. |
| model | string | flux | The model ID to use for generation. |
| width | integer | 512 | Width of the image in pixels (max 2048). |
| height | integer | 512 | Height of the image in pixels (max 2048). |
Example
const res = await fetch('https://api.nexusify.co/v1/generate-image', {
method: 'POST',
headers: {
'Authorization': 'Bearer KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
prompt: "Cyberpunk city with neon rain, cinematic lighting",
model: "flux-pro",
width: 1024,
height: 1024
})
});
const data = await res.json();
console.log(data.imageUrl);
Image Models
Select the perfect model for your artistic requirements.
| ID | Description | Best For |
|---|
Limits & Errors
Understanding the operational limits and error responses of the API.
Usage Limits
Error Codes
| Code | Meaning | Description |
|---|---|---|
400 | Bad Request | Missing required parameters or invalid format. |
401 | Unauthorized | Invalid or missing API Key. |
429 | Too Many Requests | You have exceeded the daily or minute rate limit. |
500 | Internal Server Error | Something went wrong on our end. Please try again. |