PopNowAPI-Doku
Hauptinhalt

Recraft 20B SVG API-Referenz

SVG-Icons und -Illustrationen in 21 Vektorstilen

Mit einem einzigen PopNow-API-Schlüssel rufst du Recraft 20B SVG aus deinem eigenen Code auf. Hier findest du die Modell-IDs, jedes Eingabefeld, die Kosten pro Anfrage in USD und eine Anfrage, die du direkt ins Terminal kopieren kannst.

Die Parameterbeschreibungen stammen aus dem Eingabeschema des Modells und sind nur auf Englisch verfügbar.

Auf einen Blick

Hersteller
Recraft
Ergebnis
Bild
Ab
$0.0528 USD pro Bild

Die Preise werden in USD angezeigt und von deinem PopNow-Guthaben abgebucht. Bei Annahme wird der Höchstbetrag reserviert, nach Abschluss der tatsächliche Verbrauch abgerechnet und der Rest freigegeben. Fehlgeschlagene Tasks kosten nichts. Ein genaues Angebot erhältst du vorab über POST /api/v1/jobs/quote.

SVG-Generator

recraft/20b-svg/text-to-image

Preis

OptionUSD
Standard$0.0528 pro Bild

Parameter

FeldTypStandardwertErlaubtBedeutung
promptPflichtstring—bis zu 1.000 ZeichenThe subject to draw, ideally one object for an icon.
styleOptionalstringvector_illustrationvector_illustration, vector_illustration/cartoon, vector_illustration/doodle_line_art, vector_illustration/engraving, vector_illustration/flat_2, vector_illustration/kawaii, vector_illustration/line_art, vector_illustration/line_circuit, vector_illustration/linocut, vector_illustration/seamless, icon, icon/broken_line, icon/colored_outline, icon/colored_shapes, … (+7)Visual style of the SVG: an icon look (icon/*) or an illustration look (vector_illustration/*).
aspect_ratioOptionalstring1:11:1, 16:9, 9:16, 4:3, 3:4Shape of the SVG canvas.

Beispielanfrage

Diese Anfrage läuft so, wie sie ist; weggelassene Felder behalten ihren Standardwert. Leg deinen Schlüssel vorher in POPNOW_API_KEY ab.

POST /api/v1/jobs/createTask
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "recraft/20b-svg/text-to-image",
  "input": {
    "prompt": "A cozy reading nook beside a rain-streaked window, warm lamp light, a sleeping orange cat on a knitted blanket, soft film grain"
  }
}'

Die Antwort enthält sofort eine taskId. Das Ergebnis holst du mit GET /api/v1/jobs/recordInfo ab – oder du gibst callBackUrl mit und wirst benachrichtigt.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Weiter geht’s

Auf dieser Seite