Zum Inhalt springen

Image Editing Style Transfer

Integrieren

Modell-ID image-editing/style-transfer
# 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/image-editing/style-transfer?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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Diese Anfrage: 0,04 $ 40 API-Credits Auf dieser Seite ausführen

API-Schlüssel abrufen
Utility · Bild

Dein erstes Ergebnis erscheint hier

Erstelle unten eine Anfrage und führe sie mit deinem API-Schlüssel aus. Ausgaben werden in unseren Speicher kopiert und dauerhaft oder 7 Tage kostenlos aufbewahrt.

Anfrage erstellen

Die Steuerelemente werden aus dem Modellschema generiert. Code und Preis werden aktualisiert, während du sie änderst.

Standard Van Gogh's Starry Night

Künstlerischer Stil für die Transformation.

•erforderlich image_url
Datei ablegen oder

Bild, das als Prompt für das omni-Modell verwendet wird.

aspect_ratio

Seitenverhältnis des resultierenden Bildes.

Erweitert safety_tolerance · output_format · guidance_scale · num_inference_steps · seed
safety_tolerance Standard 2

Sicherheitseinstellung für generierte Bilder: Wähle 6 für die großzügigste Filterung oder 1 für die strengste.

output_format Standard jpeg

Dateiformat des resultierenden Bilds.

Standard 3.5

Stärke der Prompt-Treue bei der Bildauswahl, ausgedrückt als CFG (Classifier Free Guidance).

Standard 30

Anzahl der beim Sampling verwendeten Inferenzschritte.

Seed für reproduzierbare Bilder: Ein identischer Prompt und Seed erzeugen bei unveränderter Modellversion ein identisches Bild.

POST /run/image-editing/style-transfer?wait=20 Preis → 0,04 $
# 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/image-editing/style-transfer?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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Diese Anfrage ausführen

Dein Schlüssel bleibt in diesem Browser: Er wird nur an die Doitong API gesendet und nur gespeichert (localStorage), wenn du „Merken“ aktivierst. API-Schlüssel abrufen

Über Image Editing Style Transfer

Gestaltet das Bild aus `image_url` im durch `prompt` angegebenen Kunststil neu; standardmäßig Van Goghs Sternennacht, wobei jeder Stil beschrieben werden kann. Anpassbar sind `guidance_scale`, `num_inference_steps` (1 bis 50), das Ausgabeformat (jpeg oder png), `aspect_ratio` und `seed`.

Parameter

Sende entweder den kanonischen Namen oder den nativen Namen, nicht beide. Kanonische Namen

NameTyp StandardZulässig Beschreibung
image_urlerforderlich image
Typurl · image
Bild, das als Prompt für das omni-Modell verwendet wird.
guidance_scaleoptional
Typnumber
Standard3.5
0 – 20
Stärke der Prompt-Treue bei der Bildauswahl, ausgedrückt als CFG (Classifier Free Guidance).
num_inference_stepsoptional
Typinteger
Standard30
1 – 50
Anzahl der beim Sampling verwendeten Inferenzschritte.
safety_toleranceoptional
Typenum
Standard2
123456
Sicherheitseinstellung für generierte Bilder: Wähle 6 für die großzügigste Filterung oder 1 für die strengste.
output_formatoptional
Typenum
Standardjpeg
jpegpng
Dateiformat des resultierenden Bilds.
aspect_ratiooptional
Typenum
21:916:94:33:21:12:33:49:169:21
Seitenverhältnis des resultierenden Bildes.
seedoptional
Typinteger | null
Seed für reproduzierbare Bilder: Ein identischer Prompt und Seed erzeugen bei unveränderter Modellversion ein identisches Bild.
promptoptional
Typstring
StandardVan Gogh's Starry Night
Künstlerischer Stil für die Transformation.
erforderlich Kanonischer Name, ebenfalls akzeptiert

Dateiparameter akzeptieren eine öffentliche https://-URL, eine data:-URI bis 10 MB oder die file_url eines Uploads. Dateien

Ausgabe

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "image-editing/style-transfer",
  "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": 40,
    "usd": "0.04",
    "charged": 40,
    "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
      }
    ],
    "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"
  }
}
Deine Dateien, deine EntscheidungJede outputs[].url ist eine Kopie in unserem Speicher: dauerhaft aufbewahrt (Abrechnung pro GB-Monat) oder 7 Tage kostenlos – je nach Kontoeinstellung oder ?storage=.
Gleiche Struktur bei jedem Modelltype, url, content_type, width, height und duration – für Bilder, Video und Audio gleichermaßen. output ist das Ergebnisobjekt des Modells.
Ausgabefelder
images
array of object {url, content_type, file_name, file_size, width, height}
seed
integer

Weitere Modelle: Bildbearbeitung

Für KI-Agenten: Diese Seite ist als Markdown verfügbar unter https://doitong.com/de/developers/models/image-editing/style-transfer.md. Alle Modelle und Anleitungen: https://doitong.com/developers/llms.txt