API Reference
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_KEYObtaining an API Key
- Sign in to nanophoto.ai
- Go to Settings > API Keys
- 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
| errorCode | HTTP Status | Description |
|---|---|---|
LOGIN_REQUIRED | 401 | Authentication required |
API_KEY_RATE_LIMIT_EXCEEDED | 429 | Rate limit exceeded |
INVALID_INPUT | 400 | Missing required parameters |
INTERNAL_ERROR | 500 | Internal server error |
وثائق NanoPhoto.AI