Dža ko lil

Phota

Integriruj

Modelosko id phota/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/phota/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"

Kava mangipen: $0.09 90 API krediti Phir les kate

Lel API klidin
Open model Editime e kipesko 4K rezultatodži 4K #edit#personalization#typography#phota

Identitetos ačhavindo fotografijengo editiribe andar 1 dži 10 inputaki fotografije, opcionalne trenirime profilenca

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 / 8000

Prompto vaš kipesko keripe savo šaj te inkludin profile reference-a sar [[profile_id_1]] thaj [[profile_id_2]] paš deskripcija so te kerel.

•trubul image_urls
Čhiv jekh fajl, vaj

Kipa vaš editiripe, delde sar URL-a vaj Base64 data URI-a; zapisura palal o 10-to ignoririnenpe. Del najman jekh kipo, vaj istifadin `/` endpoint vaš keripe numa tekstosa.

resolution standardno 1K

Rezolucija vaš o kerdo kipo.

aspect_ratio standardno auto

Ratio mashkar o width thaj height e rezultatoske kiposko.

num_images standardno 1

Ginu kipongoro savo te kerel.

Lučhe output_format · base_model · enable_safety_checker · profile_ids
output_format standardno jpeg

Fajlo-formato e rezultato kipoqo.

base_model standardno nb2

Kidipe e rendering modelosko, kaj `4K` si dostupno numa prekal `nb2`. Identity layers upral sako kidino bazno modelo, kerindoj sako izbor kompatibilno e trenirime profilenca.

Kidipe e profilengo vaš kipesko keripe, deldo sar lista e ID-enca; o prompto šaj te taguil kadala profila e @Profile1, @Profile2, thaj avka.

POST /run/phota/edit?wait=20 hesab → $0.09
# 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/phota/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"

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 Phota

Editirijel purane fotografije katar `prompt` dži 8000 karakterenge thaj `image_urls`, kaj trubul te avel najman jekh kipo; buter de 10 na lel. Čhiv `profile_ids` te ačharel specifikane manuša lačhe prepoznatelne. `base_model` šaj te avel nb2, qwen-image-2, flux-2 vaj seedream-5-pro, thaj 4K rezultato kerel feri nb2-osa. Vratzel 1 dži 4 kipo ande JPEG vaj PNG.

Parametra

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

NavTip standardnoMuklo Vakeripe
prompttrubul
Tipstring
≤ 8,000 simbolura
Prompto vaš kipesko keripe savo šaj te inkludin profile reference-a sar [[profile_id_1]] thaj [[profile_id_2]] paš deskripcija so te kerel.
num_imagesopcionalno num_outputs
Tipinteger
standardno1
1 – 4
Ginu kipongoro savo te kerel.
profile_idsopcionalno
Tipstring[]
Kidipe e profilengo vaš kipesko keripe, deldo sar lista e ID-enca; o prompto šaj te taguil kadala profila e @Profile1, @Profile2, thaj avka.
output_formatopcionalno
Tipenum
standardnojpeg
jpegpng
Fajlo-formato e rezultato kipoqo.
resolutionopcionalno
Tipenum
standardno1K
1K4K
Rezolucija vaš o kerdo kipo.
aspect_ratioopcionalno
Tipenum
standardnoauto
auto1:116:94:33:49:16
Ratio mashkar o width thaj height e rezultatoske kiposko.
base_modelopcionalno
Tipenum
standardnonb2
nb2qwen-image-2flux-2seedream-5-pro
Kidipe e rendering modelosko, kaj `4K` si dostupno numa prekal `nb2`. Identity layers upral sako kidino bazno modelo, kerindoj sako izbor kompatibilno e trenirime profilenca.
image_urlstrubul images
Tipurl[] · image
Kipa vaš editiripe, delde sar URL-a vaj Base64 data URI-a; zapisura palal o 10-to ignoririnenpe. Del najman jekh kipo, vaj istifadin `/` endpoint vaš keripe numa tekstosa.
enable_safety_checkeropcionalno
Tipboolean
standardnotrue
Screening šaj te avel relaksirime te postavil pes false, numa kana o manglo si autorizuime.
trubul Kanonikano nav, vi akceptime

Fajloske parametra lel jekh publikano https:// URL, jekh data: URI dži 10 MB, vaj e file_url uploadoski. Fajlura

Rezultato

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "phota/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": 90,
    "usd": "0.09",
    "charged": 90,
    "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"
  }
}
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}URL savo sikavel o editirimo kipo.

Bute modeli: Editime e kipesko

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