Njuolgga sisdollui

Meta Muse Image Edit

Integrere

Modealla-id meta/muse-image/edit
# 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/meta/muse-image/edit?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",
    "images": [
      "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"

Dát ohcamuš: 0,01 $ 10 API-kreditta Vuodje dán siiddu alde

Oza API-čoavdaga
Meta Gova heiveheapmi #realism#typography#stylized#editing

Instruksjonsbasert bilderedigering med opptil 10 referansebilder og egendefinerte sideforhold

Meta · Govva

Dát lea du vuosttaš bohtos

Daga jearaldaga vuolábealde ja vuodje dan iežat API-čoavddain. Boađusat kopierejuvvojit min vurkemii, bisuhuvvojit álo dahje 7 beaivvi nuvttá.

Ráhkat jearaldaga

Kontrollat ráhkaduvvojit modealla skeama vuođul. Koda ja haddi ođasmahttojuvvojit go rievddadat daid.

•gáibiduvvo

Teakstamearrádusat gova ráhkadeapmái dahje doaimmaheapmái.

•gáibiduvvo image_urls
Luoitte fiilla, dahje · gitta 10

Doaimmahanreferánsačoahkádus mas leat 1–10 gova, juohkehaš HTTP(S)-URL:n dahje data-URL:n.

Boađusgova oasselohku; jus guođe dan meroštakeahttá, Muse vállje dimenšuvnnaid automáhtalaččat. Muse geavaha gorriid iige bivdojuvvon pixel-dimenšuvnnaid, renderere sullii 2.5 megapiksel iežas čavga resolušuvnnain: sihke "1920:1200" ja "960:600" šaddaba 1920x1200 gova. Atte iešmeroštallojuvvon gorri gaskkas 1:16 ja 16:1 "width:height"-notášuvnnain, ovdamearkka dihte "16:9", "5:4" dahje "1920:1200"; dábálaš standárdat leat "21:9", "16:9", "4:3", "3:2", "1:1", "2:3", "3:4", "9:16", "9:21".

num_images standárda 1

Ráhkaduvvon redigerejuvvon govvagiid lohku.

Viiddiduvvon output_format
output_format standárda webp

Boahtteva govva fiilaformáhtta.

POST /run/meta/muse-image/edit?wait=20 haddemearrádus → 0,01 $
# 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/meta/muse-image/edit?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",
    "images": [
      "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"

Geavat dán ohcamuša

Du key báhcá dán fierpmádatlogan: dat sáddejuvvo dušše Doitong API:ii ja vurkejuvvo (localStorage) dušše jos válljet Remember. Viečča API-keya

Dát lea Meta Muse Image Edit birra

Redigerer bilder etter en tekst-`prompt`, med 1 til 10 referansebilder i `image_urls`. `aspect_ratio` godtar enhver bredde:høyde-verdi mellom 1:16 og 16:1, og `num_images` returnerer 1 til 10 resultater. `output_format` kan være jpeg, png eller webp (standard webp). Egner seg til å endre bestemte deler og samtidig beholde resten av bildet, eller kombinere flere referanser.

Parametterat

Sádde kanonala nama dahje iežas nama, ii goappašiid. Kanonala namat

NammaŠládja StandárdaDohkkehuvvon Govvádus
promptgáibiduvvo
Šládjastring
Teakstamearrádusat gova ráhkadeapmái dahje doaimmaheapmái.
image_urlsgáibiduvvo images
Šládjaurl[] · image
≤ 10 merki
Doaimmahanreferánsačoahkádus mas leat 1–10 gova, juohkehaš HTTP(S)-URL:n dahje data-URL:n.
aspect_ratioeaktodáhtolaš
Šládjastring | null
Boađusgova oasselohku; jus guođe dan meroštakeahttá, Muse vállje dimenšuvnnaid automáhtalaččat. Muse geavaha gorriid iige bivdojuvvon pixel-dimenšuvnnaid, renderere sullii 2.5 megapiksel iežas čavga resolušuvnnain: sihke "1920:1200" ja "960:600" šaddaba 1920x1200 gova. Atte iešmeroštallojuvvon gorri gaskkas 1:16 ja 16:1 "width:height"-notášuvnnain, ovdamearkka dihte "16:9", "5:4" dahje "1920:1200"; dábálaš standárdat leat "21:9", "16:9", "4:3", "3:2", "1:1", "2:3", "3:4", "9:16", "9:21".
num_imageseaktodáhtolaš num_outputs
Šládjainteger
Standárda1
1 – 10
Ráhkaduvvon redigerejuvvon govvagiid lohku.
output_formateaktodáhtolaš
Šládjaenum
Standárdawebp
jpegpngwebp
Boahtteva govva fiilaformáhtta.
gáibiduvvo Kanonala namma, maid sáhttá geavahit

Fiilaparametterat váldet almmolaš https:// URL:a, data: URI:a gitta 10 MB, dahje uploada file_url:a. Fiillat

Boađus

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "meta/muse-image/edit",
  "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": 10,
    "usd": "0.01",
    "charged": 10,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image_urls": [
      "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
      }
    ]
  },
  "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"
  }
}
Du fiillat, du válljenJuohke outputs[].url lea kopia min vurkemis: bisuhuvvo álo (mákso GB-mánu mielde) dahje 7 beaivvi nuvttá, du konto­o heiveheami dahje ?storage= mielde.
Seammá hápmi juohke modeallastype, url, content_type, width, height ja duration, govvii, videoii ja jienai seammá ládje. output lea modealla iežas boađusobjekta.
Outputa giettit
images
array of object {url, content_type, file_name, file_size, width, height}Ráhkaduvvon ráhkadeami dahje doaimmaheami govat.

Eanet modeallat: Gova heiveheapmi

AI-agenttaide: dán siidu Markdowna lea dáppe https://doitong.com/se/developers/models/meta/muse-image/edit.md. Buot modeallat ja ráđit: https://doitong.com/developers/llms.txt