grok-imagine-1.5-ext API
Generate images from text or edit reference images with Grok Imagine on APISea.
grok-imagine-1.5-edit-apiseagrok-imagine-1.5-ext API pricing
All prices in USD. APISea rates compared with the official list price for the same unit.
| Option | APISea | Official | Save |
|---|---|---|---|
| DefaultDefault | $0.0165 | $0.022 | −25% |
Prices are per image.
What is 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 highlights
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.
How to call the grok-imagine-1.5-ext API in 4 steps
- 01
Get an API key
Sign in to APISea, top up from $50, and create an sk-sea key in the console.
- 02
Set the base URL
Use https://api.apisea.ai/v1 as the base URL in your SDK or HTTP client.
- 03
Send the request
Call POST /v1/images/generations with "model": "grok-imagine-1.5-edit-apisea" and the parameters below.
- 04
Handle the response
The response contains a task_id. Poll GET /v1/tasks/{task_id} until the status is completed, then download the result URLs.
Request examples
Documentation: 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
}'Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Required | grok-imagine-1.5-apisea | Image generation model name |
nsfw_check | boolean | Optional | false | Whether to run content moderation before submitting the image task. |
prompt | string | Required | — | Text description for image generation or editing, supports multiple languages |
image_urls | string[] | Optional | — | Reference image URL list. **Omit for text-to-image; include for image editing**. |
size | string | Optional | 1:1 | Output image size |
n | integer | Optional | 1 | Number of images to generate |
What you can build with 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.
Tips for better results
- 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.
Limits and things to know
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.
grok-imagine-1.5-ext API FAQ
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.
Related models
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
Start building with grok-imagine-1.5-ext
One key, pay as you go from $50, billed only for successful requests.