Peke ki ngā ihirangi

Fooocus Upscale or Vary

Whakauru

id tauira fooocus/upscale-or-vary
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/fooocus/upscale-or-vary?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "uov_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

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

Tēnei tono: ≈$ 0.007 7 whiwhinga API · ≈ ₽ 0.75 Whakahaerehia ki tēnei whārangi

Tikina he kī API
Open model · Atahanga

Kei konei tō hua tuatahi

Hangaia he tono ki raro nei, ka whakahaere mā tō kī API. Ka tāruatia ngā putanga ki tō mātou rokiroki, ka puritia mō ake tonu atu, mō rānei 7 rā mō te kore utu.

Hangaia he tono

Ka hangaia ngā mana whakahaere mai i te aronuinga o te tauira. Ka whakahoungia te waehere me te utu ina whakarerekē koe.

taunoa

Whakaahuatia te atahanga e hiahia ana koe kia whakaputaina, kia nui rawa ngā taipitopito mō ngā putanga pai.

•e hiahiatia ana
Whakataka he kōnae,

Atahanga pūtake mō te whakanuinga, te rerekētanga rānei.

taunoa 1024x1024

Ngā rahinga o te atahanga putanga, ka kōwhiria mai i ngā tatūkē, ka tautuhia rānei hei whānui me te teitei ritenga. Me taea ngā rahinga ritenga e rua te whakawehe ki te 8.

num_images taunoa 1

Tau o ngā atahanga ka whakaputaina mō ia tono.

Arā atu negative_prompt · performance · output_format · uov_method · refiner_model · guidance_scale · sharpness · refiner_switch · seed · mixing_image_prompt_and_vary_upscale · enable_safety_checker · styles · loras · image_prompt_1 · image_prompt_2 · image_prompt_3 · image_prompt_4
taunoa

Tohutohu tōraro e tohu ana i ngā taipitopito atahanga hei aukati, tae atu ki ngā tae, ngā mea, te whenua, me ngā āhuatanga iti. Hei tauira ko te ngutu tāne, te pōuri, te taumira iti rānei.

performance taunoa Extreme Speed

Kōwhiringa mahi: Speed, Quality rānei.

output_format taunoa jpeg

Te hōputu kōnae mō te atahanga ka puta.

uov_method taunoa Vary (Strong)

Tikanga ka whakamahia mō te whakanuinga, te waihanga rerekētanga rānei.

taunoa None

Kōwhiringa refiner: SDXL, SD 1.5 rānei.

taunoa 4

Te kaha ū ki te tohutohu mō te kōwhiringa atahanga, kua whakaaturia hei CFG (Classifier Free Guidance).

taunoa 2

Tautuhinga koi mō te atahanga putanga. Mā te whakanui ka koi ake te atahanga me ōna kakano.

taunoa 0.8

Uara whakawhiti refiner: whakamahia te 0.4 me ngā tauira SD1.5 whai-tika, te 0.667 me ngā tauira anime SD1.5, ā, te 0.8 me ngā XL-refiners. Mā te whakawhiti i waenga i ngā tauira SDXL e rua ka whakaaetia ngā uara katoa.

Kākano hei tukurua i ngā atahanga i Stable Diffusion. Ka taea te whakaputa anō i tētahi atahanga kia tino ōrite i ia oma mā te pupuri i te putanga tauira, te tohutohu me te kākano kia kore e whakarerekē.

