Saltar al cuntegna

Meta Muse Image Edit

Integrar

ID dal model 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"

Questa dumonda: $0,01 10 credits API Lantschar sin questa pagina

Obtegna ina clav API
Meta Modificaziun da maletgs #realism#typography#stylized#editing

Editaziun d’imagines basada sin instrucziuns cun fin a 10 imagines da referenza e proporziuns d’aspect persunalizadas

Meta · Maletg

Tes emprim resultat vegn qua

Construis ina dumonda sutvart e l'exequescha cun tia clav API. Outputs vegnan copiads en nossa memorisaziun, conservads per adina u 7 dis gratuitamain.

Construir ina dumonda

Ils controls vegnan generads dal schema dal model. Il code e ​​il pretsch s'actualiseschan durant che ti als midas.

•obligatori

Instrucziuns textualas per la generaziun u l'ediziun da maletgs.

•obligatori image_urls
Trametta in datoteca u · fin a 10

Set da referenza per l'ediziun cun 1–10 maletgs, mintgin inditgà tras in URL HTTP(S) u in URL da datas.

Format d'aspect da l'output; sch'el na vegn betg definì, Muse tscherna automaticamain las dimensiuns. Muse utilisescha las proporziuns empè da las dimensiuns da pixels dumandadas, e renda cun circa 2.5 megapixel en sia resoluziun fixa: tant "1920:1200" sco "960:600" produceschan in maletg 1920x1200. Furnir ina proporziun persunalisada tranter 1:16 e 16:1 en la notaziun "width:height", per exempel "16:9", "5:4" u "1920:1200"; presets usitads èn "21:9", "16:9", "4:3", "3:2", "1:1", "2:3", "3:4", "9:16", "9:21".

num_images standard 1

Dumber da maletgs edids da producir.

Avanzà output_format
output_format standard webp

Format da datoteca dal maletg final.

POST /run/meta/muse-image/edit?wait=20 calculaziun → $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"

Executar questa dumonda

Tia clav resta en quest browser: ella vegn tramessa mo al Doitong API e memorisada (localStorage) mo sch'ella scheccas Tiar a memoria. Obtegnair ina clav API

Davart Meta Muse Image Edit

Modifitgescha maletgs tenor in `prompt` da text, cun 1 fin 10 maletgs da referenza en `image_urls`. `aspect_ratio` accepta mintga valur width:height tranter 1:16 e 16:1, e `num_images` returnescha 1 fin 10 resultats. `output_format` po esser jpeg, png u webp (standard webp). Adattà per midar chaussas specificas e mantegnair il rest dal maletg, u per cumbinar pliras referenzas.

Parameters

Invia u il num canonic u il num nativ, betg omaduas. Nums canonics

NumTip StandardPermess Descripziun
promptobligatori
Tipstring
Instrucziuns textualas per la generaziun u l'ediziun da maletgs.
image_urlsobligatori images
Tipurl[] · image
≤ 10 elements
Set da referenza per l'ediziun cun 1–10 maletgs, mintgin inditgà tras in URL HTTP(S) u in URL da datas.
aspect_ratioopziunal
Tipstring | null
Format d'aspect da l'output; sch'el na vegn betg definì, Muse tscherna automaticamain las dimensiuns. Muse utilisescha las proporziuns empè da las dimensiuns da pixels dumandadas, e renda cun circa 2.5 megapixel en sia resoluziun fixa: tant "1920:1200" sco "960:600" produceschan in maletg 1920x1200. Furnir ina proporziun persunalisada tranter 1:16 e 16:1 en la notaziun "width:height", per exempel "16:9", "5:4" u "1920:1200"; presets usitads èn "21:9", "16:9", "4:3", "3:2", "1:1", "2:3", "3:4", "9:16", "9:21".
num_imagesopziunal num_outputs
Tipinteger
Standard1
1 – 10
Dumber da maletgs edids da producir.
output_formatopziunal
Tipenum
Standardwebp
jpegpngwebp
Format da datoteca dal maletg final.
obligatori Num canonic, er acceptà

Ils parameters da datotecas acceptan ina URL publica https://, ina URI data: fin a 10 MB u il file_url d'ina chargiada. Datotecas

Output

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"
  }
}
Tias datotecas, tia decisiunMintga outputs[].url è ina copia en nossa memorisaziun: conservada per adina (pajà per GB-mes) u 7 dis gratuitamain, tenor la configuraziun dal conto u ?storage=.
La medema structura per mintga modeltype, url, content_type, width, height e duration, tant per maletgs sco per video e audio. output è l'object da resultat dal model sez.
Champs da l'output
images
array of object {url, content_type, file_name, file_size, width, height}Maletgs producs tras generaziun u ediziun.

Dapli models: Modificaziun da maletgs

Per agents AI: questa pagina sco Markdown è disponibla sut https://doitong.com/rm/developers/models/meta/muse-image/edit.md. Tut ils models e las guidas: https://doitong.com/developers/llms.txt