LarawanBlack Forest LabsBago

FLUX Kontext Pro

I-edit ang larawan gamit ang text instructions

model: "flux-kontext-pro"

Mga paraan

Isang model id, bawat mode sa ibaba. Ang mga field na ipinapadala mo ay pumipili ng mode, at ang presyo ay sumusunod sa mode.

ParaanPinipili ngTipikal na presyo
Pagbabago ng larawanimage_url
Halimbawang kahilingan
{
  "model": "flux-kontext-pro",
  "input": {
    "prompt": "a lighthouse at dusk",
    "image_url": "https://example.com/image.jpg"
  }
}
$0.040
Kontrola ng istrakturamodecontrol_image_url
Halimbawang kahilingan
{
  "model": "flux-kontext-pro",
  "input": {
    "prompt": "a lighthouse at dusk",
    "image_url": "https://example.com/image.jpg",
    "mode": "structure",
    "control_image_url": "https://example.com/image.jpg"
  }
}
$0.050

Input

Kinakailangan

Prompt

Kinakailangan

Image to edit. A public https URL, or an upload URL from POST /v1/uploads.

Opsyonal
1

Count

Opsyonal

Control image (https URL), with mode "structure".

Opsyonal

Selects a mode that the other fields cannot: "structure" follows the edges or depth of a control image.

Opsyonal

Follow the control image's edges (canny) or its depth.

Mga advanced na opsyon (4)

Mga setting ng provider na higit pa sa pangunahing kontrol. Iwanan silang walang laman upang gamitin ang mga default ng modelo.

Opsyonal

Let the model rewrite the prompt for better results.

Opsyonal
-

How strictly the model follows the prompt. Higher is more literal.

Opsyonal

File format of the result.

Opsyonal

Random seed. The same seed and input reproduce the same result.

Resulta

FLUX Kontext ProHalimbawang output

Tunay na resulta mula sa modelong ito. Patakbuhin mo ito upang makita ang sa iyo dito.

curl https://arteza.ai/api/v1/generations \
  -H "Authorization: Bearer $ARTEZA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "flux-kontext-pro",
  "input": {
    "prompt": "man with the bycycle"
  }
}'
FLUX Kontext Pro 1FLUX Kontext Pro 2FLUX Kontext Pro 3FLUX Kontext Pro 4FLUX Kontext Pro 5FLUX Kontext Pro 6