Skip to main content
llm.kiwi provides a high-speed interface for generating high-quality images using the latest Flux architecture.

Endpoint

POST https://api.llm.kiwi/v1/images/generations

Request Parameters

ParameterTypeRequiredDescription
promptstringYesA text description of the desired image.
modelstringNoThe model to use. Defaults to our optimized Flux instance.
nintegerNoThe number of images to generate (currently supports 1).
sizestringNoThe dimensions of the image (e.g., 1024x1024).

Example Usage

curl https://api.llm.kiwi/v1/images/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A futuristic city built on a giant floating kiwi fruit, digital art style",
    "size": "1024x1024"
  }'

Tips for Better Prompts

  • Be Descriptive: Instead of “a car”, try “a classic 1960s sports car driving through a neon-lit Tokyo street at night”.
  • Specify Style: Add terms like “photorealistic”, “oil painting”, “minimalist”, or “3D render” to guide the aesthetic.
  • Lighting and Mood: Use descriptors like “golden hour”, “cinematic lighting”, or “gloomy atmosphere”.