Мазмұнға өту

Emu 3.5 Image · Edit Image

Интеграциялау

Модель идентификаторы 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"

Осы сұрау: 0,30 $ 300 API кредиті Осы бетте іске қосу

API кілтін алу
BAAI Кескінді өңдеу 720p дейін

Мәтіндік нұсқаудан кіріс кескінін өңдейді, шығысы 480p немесе 720p және auto кадр пішімі параметрімен беріледі

BAAI · Кескін

Алғашқы нәтижеңіз осында пайда болады

Төменде сұрау құрып, оны API кілтіңізбен іске қосыңыз. Шығыстар сақтау орнымызға көшіріліп, мәңгі немесе 7 күн тегін сақталады.

Сұрау жасау

Басқару элементтері модель схемасынан жасалады. Оларды өзгерткен сайын код пен баға жаңартылады.

•міндетті

Кескін өңдеулерін сипаттайтын нұсқау.

•міндетті image_url
Файлды тастаңыз немесе

Өңдеуге берілген кескін.

resolution әдепкі 720p

Нәтиже кескінінің ажыратымдылығы.

aspect_ratio әдепкі auto

Нәтиже кескінінің арақатынасы.

Қосымша output_format · seed · enable_safety_checker
output_format әдепкі png

Нәтиже кескінінің файл пішімі.

Инференс кезінде қолданылатын seed.

POST /run/emu-3.5-image/edit-image?wait=20 бағасы → 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"

Осы сұрауды іске қосу

Кілтіңіз осы браузерде қалады: ол тек Doitong API-ге жіберіледі және Remember параметрін белгілеcеңіз ғана localStorage ішінде сақталады. API кілтін алу

Emu 3.5 Image · Edit Image туралы

`image_url` және өңдеу `prompt` мәнін қабылдап, өзгертілген кескін қайтарады. `resolution` — 480p немесе 720p, ал `aspect_ratio` auto күйінде қалуы немесе 21:9–9:21 аралығында орнатылуы мүмкін. Шығыс png, jpeg немесе webp болады, ал қайталамалы іске қосулар үшін `seed` орнатуға болады.

Параметрлер

Канондық атауды немесе төл атауды жіберіңіз, екеуін қатар жібермеңіз. Канондық атаулар

АтауыТүрі ӘдепкіРұқсат етілген Сипаттама
promptміндетті
Түріstring
Кескін өңдеулерін сипаттайтын нұсқау.
resolutionміндетті емес
Түріenum
Әдепкі720p
480p720p
Нәтиже кескінінің ажыратымдылығы.
aspect_ratioміндетті емес
Түріenum
Әдепкіauto
auto21:916:94:33:21:12:33:49:169:21
Нәтиже кескінінің арақатынасы.
enable_safety_checkerміндетті емес
Түріboolean
Әдепкіtrue
Қауіпсіздікті тексерудің қосылған-қосылмағанын басқарады.
seedміндетті емес
Түріinteger | null
Инференс кезінде қолданылатын seed.
output_formatміндетті емес
Түріenum
Әдепкіpng
jpegpngwebp
Нәтиже кескінінің файл пішімі.
image_urlміндетті image
Түріurl · image
Өңдеуге берілген кескін.
міндетті Канондық атау, бұл да қабылданады

Файл параметрлері жалпыға қолжетімді https:// URL мекенжайын, 10 MB-қа дейінгі data: URI мекенжайын немесе жүктеп салынған файлдың file_url мәнін қабылдайды. Файлдар

Шығыс

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"
  }
}
Файлдарыңыз — таңдауыңызӘр outputs[].url — сақтау орнымыздағы көшірме: мәңгі (әр GB-ай үшін ақылы) немесе аккаунт параметрі не ?storage= арқылы 7 күн тегін сақталады.
Әр модельдегі пішім бірдейtype, url, content_type, width, height және duration — кескіндерге, бейнеге және аудиоға ортақ. output — модельдің өз нәтижелер нысаны.
Шығыс өрістері
images
array of object {url, content_type, file_name, file_size, width, height}Өңдеу нәтижесінде алынған кескін.
seed
integerИнференс кезінде қолданылатын seed.

Қосымша модельдер: Кескінді өңдеу

AI агенттеріне: бұл беттің Markdown нұсқасы мына жерде: https://doitong.com/kk/developers/models/emu-3.5-image/edit-image.md. Барлық модельдер мен нұсқаулықтар: https://doitong.com/developers/llms.txt