← All models
Generate high-fidelity images from text with Krea 2 using a style reference image. Apply a reference image to guide the visual style into new generations, with aspect ratio, creativity, and seed controls.
images
Details
- Accepts
- image
Pricing
- Price
- 1.25 cr / megapixel
Prices in credits (1 credit = $0.01).
Data schema
Input
| Field | Type | Description |
|---|---|---|
| seed | — | Random seed for reproducible generation. Image *i* uses `seed + i`. |
| promptrequired | string | Base text description of the image to generate. |
| sync_mode | boolean | If `True`, the media will be returned as a data URI and the output data won't be available in the request history. |
| image_size | — | The size of the generated image. |
| num_images | integer | The number of images to generate. |
| style_scale | number | Scale for the style adapter residual. |
| acceleration | stringenum: none, regular | The acceleration level to use for the image generation. |
| output_format | stringenum: jpeg, png | The format of the generated image. Default value: "png". |
| reference_image_urlsrequired | array | One to three image URLs used as style references. |
| enable_safety_checker | boolean | If true, the output safety checker is enabled. Disabling it requires account authorization; unauthorized requests are always checked, and images flagged as unsafe are returned as black images. |
| enable_prompt_expansion | boolean | If true, the prompt is expanded with an LLM into a more detailed image-generation prompt for higher quality results. On failure, the original prompt is used unchanged. |
Output
| Field | Type | Description |
|---|---|---|
| seed | integer | The seed used to generate the image(s). |
| images | array | The generated images. |
| prompt | string | The prompt used for generation. |
| timings | object | Timing information for the request, in seconds. |
| actual_prompt | — | The final prompt after expansion, if prompt expansion was enabled. |
| has_nsfw_concepts | array | Whether each generated image contains NSFW concepts. |