Overview
Send a POST /images/generate request with your prompt, output size, and
desired count.
luntrex routes to the best image model for your policy, returning hosted URLs, usage metrics, and
audit data.
Request payload
Provide the visual description, resolution, number of images, and optionally the model.
{
"prompt": "A futuristic cityscape at night, neon lights",
"size": "1024x1024",
"n": 1,
"model": "openai/dall-e-2"
}
Response payload
Receive signed URLs along with usage information to reconcile billing and quotas.
{
"images": [
"https://cdn.luntrex.com/images/uuid1.png"
],
"usage": {
"cost_tokens": 30000,
"n": 1,
"size": "1024x1024"
}
}