Njuolgga sisdollui

Meta Muse Image Text to Image

Integrere

Modealla-id meta/muse-image/text-to-image
# 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/meta/muse-image/text-to-image?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át ohcamuš: 0,01 $ 10 API-kreditta Vuodje dán siiddu alde

Oza API-čoavdaga
Meta Teakstas gova #realism#typography#stylized

Tekst-til-bilde-generator med frie sideforhold og 1 til 10 bilder per forespørsel

Meta · Govva

Dát lea du vuosttaš bohtos

Daga jearaldaga vuolábealde ja vuodje dan iežat API-čoavddain. Boađusat kopierejuvvojit min vurkemii, bisuhuvvojit álo dahje 7 beaivvi nuvttá.

Ráhkat jearaldaga

Kontrollat ráhkaduvvojit modealla skeama vuođul. Koda ja haddi ođasmahttojuvvojit go rievddadat daid.

•gáibiduvvo

Teakstamearrádusat gova ráhkadeapmái dahje doaimmaheapmái.

Boađusgova oasselohku; jus guođe dan meroštakeahttá, Muse vállje dimenšuvnnaid automáhtalaččat. Muse geavaha gorriid iige bivdojuvvon pixel-dimenšuvnnaid, renderere sullii 2.5 megapiksel iežas čavga resolušuvnnain: sihke "1920:1200" ja "960:600" šaddaba 1920x1200 gova. Atte iešmeroštallojuvvon gorri gaskkas 1:16 ja 16:1 "width:height"-notášuvnnain, ovdamearkka dihte "16:9", "5:4" dahje "1920:1200"; dábálaš standárdat leat "21:9", "16:9", "4:3", "3:2", "1:1", "2:3", "3:4", "9:16", "9:21".

num_images standárda 1

Ráhkadeapmái bivdojuvvon govvamearri.

Viiddiduvvon output_format
output_format standárda webp

Boahtteva govva fiilaformáhtta.

POST /run/meta/muse-image/text-to-image?wait=20 haddemearrádus → 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/meta/muse-image/text-to-image?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"

Geavat dán ohcamuša

Du key báhcá dán fierpmádatlogan: dat sáddejuvvo dušše Doitong API:ii ja vurkejuvvo (localStorage) dušše jos válljet Remember. Viečča API-keya

Dát lea Meta Muse Image Text to Image birra

Oppretter bilder fra en tekst-`prompt`. `aspect_ratio` tar imot enhver bredde:høyde-verdi mellom 1:16 og 16:1, inkludert forhåndsinnstillinger som 16:9 eller 9:16. `num_images` angir hvor mange som skal produseres, fra 1 til 10, og `output_format` er jpeg, png eller webp (standard webp). Kan brukes til bilder som inneholder tekst, diagrammer eller QR-koder.

Parametterat

Sádde kanonala nama dahje iežas nama, ii goappašiid. Kanonala namat

NammaŠládja StandárdaDohkkehuvvon Govvádus
promptgáibiduvvo
Šládjastring
Teakstamearrádusat gova ráhkadeapmái dahje doaimmaheapmái.
aspect_ratioeaktodáhtolaš
Šládjastring | null
Boađusgova oasselohku; jus guođe dan meroštakeahttá, Muse vállje dimenšuvnnaid automáhtalaččat. Muse geavaha gorriid iige bivdojuvvon pixel-dimenšuvnnaid, renderere sullii 2.5 megapiksel iežas čavga resolušuvnnain: sihke "1920:1200" ja "960:600" šaddaba 1920x1200 gova. Atte iešmeroštallojuvvon gorri gaskkas 1:16 ja 16:1 "width:height"-notášuvnnain, ovdamearkka dihte "16:9", "5:4" dahje "1920:1200"; dábálaš standárdat leat "21:9", "16:9", "4:3", "3:2", "1:1", "2:3", "3:4", "9:16", "9:21".
num_imageseaktodáhtolaš num_outputs
Šládjainteger
Standárda1
1 – 10
Ráhkadeapmái bivdojuvvon govvamearri.
output_formateaktodáhtolaš
Šládjaenum
Standárdawebp
jpegpngwebp
Boahtteva govva fiilaformáhtta.
gáibiduvvo Kanonala namma, maid sáhttá geavahit

Boađus

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "meta/muse-image/text-to-image",
  "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
      }
    ]
  },
  "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"
  }
}
Du fiillat, du válljenJuohke outputs[].url lea kopia min vurkemis: bisuhuvvo álo (mákso GB-mánu mielde) dahje 7 beaivvi nuvttá, du konto­o heiveheami dahje ?storage= mielde.
Seammá hápmi juohke modeallastype, url, content_type, width, height ja duration, govvii, videoii ja jienai seammá ládje. output lea modealla iežas boađusobjekta.
Outputa giettit
images
array of object {url, content_type, file_name, file_size, width, height}Ráhkaduvvon ráhkadeami dahje doaimmaheami govat.

Eanet modeallat: Teakstas gova

AI-agenttaide: dán siidu Markdowna lea dáppe https://doitong.com/se/developers/models/meta/muse-image/text-to-image.md. Buot modeallat ja ráđit: https://doitong.com/developers/llms.txt