Image Generation (Text-to-Image)
Generates an image from a text prompt. OpenAI images/generations format.
Available models
| Model | Output | Speed |
|---|---|---|
spook-generate (recommended, local) | 1024×1024 (SDXL derivative) | Medium |
dall-e-3 | OpenAI side | Slow but high quality |
dall-e-2 | OpenAI side | Fast, 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_jsonParameters
| Param | Meaning | Valid values |
|---|---|---|
prompt | What you want | Be descriptive — not "cat" but "blue domestic cat sitting on a windowsill, oil painting style" |
size | Output size | 256x256, 512x512, 1024x1024 |
n | How many images | 1–4 (1 recommended for spook-generate) |
quality | Quality tier | standard / hd (OpenAI side) |
response_format | Result shape | url (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 ofprompt(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