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 key
سجّل الدخول إلى APISea، واشحن رصيدك بدءًا من $50، وأنشئ مفتاح sk-sea من وحدة التحكم.
- 02
اضبط عنوان URL الأساسي
استخدم 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، ثم نزّل روابط النتائج.
أمثلة على الطلبات
الوثائق: 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؛ ولا تُحتسب الرسوم إلا على الطلبات الناجحة.