https://api.lumenfall.ai/openai/v1.
Base URL
Authentication
All API requests require a Bearer token in theAuthorization header:
Available endpoints
Generate images
Create images from text prompts using various AI models.
List models
Get a list of all available models.
Get model
Retrieve details about a specific model.
Request format
All requests should include:Content-Type: application/jsonheader- JSON request body (for POST requests)
Response format
All responses follow the OpenAI response format. Successful responses return JSON with the requested data. Error responses include anerror object:
Error codes
| Code | HTTP Status | Description |
|---|---|---|
AUTHENTICATION_FAILED | 401 | Invalid or missing API key |
INSUFFICIENT_BALANCE | 402 | Account balance too low (prepaid accounts) |
INVALID_REQUEST | 400 | Malformed request or invalid parameters |
MODEL_NOT_FOUND | 404 | Requested model does not exist |
MODEL_DISABLED | 404 | Model is currently disabled |
RATE_LIMITED | 429 | Too many requests |
ALL_PROVIDERS_EXHAUSTED | 502 | All providers failed to handle the request |
Rate limits
Lumenfall does not impose strict per-request rate limits. Your usage is governed by your account balance—requests are processed as long as you have sufficient credits. For prepaid accounts, ensure you have enough balance or enable auto top-up to avoid interruptions.Dry run mode
Add?dryRun=true to any request to get a cost estimate without executing the request. This is useful for validating requests and estimating costs before generation.