API Documentation

Comprehensive reference for all NexusPoint AI endpoints. Version 4.

Base URL: https://nexuspoint.aiAuth: Bearer Token1 credit per call

Authentication

All API requests require a Bearer token in the Authorization header. Generate API keys in your dashboard settings.

Authorization: Bearer np_a1b2c3d4e5f6...

Input options: Every endpoint accepts image_url (public URL) or base64 (base64-encoded image). Provide exactly one.

Endpoints

Background Removal

Remove backgrounds from images instantly. Returns a base64-encoded PNG of the foreground.

API Reference

POST/api/v4/remove-bg

Request Body (JSON)

NameTypeRequiredDescription
image_urlstringOne requiredURL of the image to process (provide this OR base64)
base64stringOne requiredBase64-encoded image data (provide this OR image_url)
cropbooleanOptionalTrim empty space after removing background(Default: false)
curl -X POST 'https://nexuspoint.ai/api/v4/remove-bg' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "image_url": "https://example.com/photo.jpg",
    "crop": true
  }'

Possible Error Codes