
Image to Image
Use image-to-image generation for tasks like upscaling, style transfer, image enhancement, and image variation.Image to Image
Use image-to-image generation for tasks like upscaling, style transfer, image enhancement, and image variation.Popular Models
Flux
Fast, versatile generation with extensive style support and custom ratios.Nano Banana Pro
Google's latest model with superior typography and photorealistic detail.Seedream 4
High quality image-to-image and text-to-image, photorealistic detail and flexible resolution.ChatGPT Image
Upscale and enhance your images with AI-powered quality improvementsFlux
Fast, versatile generation with extensive style support and custom ratios.Nano Banana Pro
Google's latest model with superior typography and photorealistic detail.Seedream 4
High quality image-to-image and text-to-image, photorealistic detail and flexible resolution.ChatGPT Image
Upscale and enhance your images with AI-powered quality improvementsStep 1: Upload or Reference an Image
First, you need to provide the source image. You can either:- Upload an image file as base64
- Provide a publicly accessible image URL
Replace with your API TokenTo replace the YOUR_API_TOKEN placeholder in the above examples, you’ll need to generate an API token in krea.ai/settings/api-tokens. Follow the instructions on the API Keys & Billing page if you need help.
Step 2: Generate Image
Make a POST request to the appropriate endpoint with your image and parameters.Step 3: Poll for Results
Image generation is asynchronous. You’ll receive a job ID immediately, then poll for results until the image is ready. Poll/jobs/{job_id} every 2 seconds until the job completes.
Webhooks available!Set up webhooks to receive notifications when jobs complete. See the Webhooks guide to get started.
Common Parameters
| Parameter | Type | Description |
|---|---|---|
image_url | string | URL of the input image |
prompt | string | Description of desired transformation |
scale | number | Upscaling factor (1-4) |
steps | number | Generation steps (more steps = higher quality) |
strength | number | How much to transform the image (0.0-1.0) |