Léim chuig an ábhar

Omni Zero

Comhtháthú

Aitheantas na samhla omni-zero
# 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/omni-zero?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "composition_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "style_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "identity_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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

An t-iarratas seo: ≈$0.073 73 gcreidmheas API Rith ar an leathanach seo

Faigh eochair API
Open model Eagarthóireacht Íomhá #style-transfer

Comhcheanglaíonn sé íomhánna tagartha ar leith don chumadóireacht, don stíl agus don aitheantas in aon íomhá nua amháin

Open model · Íomhá

Beidh do chéad toradh anseo

Tóg iarratas thíos agus rith é le d’eochair API. Cóipeáiltear na haschuir chuig ár stóráil, coinnithe go deo nó ar feadh 7 lá saor in aisce.

Tóg iarratas

Gintear na rialtáin ó scéim na samhla. Nuashonraítear an cód agus an praghas de réir mar a athraíonn tú iad.

•riachtanach

Leid a threoraíonn giniúint íomhá.

•riachtanach image_url
Scaoil comhad, nó

URL na híomhá ionchuir.

•riachtanach
Scaoil comhad, nó

URL don íomhá chumadóireachta.

•riachtanach
Scaoil comhad, nó

URL na híomhá stíle.

•riachtanach
Scaoil comhad, nó

URL na híomhá aitheantais.

réamhshocrú 1

Líon na n-íomhánna le giniúint.

Ardleibhéal negative_prompt · image_strength · composition_strength · depth_strength · style_strength · face_strength · identity_strength · guidance_scale · seed · enable_safety_checker
réamhshocrú

Leid dhiúltach a threoraíonn giniúint íomhá.

réamhshocrú 0.75

Neart thionchar na híomhá.

réamhshocrú 1

Neart thionchar na cumadóireachta.

réamhshocrú 0.5

Neart thionchar na doimhneachta.

réamhshocrú 1

Neart thionchar na stíle.

réamhshocrú 1

Neart thionchar na haghaidhe.

réamhshocrú 1

Neart thionchar na haitheantais.

réamhshocrú 5

Scála a chuirtear i bhfeidhm ar an treoir.

réamhshocrú 42

Síl don ghineadóir randamach.

POST /run/omni-zero?wait=20 luachan → $0.073
# 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/omni-zero?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "composition_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "style_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "identity_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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Rith an t-iarratas seo

Fanann d'eochair sa bhrabhsálaí seo: seoltar chuig Doitong API amháin í agus sábháiltear (localStorage) í ach amháin má chuireann tú tic le Meabhraigh. Faigh eochair API

Maidir le Omni Zero

Gineadóir íomhánna stílithe a dteastaíonn `prompt` agus ceithre íomhá uaidh: `image_url`, `composition_image_url`, `style_image_url` agus `identity_image_url`. Cothromaíonn luachanna neart ar leith (íomhá, cumadóireacht, doimhneacht, stíl, aghaidh agus aitheantas) a dtionchar. Cuireann sé `negative_prompt`, `guidance_scale`, `seed` agus `number_of_images` ar fáil freisin.

Paraiméadair

Seol an t-ainm canónach nó an t-ainm dúchasach, ní an dá cheann. Ainmneacha canónacha

AinmCineál RéamhshocrúCeadaithe Cur síos
promptriachtanach
Cineálstring
Leid a threoraíonn giniúint íomhá.
negative_promptroghnach
Cineálstring
Réamhshocrú
Leid dhiúltach a threoraíonn giniúint íomhá.
image_urlriachtanach image
Cineálurl · image
URL na híomhá ionchuir.
composition_image_urlriachtanach
Cineálurl · image
URL don íomhá chumadóireachta.
style_image_urlriachtanach
Cineálurl · image
URL na híomhá stíle.
identity_image_urlriachtanach
Cineálurl · image
URL na híomhá aitheantais.
image_strengthroghnach
Cineálnumber
Réamhshocrú0.75
Neart thionchar na híomhá.
composition_strengthroghnach
Cineálnumber
Réamhshocrú1
Neart thionchar na cumadóireachta.
depth_strengthroghnach
Cineálnumber
Réamhshocrú0.5
Neart thionchar na doimhneachta.
style_strengthroghnach
Cineálnumber
Réamhshocrú1
Neart thionchar na stíle.
face_strengthroghnach
Cineálnumber
Réamhshocrú1
Neart thionchar na haghaidhe.
identity_strengthroghnach
Cineálnumber
Réamhshocrú1
Neart thionchar na haitheantais.
guidance_scaleroghnach
Cineálnumber
Réamhshocrú5
Scála a chuirtear i bhfeidhm ar an treoir.
seedroghnach
Cineálinteger
Réamhshocrú42
Síl don ghineadóir randamach.
number_of_imagesroghnach
Cineálinteger
Réamhshocrú1
Líon na n-íomhánna le giniúint.
enable_safety_checkerroghnach
Cineálboolean
Réamhshocrútrue
Is féidir an scagadh a mhaolú trí false a shocrú, ar choinníoll go bhfuil údarú ag an nglaoiteoir.
riachtanach Ainm canónach, glactar leis freisin

Glacann paraiméadair chomhaid le URL poiblí https://, URI data: suas le 10 MB, nó file_url uaslódála. Comhaid

Aschur

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "omni-zero",
  "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": 73,
    "usd": "0.073",
    "charged": 73,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "composition_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "style_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "identity_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "image": {
      "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
    }
  },
  "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"
  }
}
Do chuid comhad, do roghaIs cóip ar ár stóráil é gach outputs[].url: coinnithe go deo (íoctha in aghaidh GB-mhí) nó ar feadh 7 lá saor in aisce, de réir shocrú do chuntais nó ?storage=.
An cruth céanna ar gach samhailtype, url, content_type, width, height agus duration, d'íomhánna, d'fhíseáin agus d'fhuaim araon. Is é output réad toraidh na samhla féin.
Réimsí aschuir
image
object {url, content_type, file_name, file_size, width, height}An íomhá a tháirg an tsamhail.

Do ghníomhairí AI: tá an leathanach seo mar Markdown ag https://doitong.com/ga/developers/models/omni-zero.md. Gach samhail agus treoir: https://doitong.com/developers/llms.txt