Μετάβαση στο περιεχόμενο

Grok Imagine Image · Edit

Ενσωμάτωση

id μοντέλου xai/grok-imagine-image/edit
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/xai/grok-imagine-image/edit?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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Αυτό το αίτημα: 0,022 $ 22 πιστώσεις API · ≈ 2,37 ₽ Εκτέλεση σε αυτήν τη σελίδα

Λήψη κλειδιού API
xAI Επεξεργασία εικόνας έως 2k #grok#xai#image-editing

Επεξεργασία εικόνων Grok από έως 3 εικόνες εισόδου, με αναλογία διαστάσεων που προεπιλέγει την πρώτη εικόνα

Δημιουργήθηκε στο Doitong

Δημόσια έργα που δημιουργήθηκαν με το Grok Imagine Image από την κοινότητα του Doitong. Επαναχρησιμοποιήστε ένα prompt με ένα κλικ.

Δημόσιες δημιουργίες: 16
Brand guidelines: Visual style: Cinematic Realistic: photorealistic live-action, shallow depth of...

Brand guidelines: Visual style: Cinematic Realistic: photorealistic live-action, shallow depth of field, dramatic lighting, film grain. Reference images context (match the visual style and elements from these): - reference photo (style_reference): use as visual reference for setting, objects, and...

Art style: Cinematic Realistic. Full-length view, the entire figure visible from head to feet, st...

Art style: Cinematic Realistic. Full-length view, the entire figure visible from head to feet, standing upright, a 24-year-old man centered in frame. He is a fictional everyman: slim, slightly under-built frame with noticeably slouched, rounded shoulders and a caved-in posture that reads as...

Art style: мультяшный. An extreme wide high-angle composition looking down at the sunlit yellow k...

Art style: мультяшный. An extreme wide high-angle composition looking down at the sunlit yellow kitchen table. Lily peers over the edge into her open turquoise lunchbox where Broc and Apple Slice sit side-by-side holding miniature bright red paper hearts aloft. Lily's expression transforms into...

Art style: Clay / Plasticine. ПОЖИЛАЯ АНЯ. Clay plasticine figure of an elderly woman with dark h...

Art style: Clay / Plasticine. ПОЖИЛАЯ АНЯ. Clay plasticine figure of an elderly woman with dark hair streaked with sculpted silver strands in a low bun. Her face is kind and lined, with visible clay texture. She wears a mustard-yellow knitted scarf over a dark-green cardigan. Silhouette tag:...

Art style: Clay / Plasticine. ЭЛЛИПСИС, другая локация. Гостиная с серыми незакрашенными стенами ...

Art style: Clay / Plasticine. ЭЛЛИПСИС, другая локация. Гостиная с серыми незакрашенными стенами освещена окном и голой лампой. Миша в тёмно-синей толстовке и Аня в горчичном свитере стоят у стены, у каждого кисть в правой руке. На полу ровно два ведра коралловой краски.. изменить одежду на...

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

A traditional hand-drawn FILM STORYBOARD SHEET for scene 2: one page divided into a clean 3x3 grid of NINE separate rectangular panels, three rows of three, each panel a 9:16 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 3: one page divided into a clean 3x3 gri...

A traditional hand-drawn FILM STORYBOARD SHEET for scene 3: one page divided into a clean 3x3 grid of NINE separate rectangular panels, three rows of three, each panel a 9:16 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 1: one page divided into a clean 3x3 gri...

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

Δημιουργία αιτήματος

Τα στοιχεία ελέγχου δημιουργούνται από το σχήμα του μοντέλου. Ο κώδικας και η τιμή ενημερώνονται καθώς τα αλλάζετε.

•απαιτείται 88 / 8000

Κειμενική περιγραφή της εικόνας προς δημιουργία.

resolution προεπιλογή 1k

Επιλογή ανάλυσης εικόνας μεταξύ standard (`1k`) και high (`2k`).

προεπιλογή auto

Ρύθμιση αναλογίας διαστάσεων εξόδου για επεξεργασία εικόνας, με το `auto` να χρησιμοποιεί τις αναλογίες της πρώτης εισόδου. Αυτή η αυτόματη ρύθμιση είναι η προεπιλογή.

num_images προεπιλογή 1

Πλήθος εικόνων προς παραγωγή.

Για προχωρημένους images · output_format · enable_safety_checker
image_urls
Αποθέστε ένα αρχείο ή

URL εικόνων προς επεξεργασία, ως λίστα έως 3 εικόνων.

output_format προεπιλογή jpeg

