Skip to content
이 페이지는 아직 해당 언어로 제공되지 않아 영어로 표시됩니다.
xAI · Grok Imagine

grok-imagine-1.5-apisea API

Generate images from text and edit reference images with xAI’s Grok Imagine model on APISea.

이미지 생성이미지비동기 작업
모델 ID
grok-imagine-1.5-apisea

grok-imagine-1.5-apisea API 가격

모든 가격은 USD 기준입니다. 동일한 단위에 대해 APISea 요금과 공식 가격표를 비교합니다.

옵션APISea공식절약
기본값기본값$0.0165$0.02−17%

가격 단위: 이미지당.

grok-imagine-1.5-apisea이란?

grok-imagine-1.5-apisea is an xAI Grok Imagine model for text-to-image generation and reference-based image editing on APISea. Submit a multilingual text prompt to create images, or include reference image URLs to guide edits such as background or style changes. The model accepts 1–5 reference images and generates 1–10 images per request, with five supported aspect ratios selected through the size parameter.

Requests use POST /v1/images/generations and run asynchronously: submission returns a task ID for subsequent status queries. APISea provides one API key and an OpenAI-compatible base URL at https://api.apisea.ai/v1. Default pricing is $0.0165 per image, about 17% below the provider list price of $0.02 per image, with pay-as-you-go billing only for successful requests. Download completed images promptly because generated links expire after 24 hours.

grok-imagine-1.5-apisea 주요 특징

Generation and Editing

Generate images from text alone or supply reference image URLs for image editing. Prompts support multiple languages.

Multiple Reference Images

Use 1–5 reference images in an editing request. Inputs must be publicly accessible absolute HTTP or HTTPS URLs.

Shape and Count Controls

Choose square, widescreen, tall, landscape, or portrait output using the size parameter. Request 1–10 images with n.

Optional Moderation Check

Set nsfw_check to true to review prompts and input images with omni-moderation-latest before submitting the task. It defaults to false.

grok-imagine-1.5-apisea API를 호출하는 4단계

  1. 01

    API 키 발급

    APISea에 로그인하고 $50부터 충전한 다음, 콘솔에서 sk-sea 키를 생성합니다.

  2. 02

    base URL 설정

    SDK 또는 HTTP 클라이언트에서 https://api.apisea.ai/v1를 base URL로 사용합니다.

  3. 03

    요청 전송

    "model": "grok-imagine-1.5-apisea"와 아래 매개변수를 지정해 POST /v1/images/generations를 호출합니다.

  4. 04

    응답 처리

    응답에 task_id가 포함됩니다. 상태가 completed가 될 때까지 GET /v1/tasks/{task_id}를 폴링한 다음 결과 URL에서 파일을 다운로드합니다.

# model can be "grok-imagine-1.5-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-apisea",
    "prompt": "An orange cat sitting on a sunny windowsill, oil painting style",
    "size": "1:1",
    "n": 1
  }'

매개변수

매개변수유형필수 여부기본값설명
modelstring필수 여부grok-imagine-1.5-apiseaImage generation model name
nsfw_checkboolean선택 사항falseWhether to run content moderation before submitting the image task.
promptstring필수 여부—Text description for image generation or editing, supports multiple languages
image_urlsstring[]선택 사항—Reference image URL list. **Omit for text-to-image; include for image editing**.
sizestring선택 사항1:1Output image size
ninteger선택 사항1Number of images to generate

grok-imagine-1.5-apisea으로 만들 수 있는 것

Prompt-Based Image Tools

Build a text-to-image interface that lets users describe an image and select its output shape and image count.

Background Editing Workflows

Let users supply a reference image and describe a background change, then retrieve the edited output through the asynchronous task flow.

Style Exploration

Create a reference-based editing tool for trying prompt-described style changes on supplied images.

Content Format Variations

Generate square, landscape, and portrait images for different content placements using the documented size options.

더 나은 결과를 위한 팁

  • 01

    Choose the Input Mode

    Omit image_urls for text-to-image generation; include it for editing. Upload local files through POST /v1/uploads/images and use the returned URL.

  • 02

    Set Size Explicitly

    The size parameter defaults to 1:1. Supported values are 1:1, 16:9, 9:16, 3:2, and 2:3.

  • 03

    Control Image Count

    Use n to request 1–10 images; it defaults to 1. Send an unquoted integer, and choose the count with the $0.0165 per image default price in mind.

  • 04

    Poll and Save Outputs

    Store the task ID returned on submission and query task status rather than expecting images immediately. Save generated images before their links expire after 24 hours.

제한 사항 및 알아둘 점

  • Processing is asynchronous; submission returns a task ID rather than completed images.

  • Generated image links remain valid for 24 hours.

  • Each request supports at most 5 reference images and 10 output images.

grok-imagine-1.5-apisea API FAQ

How much does grok-imagine-1.5-apisea cost on APISea?

APISea Default pricing is $0.0165 per image, about 17% below the provider list price of $0.02 per image. Billing is pay-as-you-go and applies only to successful requests.

How do I call grok-imagine-1.5-apisea?

Send a Bearer-authenticated POST request to https://api.apisea.ai/v1/images/generations with model set to grok-imagine-1.5-apisea and a required prompt. The response returns a task ID for subsequent status queries.

Is grok-imagine-1.5-ext the same model?

Yes. grok-imagine-1.5-ext is an accepted alias for grok-imagine-1.5-apisea; the two are interchangeable and produce identical results.

Which parameters control image generation and editing?

Use prompt for the description, image_urls for editing references, size for the output aspect ratio, and n for image count. The optional nsfw_check parameter enables moderation before task submission.

What are the input and output limits?

Editing supports 1–5 reference images from publicly accessible absolute HTTP or HTTPS URLs, and n accepts 1–10 output images. Generated image links expire after 24 hours.

Can I use generated images commercially?

Commercial use is subject to the provider’s terms. Review the applicable xAI terms before using generated images in a commercial product or campaign.

관련 모델

모델 250개 이상 · 최소 충전 금액 $50

grok-imagine-1.5-apisea으로 개발을 시작하세요

하나의 키로 $50부터 사용한 만큼 결제하며, 성공한 요청에만 요금이 청구됩니다.