Skip to content

Image Generate

Generate Image

Make a 1024x1024 picture from a sentence. FLUX.1 schnell, back in about 8 seconds.

POST /v1/image/generate

Price
Each image costs $0.0021. 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 the picture should show, in plain words. Up to 2,000 characters.a small red fox on a snowy hill, watercolor

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-1-schnell"
  },
  "cost_usd": 0.0021,
  "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/generate \
  -H "Authorization: Bearer c2a_your_key" \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "a small red fox on a snowy hill, watercolor"
}'