Krea K3 Edit
Krea K3 Edit. AI image editing from a text instruction; requires an input image.
/v1/media/queueOverview
Instruction-based image editing via Krea K3 Edit. Send an image and a text instruction; the model returns one edited image. Async operation — submit a job, poll for completion.
| Property | Value |
|---|---|
| Model ID | krea/k3-edit |
| Alias | krea-edit, k3-edit |
| Provider | Krea |
| Category | Image Generation |
| Output Formats | png |
| Input Image | Required (imageData) |
| Billing | Dynamic (actual cost per job) |
| Typical Cost | ~$0.17 per image |
Usage
All media models use the async job queue. Submit a job, then poll for the result.
Step 1: Submit Job
Image-to-Image (Edit)
krea/k3-edit edits an existing image. Send the image to edit via imageData and describe the change in prompt. Requests without imageData are rejected.
const res = await fetch('https://api.yepapi.com/v1/media/queue', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
model: 'krea/k3-edit',
prompt: 'Replace the overcast sky with a clear dusk sky, keep the buildings unchanged',
imageData: {
mimeType: 'image/png',
base64: '...', // Base64-encoded image
},
}),
});
const { data } = await res.json();
// data.jobId — use this to poll for resultscurl -X POST https://api.yepapi.com/v1/media/queue \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "krea/k3-edit", "prompt": "Replace the overcast sky with a clear dusk sky, keep the buildings unchanged", "imageData": {"mimeType": "image/png", "base64": "BASE64_IMAGE"}}'imageData is required. A request without it fails at submit time with: krea/k3-edit needs an input image: send it in imageData.
Step 2: Poll for Result
const status = await fetch(`https://api.yepapi.com/v1/media/status/${data.jobId}`, {
headers: { 'x-api-key': 'YOUR_API_KEY' },
});
const { data: job } = await status.json();
// job.status — "pending" | "processing" | "completed" | "failed"
// job.result.image — { mimeType, base64 } when completedcurl https://api.yepapi.com/v1/media/status/JOB_ID \
-H "x-api-key: YOUR_API_KEY"Request Body
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
model | string | Yes | krea/k3-edit or aliases krea-edit, k3-edit | — |
prompt | string | Yes | Instruction describing the edit to make | — |
options.outputFormat | string | No | png | png |
imageData.mimeType | string | Yes | MIME type of the input image (image/png, image/jpeg, image/webp) | — |
imageData.base64 | string | Yes | Base64-encoded image to edit | — |
Features
- Image-to-image editing from a text instruction
- Requires an input image in
imageData - Returns a single edited image
- PNG output
Pricing
Billing is dynamic — each job is billed from the actual cost of that generation.
| Metric | Cost |
|---|---|
| Typical cost per image | ~$0.17 |
Image jobs typically complete in 5–60 seconds. Results retained for 1 hour.
Powered by Krea's Krea K3 Edit via our AI provider.