Skip to content

Image Generate

Edit Image

Change a picture with a sentence: new sky, new style, add or remove things. FLUX.2 klein, 1024x1024 out.

POST /v1/image/edit

Price
Each image costs $0.0015. Your first 100 priced calls each day are free, so you can try it before adding credits.
Freshness
Computed fresh on every call.
Answer
Always { data, cost_usd, balance_usd, cached, request_id }.

Parameters

NameTypeRequiredWhat it isExample
promptbodystringyesWhat to change, in plain words. Say what to keep, too. Up to 2,000 characters.the same picture at night, with stars and a full moon
imagebodystringyesThe picture to change: a public URL, or the file as base64. JPEG or PNG up to 2048x2048 and 6 MB (8 MB once base64-encoded).https://api.crypto2api.com/v1/image/example.jpg

Try it

A real call. Your first 100 priced calls a day are free; after that it costs the price above. Edit anything and run it.

Response

Example data (the answer sits inside the envelope)

{
  "data": {
    "image": {
      "b64": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEBAQEB…",
      "mime": "image/jpeg",
      "width": 1024,
      "height": 1024
    },
    "model": "flux-2-klein-4b"
  },
  "cost_usd": 0.0015,
  "balance_usd": "…",
  "cached": false,
  "request_id": "req_…"
}

What the example answered when this page was built, shortened. Run it for a live answer.

Copy it

Runs as-is with your key in place of c2a_your_key. The MCP block gives an agent every endpoint in one server.

curl https://api.crypto2api.com/v1/image/edit \
  -H "Authorization: Bearer c2a_your_key" \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "the same picture at night, with stars and a full moon",
  "image": "https://api.crypto2api.com/v1/image/example.jpg"
}'