AI Image Generation API

Text-to-image and image-to-image with SDXL, Flux, Qwen models... custom-trained and optimized by Copax.

Get advice / API keyContact us for the best pricing

AI Image Generation API

🚀 Try it now on Lumina: lumina.aiappviet.com – register an account, purchase credit packages, and get your API key in minutes. Get API Key →

Integrate AI image generation into your website, app, or content workflow via REST API: text-to-image and image-to-image (with one or more reference images) using SDXL, Flux, Qwen models... custom-trained and optimized by Copax. No need to run your own GPUs, install models, or manage queues.

Who is it for?

  • Websites and apps wanting to offer "prompt-to-image" features to users.
  • Online shops and agencies needing high-volume product or advertising images (maintaining product consistency from reference images).
  • Developers needing a stable image generation backend for AI applications.

Technical Information

  • Base URL: https://lumina.aiappviet.com
  • Authentication: Authorization: Bearer <API Key> (keys start with lm_...)
  • Generate Image: POST /api/v1/images – parameters: prompt, size (e.g., "1:1"), image or images (optional reference image URLs)
  • Get Result: GET /api/v1/generations/{id} – status is running, done, or failed; url provided upon completion
  • Error Codes: 401 invalid key · 402 insufficient credits · 429 rate limit/concurrency reached · 400 invalid content
curl -X POST https://lumina.aiappviet.com/api/v1/images \
  -H "Authorization: Bearer lm_..." \
  -H "Content-Type: application/json" \
  -d '{"prompt": "portrait, window lighting", "size": "1:1"}'

Detailed guide with Node.js code: Integrate AI Image Generation API into your website in 10 minutes.

Pricing

Contact us for the best pricing.

Getting Started

  1. Register at lumina.aiappviet.com.
  2. Purchase credit packages.
  3. Get your key in the API Keys section and integrate it.
  4. Need custom models/styles or high volume? Contact us – we can combine this with our Model & LoRA Training service.

Notes

  • Keep API keys on the backend; do not include them in client-side source code.
  • Generated content must comply with the terms of service.

👉 Get started with Lumina

Other services