taunoa ["Fooocus Enhance","F...

Kāhua ka whakamahia i te whakaputanga.

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

Kōwhiringa LoRA kua hanumi mō te whakaputanga atahanga whakamutunga, ka herea ki te 5 LoRA.

POST /run/fooocus/upscale-or-vary?wait=20 utu → $ 0.007
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/fooocus/upscale-or-vary?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "uov_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

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

Whakahaerehia tēnei tono

Ka noho tō kī ki tēnei pūtirotiro: ka tukuna ki te Doitong API anake, ā, ka tiakina ki te localStorage anake ina tohua e koe te Mahara. Tikina he kī API

Mō Fooocus Upscale or Vary

Ka tango i tētahi whakaahua pūtake hei `uov_image_url`, ā, ka whakamahi i `uov_method`: Vary (Subtle), Vary (Strong), Upscale (1.5x), Upscale (2x), Upscale (Fast 2x) rānei. Ko te taunoa ko Vary (Strong). Mā `prompt`, ngā kāhua, ngā LoRA me ngā kupu akiaki whakaahua kōwhiri e ārahi te hua, ā, ka whakahokia atu te 1 ki te 4 whakaahua.

Ngā tawhā

Tukuna te ingoa tōmua, te ingoa taketake rānei, kaua e rua. Ngā ingoa tōmua

IngoaMomo TaunoaE whakaaetia ana Whakamārama
promptkōwhiringa
Momostring
Taunoa
Whakaahuatia te atahanga e hiahia ana koe kia whakaputaina, kia nui rawa ngā taipitopito mō ngā putanga pai.
negative_promptkōwhiringa
Momostring
Taunoa
Tohutohu tōraro e tohu ana i ngā taipitopito atahanga hei aukati, tae atu ki ngā tae, ngā mea, te whenua, me ngā āhuatanga iti. Hei tauira ko te ngutu tāne, te pōuri, te taumira iti rānei.
styleskōwhiringa
Momoenum[]
Taunoa["Fooocus Enhance","Fooocus Sharp","Fooocus V2"]
Kāhua ka whakamahia i te whakaputanga.
performancekōwhiringa
Momoenum
TaunoaExtreme Speed
SpeedQualityExtreme SpeedLightning
Kōwhiringa mahi: Speed, Quality rānei.
guidance_scalekōwhiringa
Momonumber
Taunoa4
1 – 30
Te kaha ū ki te tohutohu mō te kōwhiringa atahanga, kua whakaaturia hei CFG (Classifier Free Guidance).
sharpnesskōwhiringa
Momonumber
Taunoa2
0 – 30
Tautuhinga koi mō te atahanga putanga. Mā te whakanui ka koi ake te atahanga me ōna kakano.
aspect_ratiokōwhiringa
Momostring
Taunoa1024x1024
Ngā rahinga o te atahanga putanga, ka kōwhiria mai i ngā tatūkē, ka tautuhia rānei hei whānui me te teitei ritenga. Me taea ngā rahinga ritenga e rua te whakawehe ki te 8.
num_imageskōwhiringa num_outputs
Momointeger
Taunoa1
1 – 4
Tau o ngā atahanga ka whakaputaina mō ia tono.
loraskōwhiringa
Momoobject[]
Taunoa[{"path":"https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_offset_example-lora_1.0.safetensors","scale":0.1}]
Kōwhiringa LoRA kua hanumi mō te whakaputanga atahanga whakamutunga, ka herea ki te 5 LoRA.
loras[].pathe hiahiatia ana
Momostring
Wāhi o ngā taumaha LoRA, ka tauwhāitihia hei URL, hei ara rānei.
loras[].scalekōwhiringa
Momonumber
Taunoa0.1
0 – 1
Kaitauine whakarea ka whakamahia ki te taumaha LoRA i mua i te hanumi ki te tauira pūtake.
refiner_modelkōwhiringa
Momoenum
TaunoaNone
NonerealisticVisionV60B1_v51VAE.safetensors
Kōwhiringa refiner: SDXL, SD 1.5 rānei.
refiner_switchkōwhiringa
Momonumber
Taunoa0.8
0 – 1
Uara whakawhiti refiner: whakamahia te 0.4 me ngā tauira SD1.5 whai-tika, te 0.667 me ngā tauira anime SD1.5, ā, te 0.8 me ngā XL-refiners. Mā te whakawhiti i waenga i ngā tauira SDXL e rua ka whakaaetia ngā uara katoa.
output_formatkōwhiringa
Momoenum
Taunoajpeg
pngjpegwebp
Te hōputu kōnae mō te atahanga ka puta.
seedkōwhiringa
Momointeger | null
Kākano hei tukurua i ngā atahanga i Stable Diffusion. Ka taea te whakaputa anō i tētahi atahanga kia tino ōrite i ia oma mā te pupuri i te putanga tauira, te tohutohu me te kākano kia kore e whakarerekē.
uov_image_urle hiahiatia ana
Momourl · image
Atahanga pūtake mō te whakanuinga, te rerekētanga rānei.
uov_methodkōwhiringa
Momoenum
TaunoaVary (Strong)
DisabledVary (Subtle)Vary (Strong)Upscale (1.5x)Upscale (2x)Upscale (Fast 2x)
Tikanga ka whakamahia mō te whakanuinga, te waihanga rerekētanga rānei.
image_prompt_1kōwhiringa
Momoobject
image_prompt_1.typekōwhiringa
Momoenum
TaunoaImagePrompt
ImagePromptPyraCannyCPDSFaceSwap
image_prompt_1.image_urlkōwhiringa
Momourl · image
image_prompt_1.stop_atkōwhiringa
Momonumber
Taunoa0.5
0 – 1
image_prompt_1.weightkōwhiringa
Momonumber
Taunoa1
0 – 2
image_prompt_2kōwhiringa
Momoobject
image_prompt_2.typekōwhiringa
Momoenum
TaunoaImagePrompt
ImagePromptPyraCannyCPDSFaceSwap
image_prompt_2.image_urlkōwhiringa
Momourl · image
image_prompt_2.stop_atkōwhiringa
Momonumber
Taunoa0.5
0 – 1
image_prompt_2.weightkōwhiringa
Momonumber
Taunoa1
0 – 2
image_prompt_3kōwhiringa
Momoobject
image_prompt_3.typekōwhiringa
Momoenum
TaunoaImagePrompt
ImagePromptPyraCannyCPDSFaceSwap
image_prompt_3.image_urlkōwhiringa
Momourl · image
image_prompt_3.stop_atkōwhiringa
Momonumber
Taunoa0.5
0 – 1
image_prompt_3.weightkōwhiringa
Momonumber
Taunoa1
0 – 2
image_prompt_4kōwhiringa
Momoobject
image_prompt_4.typekōwhiringa
Momoenum
TaunoaImagePrompt
ImagePromptPyraCannyCPDSFaceSwap
image_prompt_4.image_urlkōwhiringa
Momourl · image
image_prompt_4.stop_atkōwhiringa
Momonumber
Taunoa0.5
0 – 1
image_prompt_4.weightkōwhiringa
Momonumber
Taunoa1
0 – 2
mixing_image_prompt_and_vary_upscalekōwhiringa
Momoboolean
Taunoafalse
Ka whakakotahi i te Image Prompt me te Vary/Upscale.
enable_safety_checkerkōwhiringa
Momoboolean
Taunoatrue
Whakakā/whakaweto kaiwhakamātau haumaru; mā te tautuhi ki false ka whakawetohia te tirotiro.
e hiahiatia ana Ingoa tōmua, e whakaaetia ana hoki

Mō ngā tawhā kōnae, whakamahia he URL tūmatanui https://, he URI data: tae atu ki te 10 MB, he file_url rānei o tētahi tukuake. Ngā kōnae

Putanga

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "fooocus/upscale-or-vary",
  "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": 7,
    "usd": "0.007",
    "charged": 7,
    "refunded": 0
  },
  "input": {
    "uov_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Ō kōnae, māu e whiriwhiriKo ia url o outputs[] he tārua kei tō mātou rokiroki: ka puritia mō ake tonu atu (ka utua ia GB-marama) mō rānei 7 rā mō te kore utu, e ai ki ngā tautuhinga o tō pūkete, ki te ?storage= rānei.
He ōrite te hanga ki ia tauiratype, url, content_type, width, height me duration, mō ngā pikitia, ataata me te oro. Ko output te ahanoa hua ake o te tauira.
Ngā āpure o te putanga
images
array of object {url, content_type, file_name, file_size, width, height}Pārongo kōnae mō te atahanga kua whakaputaina.
timings
objectTe wā kua hipa mō te whakaputanga.
has_nsfw_concepts
array of booleanKa tohu mēnā ka puta ngā ariā NSFW i ngā atahanga kua whakaputaina.

Ētahi atu tauira: Whakakaha Kounga

Mō ngā āpiha AI: kei te wātea tēnei whārangi hei Markdown ki https://doitong.com/mi/developers/models/fooocus/upscale-or-vary.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt