Dža ko lil

Fooocus

Integriruj

Modelosko id fooocus
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/fooocus?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": ""
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Kava mangipen: ≈$0.444 444 API krediti Phir les kate

Lel API klidin
Open model Teksto ko Kip #stylized

Tekst-tar-ćitro generator stiloskere presetenca, LoRA-milavipena, refiner opcijasa thaj ćitrenge kontrola-modenca

Open model · Kip

Tiro prvo rezultato si kate

Ker tele jekh mangipen thaj phir les tire API klidinosa. E rezultatur si kopirime amare arakhipneste, vično vaj 7 dives bilačhes.

Ker jekh mangipen

O kontrolura kerde si katar e schemaske. O kodo thaj e cena menjinen sar tu len menjines.

Phen o kipo savo kames te kerel pes, use but detail sar šaj te avel maj lačho rezultato.

standardno 1024x1024

Rezultatoske kiposke dimenzie, kidne andar presetura vaj phandle sar custom width thaj height. Dijal custom dimenzie musaj te aven delitelna le 8-sa.

num_images standardno 1

Kipengo gin savo kerel pes vaš jekh mangipen.

Lučhe negative_prompt · control_image_url · inpaint_image_url · mask_image_url · performance · output_format · control_type · refiner_model · guidance_scale · sharpness · refiner_switch · control_image_weight · control_image_stop_at · seed · mixing_image_prompt_and_inpaint · enable_safety_checker · styles · loras
standardno

Negativno prompto savo sikavel save detalura e kiposqe te na aven andre, sar farbe, objektura, pejsažo vaj maj cikne osobine. Primerura si mustaka, mutipe vaj tikni rezolucija.

Čhiv jekh fajl, vaj

Referencako kipo savo džal angleder o kiposko keripe.

Čhiv jekh fajl, vaj

Referencako kipo savo pes labarel andre inpainting.

Čhiv jekh fajl, vaj

Maskosko kipo savo pes thovkerel andre kiposko keripe.

performance standardno Extreme Speed

Performancako izboro: Speed vaj Quality.

output_format standardno jpeg

Fajlo-formato e rezultato kipoqo.

control_type standardno PyraCanny

Kiposko kontrolosko metodo.

standardno None

Refinerosko izboro: SDXL vaj SD 1.5.

standardno 4

Zor e promptoske pačajipaski vaś izbor e kiposko, sikavdi sar CFG (Classifier Free Guidance).

standardno 2

Šarpnesko nastavenie vaš o rezultatosko kipo. Te vazdel les, o kipo thaj leske teksturi aven šarpeder.

standardno 0.8

Refinerosko switch value: thov 0.4 realistickone SD1.5 modelonca, 0.667 anime SD1.5 modelonca, thaj 0.8 XL-refineronca. Maškar duj SDXL modelo šaj te thovkeres savoro value.

standardno 1

Kontroloske kiposki zor, savo phenel keci sar o rezultatosko kipo sikhavel pes sar o kontrolosko kipo.

standardno 1

Kontroloske kiposko stopping value, savo phenel keci pashe te avel o rezultato le kontroloske kiposa.

Seed vaš reprodukcia e kipengo ande Stable Diffusion. O kipo šaj te reprodukčarel pes ekzaktno pe sa keripena te mukhes isto o modelesko version, prompto thaj seed.

