Skip to content

Image Generation (Text-to-Image)

Generates an image from a text prompt. OpenAI images/generations format.

Available models

ModelOutputSpeed
spook-generate (recommended, local)1024×1024 (SDXL derivative)Medium
dall-e-3OpenAI sideSlow but high quality
dall-e-2OpenAI sideFast, lower quality

curl

bash
curl https://app.qevron.ai/v1/images/generations \
  -H "Authorization: Bearer sk-..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "spook-generate",
    "prompt": "Bosphorus at sunset, cinematic lighting, photorealistic",
    "size": "1024x1024",
    "n": 1
  }'

Python (openai SDK)

python
from openai import OpenAI

client = OpenAI(api_key="sk-...", base_url="https://app.qevron.ai/v1")

resp = client.images.generate(
    model="spook-generate",
    prompt="A blue cat, intelligent, reading a book in a library, illustration",
    size="1024x1024",
    n=1,
)
print(resp.data[0].url)   # public URL or b64_json

Parameters

ParamMeaningValid values
promptWhat you wantBe descriptive — not "cat" but "blue domestic cat sitting on a windowsill, oil painting style"
sizeOutput size256x256, 512x512, 1024x1024
nHow many images1–4 (1 recommended for spook-generate)
qualityQuality tierstandard / hd (OpenAI side)
response_formatResult shapeurl (default) / b64_json

Prompt tips

  • Order matters: subject → style → lighting → angle → composition. Example: "red sports car, photorealistic, sunset lighting, low angle, cinematic composition".
  • Negative prompts: spook-generate accepts , --no <thing> at the end of prompt (some SDXL builds).
  • Style refs: "Studio Ghibli style", "oil painting", "watercolor", "low-poly 3D render".

Troubleshooting

  • Blurry output → prompt too short. Aim for 15–20 descriptive words minimum.
  • Wrong object count → SDXL doesn't reliably "count"; describe each element separately rather than relying on numbers.
  • Refused (NSFW filter) → spook-generate may reject explicit prompts; rephrase.

Next: Background removal · VQA

Qevron — AI gateway. Arpanet / OpenAI / Anthropic / Gemini compatible.