YepAPI
AI Models

Krea K3 Edit

Krea K3 Edit. AI image editing from a text instruction; requires an input image.

POST/v1/media/queue
from $0.17/image

Overview

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.

PropertyValue
Model IDkrea/k3-edit
Aliaskrea-edit, k3-edit
ProviderKrea
CategoryImage Generation
Output Formatspng
Input ImageRequired (imageData)
BillingDynamic (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 results
curl -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"}}'
Warning

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 completed
curl https://api.yepapi.com/v1/media/status/JOB_ID \
  -H "x-api-key: YOUR_API_KEY"

Request Body

ParameterTypeRequiredDescriptionDefault
modelstringYeskrea/k3-edit or aliases krea-edit, k3-edit—
promptstringYesInstruction describing the edit to make—
options.outputFormatstringNopngpng
imageData.mimeTypestringYesMIME type of the input image (image/png, image/jpeg, image/webp)—
imageData.base64stringYesBase64-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.

MetricCost
Typical cost per image~$0.17
Info

Image jobs typically complete in 5–60 seconds. Results retained for 1 hour.

Under the Hood

Powered by Krea's Krea K3 Edit via our AI provider.

On this page