v1.0.0

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

https://api.nexusify.co/v1

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:

https://dashboard.nexusify.co/dashboard

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.

Request Header
Authorization: Bearer YOUR_API_KEY
Security Notice: Keep your API key secure. Never share it in client-side code (browsers) or public repositories.

Chat Completions

Generate text using over 40 distinct AI models through a single, OpenAI-compatible endpoint.

POST /chat/completions

Parameters

NameTypeRequiredDescription
modelstringYesThe ID of the model to use (e.g., gpt-4, gemini-2.5-flash).
messagesarrayYesArray of message objects containing role and content.
streambooleanNoIf true, returns a data stream.
temperaturefloatNoControls randomness (0.0 to 2.0). Default is 0.7.

Example Request

cURL
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.

ProviderModel IDCapabilities

Image Generation

Create stunning visuals from text prompts using state-of-the-art diffusion models.

POST /generate-image

Parameters

NameTypeDefaultDescription
promptstring-A detailed text description of the desired image.
modelstringfluxThe model ID to use for generation.
widthinteger512Width of the image in pixels (max 2048).
heightinteger512Height of the image in pixels (max 2048).

Example

JavaScript
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.

IDDescriptionBest For

Limits & Errors

Understanding the operational limits and error responses of the API.

Usage Limits

60 Requests per Minute
1,000 Requests per Day
1.5M Free Tokens

Error Codes

CodeMeaningDescription
400Bad RequestMissing required parameters or invalid format.
401UnauthorizedInvalid or missing API Key.
429Too Many RequestsYou have exceeded the daily or minute rate limit.
500Internal Server ErrorSomething went wrong on our end. Please try again.