MiniMax H3 Image
Text to image · Image editing
Starting price $0.04 / image
By Kuaishou
Kling 4 Image makes up to ten images per run from a prompt or reference images, at 2K, 4K or 8K.
kling/v4/image-to-imageThis model has other modes with their own ids: kling/v4/text-to-image.
Quote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.
# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling/v4/image-to-image",
"input": {
"prompt": "Move the chair from the reference image into a quiet night market, keeping its shape, color and materials.",
"image_urls": [
"https://example.com/input.png"
]
}
}'
# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"model": "kling/v4/image-to-image", "quote_id": "QUOTE_ID", "input": {"prompt":"Move the chair from the reference image into a quiet night market, keeping its shape, color and materials.","image_urls":["https://example.com/input.png"]}}'
# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
-H "Authorization: Bearer $RAYWAKE_API_KEY"| Name | Type | Description |
|---|---|---|
promptrequired | string | Text prompt. Reference images as @Image1, @Image2, ... and elements as @Element1, @Element2, ... |
image_urlsrequired | array of image URLs | Reference images (1-10). |
elements | array of objects | Elements, referenced as @Element1, @Element2, ... (max 7). Images and elements combined must not exceed 10. |
result_type | string (enum) | Single makes num_images independent images. Series makes a connected set. |
num_images | integer | Number of independent images to generate (1-9). Only used when result_type is 'single'. |
resolution | string (enum) | Output resolution. |
aspect_ratio | string (enum) | Aspect ratio of generated images. 'auto' picks one from the input content. |
sync_mode | boolean | If `True`, the media will be returned as a data URI. |
A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.
"outputs": [
{ "type": "image", "url": "https://…", "mime_type": "image/png", "thumbnail_url": "https://…" }
]The exact charge for your input comes from a quote. How charges settle
Fields marked * are required. Review the price before generating.
Choose a single image or a series, one of eight aspect ratios, and the resolution. Image mode accepts reference images and elements for stronger control of subjects and objects.