Dža ko lil

MOSS Image

Integriruj

Modelosko id moss-image
# 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/moss-image?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"
  }'

# 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.05 50 API krediti Phir les kate

Lel API klidin
Open model Teksto ko Kip

Tekstosar-kipo modelo vaš Chinese thaj English lil andro kipo, layout-aware promptosa thaj opcionalone expansionosa

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.

•trubul 88 / 16384

Kipesko keripaskoro prompto savo prihvatinel naturalno ćhib, tagurenge sekvence vaj JSON-layoutura.

image_size standardno square_hd

Rezultatoske dimenzije limitirime 512–2048 pixelenca vaš width thaj height, sako jekh rounded dži multiple e 16-eske.

num_images standardno 1

Ginu kipongoro savo te kerel.

Lučhe negative_prompt · output_format · num_inference_steps · guidance_scale · seed · enable_prompt_expansion · enable_safety_checker
0 / 16384

Negativno prompto labarimo vaš guidance; transformer-layer skipping del e negativno branch kana o prompto si khali.

output_format standardno jpeg

Formato e rezultato kiposko.

standardno 50

Ginu e denoising-krokengoro.

standardno 3

Zor e classifier-free guidance-ki.

Random semeno savo kerel e keripe te šaj pale kerel pes.

POST /run/moss-image?wait=20 hesab → $0.05
# 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/moss-image?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"
  }'

# 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 MOSS Image

Kerel kipo katar jekh `prompt` dži 16384 karakterura, ramosarde sar normalno čhib, tag-sekvencije vaj JSON-layoutura, kaj feder te thovel teksto thaj objekto. Prompto expansion anglarel jekh strukturirime layout thaj si standardno aktivno. E size aven katar šov presetura (square, portrait thaj landscape), zaokruglirime upral multiple katar 16 maškar 512 thaj 2048 pikselura. Šaj te mangel 1 dži 4 kipo le 1 dži 100 paso, thov `guidance_scale` katar 0 dži 10, `negative_prompt` thaj `seed`, thaj del JPEG, PNG vaj WebP.

Parametra

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

NavTip standardnoMuklo Vakeripe
prompttrubul
Tipstring
≤ 16,384 simbolura
Kipesko keripaskoro prompto savo prihvatinel naturalno ćhib, tagurenge sekvence vaj JSON-layoutura.
negative_promptopcionalno
Tipstring
standardno
≤ 16,384 simbolura
Negativno prompto labarimo vaš guidance; transformer-layer skipping del e negativno branch kana o prompto si khali.
enable_prompt_expansionopcionalno
Tipboolean
standardnotrue
Promptoski barǎripen savo ačhavel sako manglo dikhlǒvno teksto, planirindoj strukturalo layout vaš alosarde kipeske dimenzije anglal keripe. Originalo prompto ačhel labarime kana barǎripen na si dostupno.
image_sizeopcionalno
Tipobject
standardnosquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Rezultatoske dimenzije limitirime 512–2048 pixelenca vaš width thaj height, sako jekh rounded dži multiple e 16-eske.
num_inference_stepsopcionalno
Tipinteger
standardno50
1 – 100
Ginu e denoising-krokengoro.
guidance_scaleopcionalno
Tipnumber
standardno3
0 – 10
Zor e classifier-free guidance-ki.
seedopcionalno
Tipinteger | null
Random semeno savo kerel e keripe te šaj pale kerel pes.
num_imagesopcionalno num_outputs
Tipinteger
standardno1
1 – 4
Ginu kipongoro savo te kerel.
enable_safety_checkeropcionalno
Tipboolean
standardnotrue
Output-moderacijaki kontrola savo numa autorizirime accountura šaj te disable-nen; savorre aver mangipena kontrolirinena pes bi regardos kadala settingoske. Kalo kipo vrǎćol than sako kipesko savo flagirime si unsafe.
output_formatopcionalno
Tipenum
standardnojpeg
jpegpngwebp
Formato e rezultato kiposko.
trubul Kanonikano nav, vi akceptime

Rezultato

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "moss-image",
  "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": 50,
    "usd": "0.05",
    "charged": 50,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "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
      }
    ],
    "seed": 42,
    "has_nsfw_concepts": [
      false
    ],
    "actual_prompt": "string"
  },
  "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}Kipo kerdine generiripeça.
seed
integerSeed aplikirimo kana kerelpes e angluno kipo.
has_nsfw_concepts
array of booleanUnsafe-content indikator vaš sako kerdo kipo.
actual_prompt
string | nullBarǎrdo prompto aplikirimo andro keripe kana prompt-expansion šaj kerelpes.

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