{ "id": "chatcmpl-abc123", "object": "chat.completion", "created": 1702345678, "model": "google/gemini-3-flash-preview", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "Capybaras are remarkably calm animals for several reasons. As the largest rodents in the world, they have few natural predators in their South American habitats, which means they haven't evolved a strong flight-or-fight response. They're also highly social and semi-aquatic, spending much of their time lounging in warm water - which would make anyone relaxed!" }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 14, "completion_tokens": 71, "total_tokens": 85 }}
{ "id": "chatcmpl-abc123", "object": "chat.completion", "created": 1702345678, "model": "google/gemini-3-flash-preview", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "Capybaras are remarkably calm animals for several reasons. As the largest rodents in the world, they have few natural predators in their South American habitats, which means they haven't evolved a strong flight-or-fight response. They're also highly social and semi-aquatic, spending much of their time lounging in warm water - which would make anyone relaxed!" }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 14, "completion_tokens": 71, "total_tokens": 85 }}
Modern media applications don’t just generate images and videos — they also make dozens of LLM calls for prompting, captioning, moderation, and orchestration. Instead of juggling a separate provider or router for text, you can use the same Lumenfall SDK, API key, and base URL you already use for media generation. One platform, one bill, no context-switching.
Powered by OpenRouterText completions are routed through OpenRouter, giving you access to all hundreds of models available on their platform — from OpenAI, Google, Anthropic, Meta, Mistral, and many more providers. All OpenRouter features are fully supported. Use any model by passing its OpenRouter model identifier (e.g., google/gemini-3-flash-preview). You can optionally prefix with openrouter/ (e.g., openrouter/google/gemini-3-flash-preview), but it is not required.
OpenAI compatibilityThis endpoint implements the OpenAI Chat Completions API. You can use any OpenAI SDK by changing the base URL to https://api.lumenfall.ai/openai/v1.
The content of the message. Can be a string, an array of content parts (for multimodal input), or null (for assistant messages with tool calls).Content parts support text and image_url types:
Copy
[ { "type": "text", "text": "What's in this image?" }, { "type": "image_url", "image_url": { "url": "https://example.com/image.png" } }]
When stream: true is set, the response is sent as server-sent events. Each event contains a chat.completion.chunk object with a delta field instead of message:
{ "id": "chatcmpl-abc123", "object": "chat.completion", "created": 1702345678, "model": "google/gemini-3-flash-preview", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "Capybaras are remarkably calm animals for several reasons. As the largest rodents in the world, they have few natural predators in their South American habitats, which means they haven't evolved a strong flight-or-fight response. They're also highly social and semi-aquatic, spending much of their time lounging in warm water - which would make anyone relaxed!" }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 14, "completion_tokens": 71, "total_tokens": 85 }}