Μορφή αρχείου της τελικής εικόνας.

POST /run/xai/grok-imagine-image/edit?wait=20 προσφορά → 0,022 $
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/xai/grok-imagine-image/edit?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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Εκτέλεση αυτού του αιτήματος

Το κλειδί σας παραμένει σε αυτό το πρόγραμμα περιήγησης: αποστέλλεται μόνο στο Doitong API και αποθηκεύεται (localStorage) μόνο αν ενεργοποιήσετε την επιλογή «Να απομνημονεύεται». Λήψη κλειδιού API

Σχετικά με το Grok Imagine Image · Edit

Επεξεργάζεται εικόνες με περιγραφή από prompt έως 8000 χαρακτήρων, χρησιμοποιώντας έως 3 URL στο `image_urls`. Το `aspect_ratio` είναι auto από προεπιλογή, διατηρώντας την αναλογία της πρώτης εικόνας εισόδου, ή μπορεί να οριστεί ρητά. Η ανάλυση είναι 1k ή 2k, με έως 4 εξόδους σε jpeg, png ή webp. Επιστρέφεται αναθεωρημένο prompt.

Παράμετροι

Στείλτε είτε το κανονικό όνομα είτε το εγγενές όνομα, όχι και τα δύο. Κανονικά ονόματα

ΌνομαΤύπος ΠροεπιλογήΕπιτρεπόμενο Περιγραφή
promptαπαιτείται
Τύποςstring
≤ 8.000 χαρακτήρες
Κειμενική περιγραφή της εικόνας προς δημιουργία.
num_imagesπροαιρετικό num_outputs
Τύποςinteger
Προεπιλογή1
1 – 4
Πλήθος εικόνων προς παραγωγή.
aspect_ratioπροαιρετικό
Τύποςenum
Προεπιλογήauto
auto2:120:919.5:916:94:33:21:12:33:49:169:19.59:201:2
Ρύθμιση αναλογίας διαστάσεων εξόδου για επεξεργασία εικόνας, με το `auto` να χρησιμοποιεί τις αναλογίες της πρώτης εισόδου. Αυτή η αυτόματη ρύθμιση είναι η προεπιλογή.
resolutionπροαιρετικό
Τύποςenum
Προεπιλογή1k
1k2k
Επιλογή ανάλυσης εικόνας μεταξύ standard (`1k`) και high (`2k`).
output_formatπροαιρετικό
Τύποςenum
Προεπιλογήjpeg
jpegpngwebp
Μορφή αρχείου της τελικής εικόνας.
enable_safety_checkerπροαιρετικό
Τύποςboolean
Προεπιλογήtrue
Ο έλεγχος μπορεί να χαλαρώσει με τη ρύθμιση false, εφόσον ο καλών είναι εξουσιοδοτημένος.
image_urlsπροαιρετικό images
Τύποςurl[] · image
URL εικόνων προς επεξεργασία, ως λίστα έως 3 εικόνων.
απαιτείται Κανονικό όνομα, επίσης αποδεκτό

Οι παράμετροι αρχείων δέχονται ένα δημόσιο URL https://, ένα URI data: έως 10 MB ή το file_url μιας μεταφόρτωσης. Αρχεία

Έξοδος

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "xai/grok-imagine-image/edit",
  "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": 22,
    "usd": "0.022",
    "charged": 22,
    "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Τα αρχεία σας, η επιλογή σαςΚάθε outputs[].url είναι ένα αντίγραφο στην αποθήκευσή μας: διατηρείται για πάντα (χρέωση ανά GB-μήνα) ή 7 ημέρες δωρεάν, σύμφωνα με τη ρύθμιση του λογαριασμού σας ή ?storage=.
Ίδια μορφή σε κάθε μοντέλοtype, url, content_type, width, height και duration, τόσο για εικόνες όσο και για βίντεο και ήχο. Το output είναι το αντικείμενο αποτελέσματος του ίδιου του μοντέλου.
Πεδία εξόδου
images
array of object {url, content_type, file_name, file_size, width, height}URL που δείχνει στην επεξεργασμένη εικόνα.
revised_prompt
string | nullΕνισχυμένο prompt για παραγωγή εικόνας.

Περισσότερα μοντέλα: Επεξεργασία εικόνας

Για πράκτορες AI: αυτή η σελίδα σε Markdown βρίσκεται στη διεύθυνση https://doitong.com/el/developers/models/xai/grok-imagine-image/edit.md. Όλα τα μοντέλα και οι οδηγοί: https://doitong.com/developers/llms.txt