Lumaktaw sa nilalaman

Omni Zero

I-integrate

ID ng modelo 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"

Kahilingang ito: ≈$0.073 73 kredito ng API Patakbuhin ito sa page na ito

Kumuha ng API key
Open model Pag-edit ng Larawan #style-transfer

Pinagsasama ang magkakahiwalay na reference na larawan para sa komposisyon, estilo at pagkakakilanlan sa isang bagong larawan

Open model · Larawan

Dito mapupunta ang iyong unang resulta

Bumuo ng kahilingan sa ibaba at patakbuhin ito gamit ang iyong API key. Kinokopya ang mga output sa aming storage, na pinananatili nang walang hanggan o 7 araw nang libre.

Bumuo ng kahilingan

Ang mga control ay binubuo mula sa schema ng modelo. Nagbabago ang code at presyo habang ina-adjust mo ang mga ito.

•kinakailangan

Prompt na gumagabay sa pagbuo ng larawan.

•kinakailangan image_url
Mag-drop ng file, o

URL ng input na larawan.

•kinakailangan
Mag-drop ng file, o

URL para sa composition larawan.

•kinakailangan
Mag-drop ng file, o

URL ng style larawan.

•kinakailangan
Mag-drop ng file, o

URL ng identity larawan.

default na 1

Bilang ng larawang bubuuin.

advanced negative_prompt · image_strength · composition_strength · depth_strength · style_strength · face_strength · identity_strength · guidance_scale · seed · enable_safety_checker
default na

Negative prompt na gumagabay sa pagbuo ng larawan.

default na 0.75

Lakas ng impluwensya ng larawan.

default na 1

Lakas ng impluwensya ng composition.

default na 0.5

Lakas ng impluwensya ng depth.

default na 1

Lakas ng impluwensya ng style.

default na 1

Lakas ng impluwensya ng mukha.

default na 1

Lakas ng impluwensya ng identity.

default na 5

Scale na inilalapat sa guidance.

default na 42

Seed para sa random generator.

POST /run/omni-zero?wait=20 presyo → $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"

Patakbuhin ang kahilingang ito

Nananatili ang iyong key sa browser na ito: ipinapadala lamang ito sa Doitong API at sine-save (localStorage) lamang kung pipiliin mo ang Tandaan. Kumuha ng API key

Tungkol sa Omni Zero

Isang tagabuo ng mga larawang may natatanging estilo na nangangailangan ng `prompt` at apat na larawan: `image_url`, `composition_image_url`, `style_image_url` at `identity_image_url`. Binabalanse ng magkakahiwalay na halaga ng lakas (larawan, komposisyon, depth map, estilo, mukha at pagkakakilanlan) ang impluwensiya ng mga ito. Mayroon din itong `negative_prompt`, `guidance_scale`, `seed` at `number_of_images`.

Mga parameter

Ipadala ang canonical na pangalan o ang native na pangalan, hindi pareho. Mga canonical na pangalan

PangalanUri defaultPinapayagan Paglalarawan
promptkinakailangan
Uristring
Prompt na gumagabay sa pagbuo ng larawan.
negative_promptopsyonal
Uristring
default
Negative prompt na gumagabay sa pagbuo ng larawan.
image_urlkinakailangan image
Uriurl · image
URL ng input na larawan.
composition_image_urlkinakailangan
Uriurl · image
URL para sa composition larawan.
style_image_urlkinakailangan
Uriurl · image
URL ng style larawan.
identity_image_urlkinakailangan
Uriurl · image
URL ng identity larawan.
image_strengthopsyonal
Urinumber
default0.75
Lakas ng impluwensya ng larawan.
composition_strengthopsyonal
Urinumber
default1
Lakas ng impluwensya ng composition.
depth_strengthopsyonal
Urinumber
default0.5
Lakas ng impluwensya ng depth.
style_strengthopsyonal
Urinumber
default1
Lakas ng impluwensya ng style.
face_strengthopsyonal
Urinumber
default1
Lakas ng impluwensya ng mukha.
identity_strengthopsyonal
Urinumber
default1
Lakas ng impluwensya ng identity.
guidance_scaleopsyonal
Urinumber
default5
Scale na inilalapat sa guidance.
seedopsyonal
Uriinteger
default42
Seed para sa random generator.
number_of_imagesopsyonal
Uriinteger
default1
Bilang ng larawang bubuuin.
enable_safety_checkeropsyonal
Uriboolean
defaulttrue
Maaaring luwagan ang screening sa pamamagitan ng pagtatakda ng false, kung awtorisado ang tumatawag.
kinakailangan Canonical na pangalan, tinatanggap din

Tumatanggap ang mga parameter ng file ng pampublikong https:// URL, data: URI na hanggang 10 MB, o file_url ng isang upload. Mga file

Output

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"
  }
}
Ikaw ang pumipili para sa iyong mga fileAng bawat outputs[].url ay kopya sa aming storage: pinananatili nang walang hanggan (sinisingil bawat GB-month) o 7 araw nang libre, ayon sa setting ng iyong account o ?storage=.
Parehong shape sa bawat modelotype, url, content_type, width, height at duration, para sa mga larawan, video at audio. Ang output ay sariling result object ng modelo.
Mga field ng output
image
object {url, content_type, file_name, file_size, width, height}Larawang ginawa ng modelo.

Para sa mga AI agent: nasa Markdown ang pahinang ito sa https://doitong.com/fil/developers/models/omni-zero.md. Lahat ng modelo at gabay: https://doitong.com/developers/llms.txt