grok-imagine-1.5-ext API
Generate images from text or edit reference images with Grok Imagine on APISea.
grok-imagine-1.5-edit-apiseaתמחור API של grok-imagine-1.5-ext
כל המחירים נקובים ב-USD. תעריפי APISea בהשוואה למחירון הרשמי עבור אותה יחידה.
| אפשרות | APISea | רשמי | חיסכון |
|---|---|---|---|
| ברירת מחדלברירת מחדל | $0.0165 | $0.022 | −25% |
המחירים הם לכל תמונה.
מהו grok-imagine-1.5-ext?
grok-imagine-1.5-ext is an xAI Grok Imagine image model available on APISea under the model ID grok-imagine-1.5-edit-apisea, also callable as grok-imagine-1.5-edit-ext. It is suited to applications that generate images from text or edit existing images using a written instruction and reference URLs. The image-generation documentation describes multilingual prompts, reference-based editing, aspect-ratio controls, and multiple outputs per request.
Submit requests to POST /v1/images/generations through APISea’s OpenAI-compatible base URL, https://api.apisea.ai/v1, using Bearer Token authentication. Processing is asynchronous: the initial response returns a task ID for subsequent status queries rather than a finished image. APISea Default pricing is $0.0165 per image, compared with the provider list price of $0.022 per image—about 25% below list price. Usage is pay-as-you-go, with billing only for successful requests.
המאפיינים הבולטים של grok-imagine-1.5-ext
Generation and editing
Create images from text prompts or include reference image URLs for image editing.
Reference image inputs
The generation and editing documentation supports 1–5 reference images supplied through image_urls.
Shape and count controls
Choose from five documented size formats, including square, landscape, and portrait. Set n to request 1–10 images.
Optional content moderation
Set nsfw_check to true to review prompts and input images with omni-moderation-latest before submitting the image task.
איך לקרוא ל-API של grok-imagine-1.5-ext ב-4 שלבים
- 01
יצירת מפתח API
יש להתחבר ל-APISea, להוסיף יתרה החל מ-$50 וליצור מפתח sk-sea במסוף.
- 02
הגדרת כתובת הבסיס
יש להשתמש ב-https://api.apisea.ai/v1 ככתובת הבסיס ב-SDK או בלקוח HTTP.
- 03
שליחת הבקשה
יש לקרוא ל-POST /v1/images/generations עם "model": "grok-imagine-1.5-edit-apisea" והפרמטרים שלהלן.
- 04
טיפול בתגובה
התגובה מכילה task_id. יש לשלוח בקשות GET אל /v1/tasks/{task_id} עד שהסטטוס יהיה completed, ואז להוריד את כתובות ה-URL של התוצאות.
דוגמאות לבקשות
תיעוד: Grok Imagine Image Generation# model can be "grok-imagine-1.5-edit-apisea", or the compatible alias "grok-imagine-1.5-ext"
curl --request POST \
--url https://api.apisea.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "grok-imagine-1.5-edit-apisea",
"prompt": "An orange cat sitting on a sunny windowsill, oil painting style",
"size": "1:1",
"n": 1
}'פרמטרים
| פרמטר | סוג | נדרש | ברירת מחדל | תיאור |
|---|---|---|---|---|
model | string | נדרש | grok-imagine-1.5-apisea | Image generation model name |
nsfw_check | boolean | אופציונלי | false | Whether to run content moderation before submitting the image task. |
prompt | string | נדרש | — | Text description for image generation or editing, supports multiple languages |
image_urls | string[] | אופציונלי | — | Reference image URL list. **Omit for text-to-image; include for image editing**. |
size | string | אופציונלי | 1:1 | Output image size |
n | integer | אופציונלי | 1 | Number of images to generate |
מה אפשר לבנות עם grok-imagine-1.5-ext
Prompt-to-image tools
Build an interface that turns written descriptions into images, with controls for output shape and image count.
Background editing workflows
Let users provide an existing image and describe a background change through an editing prompt.
Style exploration
Use reference images and written style instructions to explore alternative visual treatments.
Asset generation queues
Build an asynchronous image workflow that submits tasks, checks their status, and saves completed assets for your team.
טיפים לקבלת תוצאות טובות יותר
- 01
Set the model explicitly
Use
grok-imagine-1.5-edit-apiseaor its listed callable aliasgrok-imagine-1.5-edit-ext. The documentation’s default model is a different ID, so do not rely on the default. - 02
Prepare accessible references
Omit image_urls for text-to-image requests. For editing, provide publicly accessible absolute HTTP or HTTPS URLs; upload local files through POST /v1/uploads/images and use the returned URL.
- 03
Control output count
Send n as an unquoted integer from 1–10, not a string. Start with n set to 1 when testing prompts to limit the number of billed images.
- 04
Poll and save outputs
Store the task ID returned on submission and query task status until processing finishes. Save generated images promptly because their links expire after 24 hours.
מגבלות ודברים שכדאי לדעת
Image processing is asynchronous and requires subsequent task-status queries.
Generated image links are valid for 24 hours.
The shared generation and editing documentation allows 1–5 reference images; separate limits for this edit model ID are not specified.
שאלות נפוצות על API של grok-imagine-1.5-ext
How much does grok-imagine-1.5-ext cost on APISea?
APISea Default pricing is $0.0165 per image, versus the provider list price of $0.022 per image. The default configuration is about 25% below list price, with pay-as-you-go billing only for successful requests.
How do I call this model through the API?
Send a Bearer-authenticated POST request to https://api.apisea.ai/v1/images/generations with model set to grok-imagine-1.5-edit-apisea and a required prompt. The listed callable alias is grok-imagine-1.5-edit-ext; submission returns a task ID for subsequent queries.
Which parameters control generation and editing?
The documentation lists prompt, image_urls, size, n, and nsfw_check. Omit image_urls for text-to-image generation and include reference URLs for editing; size supports 1:1, 16:9, 9:16, 3:2, and 2:3.
What are the input and output limits?
The shared generation and editing documentation supports 1–5 reference images and n values from 1–10. References must use publicly accessible absolute HTTP or HTTPS URLs, and generated links expire after 24 hours.
Can I use generated images commercially?
Commercial use is subject to the provider’s terms. Review xAI’s applicable terms for your intended use; the supplied documentation does not establish commercial-use rights.
How does this differ from grok-imagine-image-quality?
The documentation lists grok-imagine-image-quality separately, with 1k and 2k resolution options and up to three input images. Those specifications should not be assumed for grok-imagine-1.5-edit-apisea, and no comparative quality benchmark is provided.
מודלים קשורים
grok-imagine-1.5-apisea
grok-imagine-2.0-ext
grok-imagine-image
grok-imagine-image-2.0
grok-imagine-image-quality
qwen-image-2.0
qwen-image-2.0-pro
qwen-image-3.0
מתחילים לבנות עם grok-imagine-1.5-ext
מפתח אחד, תשלום לפי שימוש החל מ-$50, וחיוב רק על בקשות שהצליחו.