Use this file to discover all available pages before exploring further.
This guide walks you through making your first API call using Lumenfall. You can generate text with chat completions, create images, or generate videos - all through the same OpenAI-compatible API.
{ "id": "chatcmpl-abc123", "object": "chat.completion", "created": 1702345678, "model": "google/gemini-3-flash-preview", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "Capybaras are the world's largest rodents and can hold their breath underwater for up to five minutes!" }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 15, "completion_tokens": 24, "total_tokens": 39 }}
Video generation is asynchronous. You submit a request and get back an ID, then poll for the result.
# Submit the video generation requestcurl -X POST https://api.lumenfall.ai/openai/v1/videos \ -H "Authorization: Bearer $LUMENFALL_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "sora-2", "prompt": "A capybara peacefully swimming across a calm river at golden hour", "seconds": 5, "size": "1920x1080" }'# Poll for the result (replace VIDEO_ID with the id from the response)curl https://api.lumenfall.ai/openai/v1/videos/VIDEO_ID \ -H "Authorization: Bearer $LUMENFALL_API_KEY"
Lumenfall routes your requests to the best available provider. Browse our full model catalog to see all supported models, or use the Models API to list available models programmatically.
Add ?dryRun=true to any request to get a cost estimate without generating the image. The response includes pricing in micros (1/1,000,000 of a dollar). See Cost estimation for details and response format.