Naar inhoud springen

Post Processing Chromatic Aberration

Integreren

Model-ID post-processing/chromatic-aberration
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/post-processing/chromatic-aberration?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Deze request: $ 0,001 1 API-tegoed · ≈ ₽ 0,11 Op deze pagina uitvoeren

API-sleutel ophalen
Utility · Afbeelding

Je eerste resultaat komt hier

Bouw hieronder een request en voer die uit met je API-sleutel. Uitvoer wordt naar onze opslag gekopieerd en voor altijd of 7 dagen gratis bewaard.

Een aanvraag samenstellen

Besturingselementen worden gegenereerd op basis van het modelschema. De code en de prijs worden bijgewerkt terwijl je ze wijzigt.

•verplicht image_url
Sleep een bestand hierheen of

Afbeeldings-URL voor verwerking.

Geavanceerd red_direction · green_direction · blue_direction · red_shift · green_shift · blue_shift
red_direction standaard horizontal

Richting van verschuiving voor het rode kanaal.

green_direction standaard horizontal

Richting van verschuiving voor het groene kanaal.

blue_direction standaard horizontal

Richting van verschuiving voor het blauwe kanaal.

standaard 0

Hoeveelheid verschuiving voor het rode kanaal.

standaard 0

Hoeveelheid verschuiving voor het groene kanaal.

standaard 0

Hoeveelheid verschuiving voor het blauwe kanaal.

POST /run/post-processing/chromatic-aberration?wait=20 prijsopgave → $ 0,001
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/post-processing/chromatic-aberration?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Deze request uitvoeren

Je sleutel blijft in deze browser: hij wordt alleen naar de Doitong API verzonden en alleen in localStorage opgeslagen als je Onthouden aanvinkt. API-sleutel ophalen

Over Post Processing Chromatic Aberration

Neemt een `image_url` en verschuift elk kleurkanaal afzonderlijk. `red_shift`, `green_shift` en `blue_shift` accepteren gehele getallen van -20 tot 20; elk kanaal heeft een richting horizontal of vertical. Alle verschuivingen zijn standaard 0, dus alleen ingestelde kanalen worden verplaatst.

Parameters

Stuur de canonieke naam of de oorspronkelijke naam, niet beide. Canonieke namen

NaamType StandaardToegestaan Beschrijving
image_urlverplicht image
Typeurl · image
Afbeeldings-URL voor verwerking.
red_shiftoptioneel
Typeinteger
Standaard0
-20 – 20
Hoeveelheid verschuiving voor het rode kanaal.
red_directionoptioneel
Typeenum
Standaardhorizontal
horizontalvertical
Richting van verschuiving voor het rode kanaal.
green_shiftoptioneel
Typeinteger
Standaard0
-20 – 20
Hoeveelheid verschuiving voor het groene kanaal.
green_directionoptioneel
Typeenum
Standaardhorizontal
horizontalvertical
Richting van verschuiving voor het groene kanaal.
blue_shiftoptioneel
Typeinteger
Standaard0
-20 – 20
Hoeveelheid verschuiving voor het blauwe kanaal.
blue_directionoptioneel
Typeenum
Standaardhorizontal
horizontalvertical
Richting van verschuiving voor het blauwe kanaal.
verplicht Canonieke naam, ook geaccepteerd

Bestandsparameters accepteren een openbare https:// URL, een data: URI tot 10 MB of de file_url van een upload. Bestanden

Uitvoer

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "post-processing/chromatic-aberration",
  "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": 1,
    "usd": "0.001",
    "charged": 1,
    "refunded": 0
  },
  "input": {
    "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
      }
    ]
  },
  "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Jouw bestanden, jouw keuzeElke outputs[].url is een kopie in onze opslag: voor altijd bewaard (betaald per GB-maand) of 7 dagen gratis, volgens je accountinstelling of ?storage=.
Dezelfde structuur voor elk modeltype, url, content_type, width, height en duration, voor afbeeldingen, video en audio. output is het eigen resultaatobject van het model.
Velden van de uitvoer
images
array of object {url, content_type, file_name, file_size, width, height}Afbeeldingen na toepassing van chromatische aberratie.

Meer modellen: Afbeelding bewerken

Voor AI-agents: deze pagina als Markdown staat op https://doitong.com/nl/developers/models/post-processing/chromatic-aberration.md. Alle modellen en handleidingen: https://doitong.com/developers/llms.txt