grok-imagine-image-quality API
Generate images from text or edit reference images with xAI’s grok-imagine-image-quality on APISea.
grok-imagine-image-qualityتسعير API لنموذج grok-imagine-image-quality
جميع الأسعار بالدولار الأمريكي (USD). مقارنة أسعار APISea بالسعر الرسمي المعلن للوحدة نفسها.
| الخيار | APISea | رسمي | وفّر |
|---|---|---|---|
| 1Kافتراضي | $0.044 | $0.05 | −12% |
| 2K | $0.0616 | $0.07 | −12% |
الأسعار لكل صورة.
مواد الإدخال
| الخيار | الوحدة | APISea | رسمي |
|---|---|---|---|
| Default | لكل صورة | $0.0088 | $0.01 |
ما هو grok-imagine-image-quality؟
grok-imagine-image-quality is an xAI Grok Imagine model for text-to-image generation and reference-based image editing on APISea. Its name positions it as a quality-focused option within the family. Send a text prompt to create images, or include up to three reference images for editing and multi-image guidance. The model supports 1K and 2K output, multiple aspect ratios, and batches of one to ten images. Prompts can contain up to 8,000 characters.
Requests use asynchronous processing: submit an image task, then poll until it completes or fails. APISea provides one API key and an OpenAI-compatible base URL, with pay-as-you-go billing only for successful requests. Generation costs $0.044 per image at 1K or $0.0616 per image at 2K; reference image input costs $0.0088 per image. The default configuration is about 12% below the provider list price.
أبرز مزايا grok-imagine-image-quality
Generation and Editing
Generate images from a text prompt or supply reference images for editing. One reference supports single-image editing; multiple references provide multi-image guidance.
Two Resolution Choices
Choose 1k or 2k resolution. The default is 1k, and this model does not accept a quality parameter.
Flexible Output Layouts
Select from supported square, portrait, landscape, and elongated aspect ratios, or use auto. Generate one to ten images per request.
Optional Preflight Moderation
Enable nsfw_check to review prompts and input images with omni-moderation-latest before submission. Moderation is disabled by default.
كيفية استدعاء API الخاص بـ grok-imagine-image-quality في 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-image-quality" والمعلمات أدناه.
- 04
تعامل مع الاستجابة
تتضمن الاستجابة task_id. أرسل طلبات GET /v1/tasks/{task_id} دوريًا حتى تصبح الحالة completed، ثم نزّل روابط النتائج.
أمثلة على الطلبات
الوثائق: Grok Imagine Image Generation# model can be "grok-imagine-image-quality", 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-image-quality",
"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-image-quality
Creative Concept Prototypes
Build a prompt-driven tool that generates visual concepts for team review. Request multiple images to explore alternatives in one task.
Background Editing Tools
Let users submit a reference image and describe a background change. Include the image URL with the editing prompt.
Style Exploration Workflows
Create an interface for trying prompted style changes on reference images. Support up to three references for multi-image guidance.
Multi-Format Asset Drafts
Generate image drafts for square, portrait, and landscape placements. Expose aspect ratio and resolution controls in your application.
نصائح للحصول على نتائج أفضل
- 01
Set the Model Explicitly
Send grok-imagine-image-quality as the model in POST /v1/images/generations. Use its documented resolution and aspect_ratio fields rather than relying on the endpoint’s general defaults.
- 02
Prepare Accessible References
Omit image_urls for text-to-image, or supply one to three publicly accessible absolute HTTP or HTTPS URLs for editing. Upload local images through POST /v1/uploads/images and use the returned URL.
- 03
Control Per-Request Spend
Use 1K at $0.044 per image when that output meets your needs; 2K costs $0.0616 per image. Set n explicitly, and account for reference image input at $0.0088 per image.
- 04
Poll and Save Results
Use data.id or data.poll_url from the submission response to poll until completed or failed. Save generated images promptly because their links expire after 24 hours.
القيود ومعلومات مهمة
Generation is asynchronous, so submission does not return a completed image immediately.
This model accepts at most three reference images and ten output images per request.
Generated image links expire after 24 hours, and the quality parameter is unsupported.
الأسئلة الشائعة حول API الخاص بـ grok-imagine-image-quality
How much does grok-imagine-image-quality cost on APISea?
APISea charges $0.044 per image at 1K and $0.0616 per image at 2K. Reference image input costs $0.0088 per image; the default configuration is about 12% below the provider list price.
How do I call grok-imagine-image-quality?
Send a Bearer-authenticated POST request to https://api.apisea.ai/v1/images/generations with model set to grok-imagine-image-quality and a non-empty prompt. Poll using the returned data.id or data.poll_url until the task completes or fails.
Which resolution and aspect ratio parameters are supported?
Set resolution to 1k or 2k; 1k is the default. The aspect_ratio field defaults to auto and supports documented ratios including 1:1, 16:9, 9:16, 3:2, and 2:3. Do not send a quality parameter.
What are the prompt, reference image, and batch limits?
Prompts must be non-empty after trimming and can contain up to 8,000 characters. You can include one to three reference images for editing and request one to ten output images with n; omit image_urls for text-to-image.
Can I use generated images commercially?
Commercial use is subject to the provider’s terms. Review the applicable xAI terms and any rights associated with your reference images before using outputs commercially.
How does it compare with grok-imagine-image?
The quality suffix positions grok-imagine-image-quality as a quality-focused option, but the supplied documentation does not quantify a quality difference. Both support 1K and 2K output and one to ten outputs; grok-imagine-image-quality accepts up to three references, while grok-imagine-image accepts up to five.
نماذج ذات صلة
grok-imagine-1.5-apisea
grok-imagine-1.5-ext
grok-imagine-1.5-edit-apiseagrok-imagine-2.0-ext
grok-imagine-image
grok-imagine-image-2.0
qwen-image-2.0
qwen-image-2.0-pro
qwen-image-3.0
ابدأ التطوير باستخدام grok-imagine-image-quality
مفتاح واحد، وادفع حسب الاستخدام بدءًا من $50؛ ولا تُحتسب الرسوم إلا على الطلبات الناجحة.