Prijeđi na sadržaj

Grok Imagine Image

Integriraj

ID modela xai/grok-imagine-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/xai/grok-imagine-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"

Ovaj zahtjev: 0,02 $ 20 API kredita Pokreni na ovoj stranici

Nabavi API ključ
xAI Tekst u sliku do 2k #xai#grok#text-to-image

Pretvaranje teksta u slike Grok s 13 omjera stranica od 2:1 do 1:2 i razlučivošću 1k ili 2k

Izrađeno na Doitongu

Javna djela zajednice Doitong izrađena pomoću modela Grok Imagine Image. Ponovno upotrijebite prompt jednim klikom.

Prikazana javna djela: 10
Art style: Cinematic Realistic. Вертикальный формат 9:16. Детальный макро-план в салоне автомобил...

Art style: Cinematic Realistic. Вертикальный формат 9:16. Детальный макро-план в салоне автомобиля: палец нажимает матовую кнопку запуска двигателя, на приборной панели вспыхивают циферблаты со спортивными стрелками. Мягкая подсветка интерьера в теплых янтарных и белых тонах, фактурная кожаная...

Art style: Cute 3D. Капибара. A plump, highly relaxed capybara sitting partially submerged in a s...

Art style: Cute 3D. Капибара. A plump, highly relaxed capybara sitting partially submerged in a steaming hot spring, positioned in the lower center of the vertical frame. On the very top of its head sits a bright orange mandarin orange, perfectly balanced. The capybara has half-closed eyes, a...

Cinematic head-and-shoulders portrait, face close-up, sharp eyes in crisp focus, shallow depth of...

Cinematic head-and-shoulders portrait, face close-up, sharp eyes in crisp focus, shallow depth of field, soft key light with gentle rim light, filmic colour grading. The character looks slightly past the camera with a natural, expressive gaze. Neutral, softly blurred background. No text, no...

Pixar-style 3D animation, soft warm cinematic lighting, shallow depth of field. Огромное лесное д...

Pixar-style 3D animation, soft warm cinematic lighting, shallow depth of field. Огромное лесное дерево с массивным текстурным стволом и мягкими, гибкими ветвями, на коре дерева светятся два больших, теплых и дружелюбных глаза, 3D анимация в стиле Pixar, сказочный вид, высокая детализация коры,...

Art style: Felt / Fabric. Full-length view, the entire figure visible from head to feet, standing...

Art style: Felt / Fabric. Full-length view, the entire figure visible from head to feet, standing upright, figure centered with a professional restaurant kitchen filling the sides — gleaming steel counters, hanging copper pans and softly glowing pass lights. Arina is a young woman in her early...

Art style: photorealistic cinematic dark fantasy, IMAX anamorphic, heavy chiaroscuro, volumetric ...

Art style: photorealistic cinematic dark fantasy, IMAX anamorphic, heavy chiaroscuro, volumetric fog and storm sky, colossal obsidian dragon with glowing crimson magma veins across scales and wings, tiny human figure for epic scale, graphite/obsidian with crimson and ember-gold accents, drifting...

A traditional hand-drawn FILM STORYBOARD SHEET for scene 21: one page divided into a clean 3x3 gr...

A traditional hand-drawn FILM STORYBOARD SHEET for scene 21: one page divided into a clean 3x3 grid of NINE separate rectangular panels, three rows of three, each panel a 16:9 rectangle with a thin ruled black border and a small hand-written panel number in its top-left corner from 1 to 9. Thin...

A traditional hand-drawn FILM STORYBOARD SHEET for scene 9: one page divided into a clean 3x3 gri...

A traditional hand-drawn FILM STORYBOARD SHEET for scene 9: one page divided into a clean 3x3 grid of NINE separate rectangular panels, three rows of three, each panel a 16:9 rectangle with a thin ruled black border and a small hand-written panel number in its top-left corner from 1 to 9. Thin...

Izradi zahtjev

Kontrole se generiraju iz sheme modela. Kôd i cijena ažuriraju se dok ih mijenjate.

•obavezno 88 / 8000

Tekstualni opis slike koju treba stvoriti.

resolution zadano 1k

Odabir razlučivosti slike između standardne (`1k`) i visoke (`2k`).

zadano 1:1

Omjer širine i visine izlazne slike.

num_images zadano 1

Broj slika koje treba izraditi.

Napredno output_format · enable_safety_checker
output_format zadano jpeg

Format datoteke rezultirajuće slike.

POST /run/xai/grok-imagine-image?wait=20 cijena → 0,02 $
# 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/xai/grok-imagine-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"

Pokreni ovaj zahtjev

Vaš ključ ostaje u ovom pregledniku: šalje se samo Doitong API-ju i sprema u localStorage samo ako označite Zapamti. Nabavite API ključ

O modelu Grok Imagine Image

Generira do 4 slike iz prompta od najviše 8000 znakova. `aspect_ratio` nudi 13 opcija, uključujući 16:9, 4:3, 1:1, 9:16 te ultraširoke ili visoke omjere, a `resolution` je 1k ili 2k. Izlaz je jpeg, png ili webp. Odgovor vraća i izmijenjeni prompt koji je stvarno upotrijebljen.

Parametri

Pošaljite kanonski naziv ili izvorni naziv, ne oba. Kanonski nazivi

NazivVrsta ZadanoDopušteno Opis
promptobavezno
Vrstastring
≤ 8.000 znakova
Tekstualni opis slike koju treba stvoriti.
num_imagesneobavezno num_outputs
Vrstainteger
Zadano1
1 – 4
Broj slika koje treba izraditi.
aspect_rationeobavezno
Vrstaenum
Zadano1:1
2:120:919.5:916:94:33:21:12:33:49:169:19.59:201:2
Omjer širine i visine izlazne slike.
resolutionneobavezno
Vrstaenum
Zadano1k
1k2k
Odabir razlučivosti slike između standardne (`1k`) i visoke (`2k`).
output_formatneobavezno
Vrstaenum
Zadanojpeg
jpegpngwebp
Format datoteke rezultirajuće slike.
enable_safety_checkerneobavezno
Vrstaboolean
Zadanotrue
Provjera se može ublažiti postavljanjem na false, ako je pozivatelj ovlašten.
obavezno Kanonski naziv, također prihvaćen

Izlaz

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "xai/grok-imagine-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": 20,
    "usd": "0.02",
    "charged": 20,
    "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
      }
    ],
    "revised_prompt": "string"
  },
  "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"
  }
}
Vaše datoteke, vaš izborSvaki outputs[].url kopija je u našoj pohrani: čuva se zauvijek (naplaćuje se po GB-mjesecu) ili 7 dana besplatno, prema postavci računa ili ?storage=.
Isti oblik na svakom modelutype, url, content_type, width, height i duration za slike, videozapise i zvuk. output je vlastiti objekt rezultata modela.
Polja izlaza
images
array of object {url, content_type, file_name, file_size, width, height}URL generirane slike.
revised_prompt
string | nullPoboljšani prompt koji se upotrebljava za generiranje slike.

Više modela: Tekst u sliku

Za AI agente: ova je stranica u Markdownu dostupna na https://doitong.com/hr/developers/models/xai/grok-imagine-image.md. Svi modeli i vodiči: https://doitong.com/developers/llms.txt