Op den Inhalt sprangen

Bitdance

Integréieren

Modell-ID bitdance
# 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/bitdance?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"
  }'

# 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"

Dës Ufro: ≈0,01 $ 10 API-Kreditter Op dëser Säit ausféieren

API-Schlëssel kréien
Open model Text zu Bild #text-to-image

Text-zu-Bild-Generator op Basis vun engem autoregressive Sproochmodell, mat bis zu véier Biller pro Ufro

Open model · Bild

Äin éischt Resultat kënnt hei hin

Baut hei drënner eng Ufro a féiert se mat Ärem API-Schlëssel aus. Output gëtt an eis Späicherung kopéiert, fir ëmmer oder 7 Deeg gratis gespäichert.

Eng Ufro erstellen

D'Kontrolle ginn aus dem Modellschema generéiert. De Code an de Präis aktualiséiere sech, wann s du se ännerst.

•obligatoresch

Textinstruktioune fir d'Bildgeneratioun.

image_size Standard square_hd

Gefrote Dimensioune vum Output-Bild; de Modell benotzt déi ënnerstëtzt Opléisung, déi ärer Auswiel am nooste kënnt.

num_images Standard 1

Unzuel vun de Biller, déi erstallt ginn.

Erweidert output_format · num_inference_steps · guidance_scale · seed · enable_safety_checker
output_format Standard jpeg

Dateiformat vum resultéierende Bild.

Standard 25

Unzuel vun den Diffusiouns-Sampling-Schrëtt pro Decodéierungsschrëtt.

Standard 7.5

Skala fir classifier-free guidance; eng Erhéijung léisst den Output méi genee mam Prompt iwwerstëmmen.

Zoufällege Seed, deen e Bild reproduzéierbar mécht, wann en mat engem onverännerten Prompt kombinéiert gëtt.

POST /run/bitdance?wait=20 Präis → 0,01 $
# 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/bitdance?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"
  }'

# 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"

Dës Ufro ausféieren

Äre Schlëssel bleift an dësem Browser: e gëtt nëmmen un d'Doitong API geschéckt an nëmme gespäichert (localStorage), wann s du „Erënneren“ aktivéiers. En API-Schlëssel kréien

Iwwer Bitdance

Erstellt Biller aus engem `prompt` mat BitDance. Wielt eng virdefinéiert `image_size` wéi square_hd oder landscape_16_9, passt `guidance_scale` (1 bis 15) an `num_inference_steps` (10 bis 100) un a frot mat `num_images` 1 bis 4 Biller un. D'Ausgab kann jpeg oder png sinn; e `seed` mécht d'Resultater widderhuelbar.

Parameteren

Schéck entweder den kanoneschen Numm oder den natierlechen Numm, net béid. Kanonesch Nimm

NummTyp StandardErlaabt Beschreiwung
promptobligatoresch
Typstring
Textinstruktioune fir d'Bildgeneratioun.
image_sizeoptional
Typobject
Standardsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Gefrote Dimensioune vum Output-Bild; de Modell benotzt déi ënnerstëtzt Opléisung, déi ärer Auswiel am nooste kënnt.
num_inference_stepsoptional
Typinteger
Standard25
10 – 100
Unzuel vun den Diffusiouns-Sampling-Schrëtt pro Decodéierungsschrëtt.
guidance_scaleoptional
Typnumber
Standard7.5
1 – 15
Skala fir classifier-free guidance; eng Erhéijung léisst den Output méi genee mam Prompt iwwerstëmmen.
seedoptional
Typinteger | null
Zoufällege Seed, deen e Bild reproduzéierbar mécht, wann en mat engem onverännerten Prompt kombinéiert gëtt.
num_imagesoptional num_outputs
Typinteger
Standard1
1 – 4
Unzuel vun de Biller, déi erstallt ginn.
enable_safety_checkeroptional
Typboolean
Standardtrue
Sécherheetskontroll, déi schwaarz Biller amplaz vun all als onsécher markéierte Biller zréckgëtt. true aktivéiert d'Kontroll; false deaktivéiert se nëmme fir autoriséiert Konten, während Ufroen ouni Autorisatioun trotzdeem kontrolléiert ginn.
output_formatoptional
Typenum
Standardjpeg
jpegpng
Dateiformat vum resultéierende Bild.
obligatoresch Kanoneschen Numm, och akzeptéiert

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "bitdance",
  "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": 10,
    "usd": "0.01",
    "charged": 10,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "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,
    "has_nsfw_concepts": [
      false
    ],
    "prompt": "A close-up portrait of a cat wearing a tiny top hat, cinematic photography style"
  },
  "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"
  }
}
Är Fichieren, Är WielAll outputs[].url ass eng Kopie an eiser Späicherung: fir ëmmer gespäichert (bezuelbar pro GB-Mount) oder 7 Deeg gratis, jee no Ärer Kontastellung oder ?storage=.
D'selwecht Struktur bei all Modelltype, url, content_type, width, height an duration, fir Biller, Video an Audio gläichermoossen. output ass dem Modell säin eegent Resultatobjet.
Output-Felder
images
array of object {url, content_type, file_name, file_size, width, height}Dateiinformatioun fir déi generéiert Biller.
seed
integerSeed, dee benotzt gëtt, fir d'Bild ze produzéieren.
has_nsfw_concepts
array of booleanGëtt un, ob NSFW-Konzepter an de generéierte Biller optrieden.
prompt
stringPrompt, deen während der Bild-Generatioun benotzt gëtt.

Fir AI-Agenten: dës Säit als Markdown ass ënner https://doitong.com/lb/developers/models/bitdance.md. All Modeller a Guiden: https://doitong.com/developers/llms.txt