standardno ["Fooocus Enhance","F...

Stilo, savo thovkerel pes andre keripe.

standardno [{"path":"https://hug...

LoRA izboro savo pes merge-in vaš o finalno kiposko keripe, limitosar 5 LoRA.

POST /run/fooocus?wait=20 hesab → $0.444
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/fooocus?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": ""
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Phandel kava mangipen

Tiro kluč ačhel kadale browsereste: bičhalel pes numa ko Doitong API thaj šuvav pes (localStorage) numa te tiknes Remember. Le jekh API ključ

Palal Fooocus

Kerel kipa andar prompto gamit Fooocus thaj lesko standardno stiloskopo. Alos `performance` modo (Speed, Quality, Extreme Speed, Lightning), thaj thav `sharpness` thaj `aspect_ratio`; mang 1 dži 4 kipa. Dži 5 LoRA šaj aven phandle, thaj opcionalno kontrolosko kipo del ImagePrompt, PyraCanny, CPDS vaj FaceSwap lidžaripe. O rezultato si png, jpeg vaj webp.

Parametra

Bičhalav vaj e kanonikano nav vaj e native nav, na duj. Kanonikane nava

NavTip standardnoMuklo Vakeripe
promptopcionalno
Tipstring
standardno
Phen o kipo savo kames te kerel pes, use but detail sar šaj te avel maj lačho rezultato.
negative_promptopcionalno
Tipstring
standardno
Negativno prompto savo sikavel save detalura e kiposqe te na aven andre, sar farbe, objektura, pejsažo vaj maj cikne osobine. Primerura si mustaka, mutipe vaj tikni rezolucija.
stylesopcionalno
Tipenum[]
standardno["Fooocus Enhance","Fooocus Sharp","Fooocus V2"]
Stilo, savo thovkerel pes andre keripe.
performanceopcionalno
Tipenum
standardnoExtreme Speed
SpeedQualityExtreme SpeedLightning
Performancako izboro: Speed vaj Quality.
guidance_scaleopcionalno
Tipnumber
standardno4
1 – 30
Zor e promptoske pačajipaski vaś izbor e kiposko, sikavdi sar CFG (Classifier Free Guidance).
sharpnessopcionalno
Tipnumber
standardno2
0 – 30
Šarpnesko nastavenie vaš o rezultatosko kipo. Te vazdel les, o kipo thaj leske teksturi aven šarpeder.
aspect_ratioopcionalno
Tipstring
standardno1024x1024
Rezultatoske kiposke dimenzie, kidne andar presetura vaj phandle sar custom width thaj height. Dijal custom dimenzie musaj te aven delitelna le 8-sa.
num_imagesopcionalno num_outputs
Tipinteger
standardno1
1 – 4
Kipengo gin savo kerel pes vaš jekh mangipen.
lorasopcionalno
Tipobject[]
standardno[{"path":"https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_offset_example-lora_1.0.safetensors","scale":0.1}]
LoRA izboro savo pes merge-in vaš o finalno kiposko keripe, limitosar 5 LoRA.
loras[].pathtrubul
Tipstring
Lokacia e LoRA vazipnaski, specifikime sar URL vaj drom.
loras[].scaleopcionalno
Tipnumber
standardno0.1
0 – 1
Multiplikator dino e LoRA vazipnaske anglal mergipen ande o bazno modelo.
refiner_modelopcionalno
Tipenum
standardnoNone
NonerealisticVisionV60B1_v51VAE.safetensors
Refinerosko izboro: SDXL vaj SD 1.5.
refiner_switchopcionalno
Tipnumber
standardno0.8
0 – 1
Refinerosko switch value: thov 0.4 realistickone SD1.5 modelonca, 0.667 anime SD1.5 modelonca, thaj 0.8 XL-refineronca. Maškar duj SDXL modelo šaj te thovkeres savoro value.
output_formatopcionalno
Tipenum
standardnojpeg
pngjpegwebp
Fajlo-formato e rezultato kipoqo.
seedopcionalno
Tipinteger | null
Seed vaš reprodukcia e kipengo ande Stable Diffusion. O kipo šaj te reprodukčarel pes ekzaktno pe sa keripena te mukhes isto o modelesko version, prompto thaj seed.
control_image_urlopcionalno
Tipurl · image
Referencako kipo savo džal angleder o kiposko keripe.
control_typeopcionalno
Tipenum
standardnoPyraCanny
ImagePromptPyraCannyCPDSFaceSwap
Kiposko kontrolosko metodo.
control_image_weightopcionalno
Tipnumber
standardno1
0 – 2
Kontroloske kiposki zor, savo phenel keci sar o rezultatosko kipo sikhavel pes sar o kontrolosko kipo.
control_image_stop_atopcionalno
Tipnumber
standardno1
0 – 1
Kontroloske kiposko stopping value, savo phenel keci pashe te avel o rezultato le kontroloske kiposa.
inpaint_image_urlopcionalno
Tipurl · image
Referencako kipo savo pes labarel andre inpainting.
mask_image_urlopcionalno
Tipurl · image
Maskosko kipo savo pes thovkerel andre kiposko keripe.
mixing_image_prompt_and_inpaintopcionalno
Tipboolean
standardnofalse
enable_safety_checkeropcionalno
Tipboolean
standardnotrue
Safety checker toggle: false našti kerel kontrola numa kana si autorizacia pe konto. Mangipena bi autorizaciasa mindig pes kontrolinen, thaj nasvale kipa paruvden pes kale kipesa.
trubul Kanonikano nav, vi akceptime

Fajloske parametra lel jekh publikano https:// URL, jekh data: URI dži 10 MB, vaj e file_url uploadoski. Fajlura

Rezultato

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "fooocus",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 444,
    "usd": "0.444",
    "charged": 444,
    "refunded": 0
  },
  "input": {
    "prompt": ""
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200,
        "width": 1024,
        "height": 768
      }
    ],
    "timings": {},
    "has_nsfw_concepts": [
      false
    ]
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Tire fajlura, tiro alosaripenSako outputs[].url si kopija amare arakhipneste: vično (čargeime per GB-mase) vaj 7 dives bilačhes, tiro kontoskere regulaciatar vaj ?storage=.
Sa jekh forma sako modeloθartype, url, content_type, width, height thaj duration, varesave imajinake, video thaj audio-ke. output si o modelosko korkoro resultosko objekto.
Outputoske fieldura
images
array of object {url, content_type, file_name, file_size, width, height}Informacia e fajloski vaš o kerdo kipo.
timings
objectNakhlili vrjama vaš keripe.
has_nsfw_concepts
array of booleanSikavel te si NSFW koncepto ande generirime kipo.

Bute modeli: Teksto ko Kip

AI agentenge: kadija rig sar Markdown si kate https://doitong.com/rom/developers/models/fooocus.md. Sa e modelura thaj e gidura: https://doitong.com/developers/llms.txt