Skip to main content
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.

Prerequisites

Chat completion

Send a message and get a text response. Text models are powered by OpenRouter, so you can use any model available there.

Response

Generate an image

Lumenfall uses an OpenAI-compatible API, so you can use any OpenAI SDK or make direct HTTP requests.

Response

The API returns image URLs in the standard OpenAI format:

Generate a video

Video generation is asynchronous. You submit a request and get back an ID, then poll for the result.

Response

The initial request returns a 202 with the video object:
Once completed, the GET response includes the output:

Available models

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.

Estimate costs before generating

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.

Next steps

API Reference

Explore the full API documentation.

Authentication

Learn about API keys and authentication.

Routing

Understand how Lumenfall routes requests to providers.

Billing

View pricing and manage your account balance.