Image Generation¶
POST https://api.studiolm.dev/v1/images/generations
Quick example¶
Parameters¶
| Parameter | Type | Default | Description |
|---|---|---|---|
prompt |
string | required | Text description of the image |
style |
string | "vivid" |
vivid, natural, preview, upscaled |
aspect_ratio |
string | "square" |
square, portrait, landscape |
response_format |
string or array | "url" |
"url", "b64_json", "hxd", or a list |
user_selected_model |
string | auto | Display name of the model to use |
negative_prompt |
string | — | Elements to avoid |
seed |
integer | random | Set for reproducible results |
disable_safety_checker |
boolean | false |
Requires special account permission |
force_prompt_enhancement |
boolean | false |
Always enhance prompt via LLM |
Image dimensions by aspect ratio¶
aspect_ratio |
Output size |
|---|---|
square |
1024 × 1024 |
portrait |
832 × 1216 |
landscape |
1216 × 832 |
Response¶
Image-to-image parameters¶
| Parameter | Type | Default | Description |
|---|---|---|---|
reference_image_url |
string | — | URL of the reference image |
reference_image |
string | — | Base64-encoded image (data:image/png;base64,...) |
denoising_strength |
number | 0.75 |
How much output differs from reference (0–1) |
Available models¶
GET https://api.studiolm.dev/v1/images/available-models
Returns a list of image models with display names and descriptions. Pass the display_name as user_selected_model to pin a specific model, or omit it to let the server choose.
Also visible via GET /v1/models — image models have "type": "image".