Ugrás a tartalomhoz
BejelentkezésKezdd ingyen

Image generation API

Make pictures from words, or edit pictures you link, with one HTTP call. Every picture costs credits at the price shown below, including models that are free on the website, and you can ask for the exact price before you run anything.

Models open for the API now

Read live from the API's own model list, so the prices here are the prices charged.

ModellModesÁr
Saffront2i6 credits per picture
Indigot2i edit2 credits per picture
Lapist2i36 credits per picture
Celadont2i8 credits per picture
Cobaltt2i2 credits per picture
Siennat2i6 credits per picture
Ambert2i2 credits per picture
Jadet2i3 credits per picture
Sepiat2i12 credits per picture
Lucid Origint2i54 credits per picture
Phoenix 1.0t2i44 credits per picture
DreamShaper 8t2i2 credits per picture
Ochret2i edit26 credits per picture
GPT Image 2.6 Flaret2i edit90 credits per picture
GPT Image 2.6 Sunburstt2i edit24 credits per picture
Qwen Image 2.1 Prot2i edit126 credits per picture
Bria FIBO 2.0t2i edit68 credits per picture
Qwen Image 2.1 Turbot2i edit24 credits per picture
FLUX 3 Klein Baset2i40 credits per picture
GPT Image 2.5 Sunburstt2i edit24 credits per picture
Nano Banana 2.1t2i edit58 credits per picture
Nano Banana 2 Litet2i edit57 credits per picture
Seedream 5.0 Litet2i edit59 credits per picture
Seedream 5.0 Flasht2i edit33 credits per picture
Seedream 4.5t2i edit68 credits per picture
FLUX 3 Imaget2i edit81 credits per picture
FLUX 3 Kleint2i edit11 credits per picture
FLUX.2 Prot2i edit51 credits per picture
FLUX.2 Maxt2i edit118 credits per picture
FLUX.2 Flext2i edit84 credits per picture
Qwen Image 3.0 Prot2i edit68 credits per picture
Ideogram 4.0t2i101 credits per picture
Ideogram 4.5t2i edit101 credits per picture
Recraft V4.1t2i59 credits per picture
Recraft V4.1 Prot2i353 credits per picture
Recraft V4.1 Flasht2i12 credits per picture
Grok Imagine Image 2.0t2i edit101 credits per picture
Muse Imaget2i edit17 credits per picture
Krea 2 Mediumt2i edit51 credits per picture
Krea 2 Larget2i edit101 credits per picture
Krea 3t2i edit42 credits per picture
MOSS Imaget2i84 credits per picture
Grok Imagine Prot2i edit84 credits per picture
Nano Banana Prot2i edit232 credits per picture
Nano Banana 2t2i edit116 credits per picture
Seedream 5.0 Prot2i edit81 credits per picture
GPT Image 2t2i edit90 credits per picture
GPT Image 2.5 Flaret2i edit90 credits per picture
Qwen Image 3.0t2i edit51 credits per picture
Wan 2.7 Imaget2i edit51 credits per picture
Kling V3 Imaget2i edit48 credits per picture
HunyuanImage 3.0 Instructt2i edit152 credits per picture
Grok Imaginet2i edit34 credits per picture
Cinnabart2i edit16 credits per picture
Krea 2 Turbot2i14 credits per picture
FLUX Kontext Proedit68 credits per picture
Aureolinedit34 credits per picture
Umberedit14 credits per picture
Seedream 5.0 Editedit81 credits per picture
Nano Banana Pro Editedit232 credits per picture

Your first request

Ask for the price. Asking never charges.

# 1. the price: asking never charges
curl https://pickshot.ai/api/v1/estimate \
  -H "Authorization: Bearer $PICKSHOT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"kind":"images","request":{"model":"indigo","prompt":"a red paper boat on a calm lake","mode":"t2i"}}'

# 2. the run, capped at the price you were quoted (a higher price is refused before anything is taken)
curl https://pickshot.ai/api/v1/images \
  -H "Authorization: Bearer $PICKSHOT_API_KEY" \
  -H "Idempotency-Key: my-run-0001" \
  -H "Content-Type: application/json" \
  -d '{"model":"indigo","prompt":"a red paper boat on a calm lake","mode":"t2i","max_credits":QUOTED_CREDITS}'

Hogyan működik

  1. Make an API key on the API page.
  2. Ask for the price of your exact request: POST /api/v1/estimate.
  3. Run it with max_credits set to that price and an Idempotency-Key header. A higher price is refused before anything is taken.
  4. A clip or sound returns a job id: ask GET /api/v1/jobs/{id} until it is done.

Try it in the Playground · Get an API key · OpenAPI description

Kérdések

Is there a free trial through the API?

No. Every generation through a key costs credits, including models that are free on the website. Reading prices and asking for a quote cost nothing.

What if a run fails?

What was not delivered is given back to your credits. The job or the reply says so.

Can I retry safely?

Yes. Send the same Idempotency-Key with the same request and you get the first result back instead of a second charge. Receipts are kept for 24 hours.