Saltar al cuntegna

Emu 3.5 Image · Edit Image

Integrar

ID dal model emu-3.5-image/edit-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/emu-3.5-image/edit-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",
    "image": "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,30 300 credits API Lantschar sin questa pagina

Obtegna ina clav API
BAAI Modificaziun da maletgs fin a 720p

Modifitgescha in maletg d'entrada cun in prompt textual, cun output 480p u 720p e proporziun auto facultativa

BAAI · 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

Prompt che descriva las modificaziuns dal maletg.

•obligatori image_url
Trametta in datoteca u

Maletg furnì per l'ediziun.

resolution standard 720p

Resoluziun dal maletg resultà.

aspect_ratio standard auto

Relaziun d'aspect dal maletg resultà.

Avanzà output_format · seed · enable_safety_checker
output_format standard png

Format da datoteca dal maletg resultà.

Seed utilisà durant l'inferenza.

POST /run/emu-3.5-image/edit-image?wait=20 calculaziun → $0,30
# 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/emu-3.5-image/edit-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",
    "image": "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 Emu 3.5 Image · Edit Image

Retschaiva `image_url` ed in `prompt` da modificaziun e restituescha il maletg midà. `resolution` è 480p u 720p, e `aspect_ratio` po restar auto u vegnir fixà da 21:9 a 9:21. L'output po esser png, jpeg u webp, e `seed` po vegnir definì per exequiuns repetiblas.

Parameters

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

NumTip StandardPermess Descripziun
promptobligatori
Tipstring
Prompt che descriva las modificaziuns dal maletg.
resolutionopziunal
Tipenum
Standard720p
480p720p
Resoluziun dal maletg resultà.
aspect_ratioopziunal
Tipenum
Standardauto
auto21:916:94:33:21:12:33:49:169:21
Relaziun d'aspect dal maletg resultà.
enable_safety_checkeropziunal
Tipboolean
Standardtrue
Controllescha sche la verificaziun da segirezza è activada.
seedopziunal
Tipinteger | null
Seed utilisà durant l'inferenza.
output_formatopziunal
Tipenum
Standardpng
jpegpngwebp
Format da datoteca dal maletg resultà.
image_urlobligatori image
Tipurl · image
Maletg furnì per l'ediziun.
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": "emu-3.5-image/edit-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": 300,
    "usd": "0.30",
    "charged": 300,
    "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"
  },
  "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
  },
  "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}Maletg resultant da l'editaziun.
seed
integerSeed utilisà durant l'inferenza.

Dapli models: Modificaziun da maletgs

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