LogoNanoPhoto.AI Docs
LogoNanoPhoto.AI Docs
Website HomepageDocumentation Homepage

Getting Started

Getting Started

User Guide

User Guide

API

API OverviewSora Watermark Removal APIVideo Reverse Prompt APISora 2 Prompt Generator APISora 2 Video Generation APISora 2 TVC Ad APINano Banana Pro Image Generation APINano Banana 2 Image Generation API

Use Cases

Sora 2 TVC Ad Creation

Billing

Billing & Invoice

FAQ

FAQ
X (Twitter)

API Overview

NanoPhoto.AI API documentation - integrate AI video and image generation into your applications.

Overview

NanoPhoto.AI provides a REST API for integrating AI generation capabilities into your applications.

Base URL: https://nanophoto.ai

Authentication

All API requests require authentication via an API Key passed as a Bearer token in the Authorization header.

Authorization: Bearer YOUR_API_KEY

Obtaining an API Key

  1. Sign in to nanophoto.ai
  2. Go to Settings > API Keys
  3. Create a new API key

Important

Keep your API key secure. Do not share it publicly or commit it to version control.

Rate Limiting

  • Default rate limit: 100 requests per hour per API key
  • If you need higher limits, contact support@nanophoto.ai

When rate limited, the API returns a 429 status code:

{
  "success": false,
  "error": "API key rate limit exceeded. Default: 100 requests/hour. Contact support@nanophoto.ai for higher limits.",
  "errorCode": "API_KEY_RATE_LIMIT_EXCEEDED"
}

Common Error Codes

errorCodeHTTP StatusDescription
LOGIN_REQUIRED401Authentication required
API_KEY_RATE_LIMIT_EXCEEDED429Rate limit exceeded
INVALID_INPUT400Missing required parameters
INTERNAL_ERROR500Internal server error

Available APIs

Sora 2 Video Generation

Generate videos using Sora 2 models with text-to-video and image-to-video modes.

Sora Watermark Removal

Remove watermarks from Sora 2 generated videos.

Video Reverse Prompt

Analyze videos to extract detailed shot breakdowns and prompts.

Nano Banana Pro Image Generation

Generate AI images with text-to-image and image-to-image modes.

Table of Contents

Overview
Authentication
Obtaining an API Key
Rate Limiting
Common Error Codes
Available APIs