SEEAPISEEAPI
Developer CenterDocs
Get API Key
  • Getting Started
  • Authentication
  • List Model Prices
  • Create a Generation
  • Get Task Details
Image Models
Alibaba
Black Forest Labs
ByteDance
Google
Grok
Kling
MiniMax
OpenAI
SeeAPI
Video Models
Alibaba
ByteDance
Google
Grok
Kling
Lightricks
MiniMax
PixVerse
Runway
SeeAPI
Vidu
Music Models
Text Models
Templates
  • 24K Magic AI API
  • Alors on Danse API
  • Apartment Dance API
  • Christmas Dance Trend API
  • Crazy Frog AI API
  • Enzo Fernandez Celebration API
  • Goodbye 2026, Welcome 2027 API
  • Hotel Lobby AI API
  • Neon Duo Dance API
  • Rap Video API
  • Rumpelstiltskin AI Dance API

Policies

  • Data Handling & Privacy
  • Terms of Service
  • Privacy Policy
  • Commercial Use Policy
www.seeapi.com

One AI API for every leading model. Create images, videos, music, and multimodal AI assets online, or build with one unified API.

Follow SeeAPI
𝕏
Explore
  • AI Model Collections
  • AI Tool Alternatives
Developers
  • AI Models
  • API Pricing
  • AI Integrations
  • API Keys
  • Documentation
Support
  • Pricing
  • [email protected]
Legal
  • Privacy Policy
  • Refund Policy
  • Terms & Conditions

Copyright 2026 © SeeAPI. All rights reserved.

GROWCRAFT PTE. LTD.

·5 RAFFLES PLACE, #06-00, RAFFLES PLACE MRT STATION, SINGAPORE 048618

Text to ImageImage EditLong Image

Kling Image 4.0 · Text to Image

Generate 2K, 4K, or 8K images from a prompt, with standard or coherent series output. Submit a generation and retrieve its result from the unified task endpoint.

Developer API pricing

Provider: SeeAPI

USD estimate: $0.0037 / credit · Estimated equivalent, not an additional charge.

2K: 15.231 credits/gen (≈ $0.057/gen)

4K: 22.913 credits/gen (≈ $0.086/gen)

8K: 38.143 credits/gen (≈ $0.14/gen)

Request

POST/v1/generations
AuthorizationSend your API key in the Authorization header using the Bearer scheme.Authorization: Bearer ****************

Header Params

stringrequired

A stable key for this generation request. The same key makes a retry idempotent.

  • Use a new value for each new request. Reuse it only when retrying the same request body. Maximum length: 255 characters.
max length: 255
Example:
order-20260818-001

Body Params

application/json
stringrequired

The SeeAPI model ID that will generate the image.

  • Use kling-image-4-0 for this page.
Allowed:kling-image-4-0
Default:
kling-image-4-0
Example:
kling-image-4-0
stringrequired

The Endpoint ID that selects prompt-based image generation.

  • Use text-to-image. This Endpoint does not accept reference images or named subjects.
Allowed:text-to-image
Default:
text-to-image
Example:
text-to-image
stringoptional

Optional public Provider ID. If omitted, the Endpoint default Provider is used.

  • The public Provider ID is seeapi. Do not send internal routing or Provider configuration values.
Allowed:seeapi
Default:
seeapi
Example:
seeapi
objectrequired

The model input object containing the prompt and generation options.

  • The accepted fields and limits are defined by the selected Endpoint contract.

Provider parameters

SeeAPIseeapiDefault Provider
stringrequired

The text prompt that describes the image to generate.

  • Required. Length is 1–20,000 characters. Keep prompt instructions specific enough for the intended composition.
min length: 1max length: 20000
Example:
A cinematic city at night
stringoptional

Selects the output mode. default creates standard images, while series requests a coherent image set.

  • Defaults to default. In default mode request 1–9 images. In series mode request 2–10 images and provide num_output_images.
Allowed:defaultseries
Default:
default
numberoptional

The maximum number of images requested for this generation.

  • Standard mode supports 1–9 images.
  • Series mode supports 2–10 images.
  • The request is priced from the requested count together with resolution.
min: 1max: 10
Default:
1
stringoptional

Controls the output framing. auto lets the model choose the aspect ratio.

Allowed:auto1:116:99:164:33:43:22:321:9
Default:
auto
stringoptional

Selects the output resolution tier.

  • Resolution and the requested output count are billing dimensions for this Endpoint.
Allowed:2K4K8K
Default:
2K
string <uri>optional

An optional absolute HTTPS URL that receives terminal generation Webhooks.

  • The URL must be reachable by SeeAPI and should handle both generation.succeeded and generation.failed events.
max length: 2048
Example:
https://client.example.com/webhooks/seeapi

Responses

202The generation was accepted and is processing.
Bodyapplication/json
  • Use generation.id with the unified task-status endpoint. If callback_url was supplied, wait for the terminal generation Webhook as well.
objectrequired

The accepted generation record and its current lifecycle state.

stringrequired

The unique generation ID used to query status and retrieve results.

Example:
task_xxx
stringrequired

The model ID used for this generation.

Example:
kling-image-4-0
stringrequired

The Endpoint ID used for this request.

Example:
text-to-image
stringrequired

The public Provider ID that processed the request.

Allowed:seeapi
  • seeapi: SeeAPI
Example:
seeapi
stringrequired

The current lifecycle state. An accepted generation starts in processing.

Allowed:processing
Example:
processing
numberrequired

The estimated public credits for this request.

Example:
15.231
numberrequired

The public credits actually consumed. This can remain zero while the generation is processing.

Example:
0
numberrequired

The public credits returned when a request is refunded.

Example:
0
string <date-time>required

The time when the generation was created.

Example:
2026-08-18T10:00:00Z
string <date-time>required

The time when the generation was last updated.

Example:
2026-08-18T10:00:00Z
booleanrequired

Whether this response replays an earlier request with the same Idempotency-Key.

Example:
false
200The existing generation request was replayed idempotently.
Bodyapplication/json
  • Reuse the same Idempotency-Key only when retrying the same request body.
objectrequired

The accepted generation record and its current lifecycle state.

stringrequired

The unique generation ID used to query status and retrieve results.

Example:
task_xxx
stringrequired

The model ID used for this generation.

Example:
kling-image-4-0
stringrequired

The Endpoint ID used for this request.

Example:
text-to-image
stringrequired

The public Provider ID that processed the request.

Allowed:seeapi
  • seeapi: SeeAPI
Example:
seeapi
stringrequired

The current lifecycle state. An accepted generation starts in processing.

Allowed:processing
Example:
processing
numberrequired

The estimated public credits for this request.

Example:
15.231
numberrequired

The public credits actually consumed. This can remain zero while the generation is processing.

Example:
0
numberrequired

The public credits returned when a request is refunded.

Example:
0
string <date-time>required

The time when the generation was created.

Example:
2026-08-18T10:00:00Z
string <date-time>required

The time when the generation was last updated.

Example:
2026-08-18T10:00:00Z
booleanrequired

Whether this response replays an earlier request with the same Idempotency-Key.

Example:
false
400

Invalid JSON, parameters, Schema, or API Policy

401

Invalid API Key or authentication failed

402

Insufficient credits

403

The current request is not allowed

404

Model, Endpoint, or task not found

409

Idempotency conflict or the same request is still being created

413

Request body is too large

429

Too many requests

503

Service temporarily unavailable

Query Task Status

After submitting a task, use the unified query endpoint to check progress and retrieve results:

Get Task DetailsLearn how to query task status and retrieve generation results

For production workloads, prefer Webhooks for terminal updates and use task-status queries as a fallback when a callback is not available.

Related Resources

Market Overview

Explore all available models

Credits & Billing

View credit balance, plans, and billing activity

Usage

Review API usage and credit consumption

Callbacks

Manage the secret used to verify generation webhook signatures. Callback URLs are supplied when you create each generation.

Webhook flow

Callback URL per generation.

Webhook signing key
Code Examples
Request
const response = await fetch("https://api.seeapi.com/v1/generations", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Idempotency-Key": "order-20260818-001",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
  "model": "kling-image-4-0",
  "endpoint": "text-to-image",
  "provider": "seeapi",
  "input": {
    "prompt": "A cinematic city at night",
    "mode": "default",
    "num_output_images": 1,
    "aspect_ratio": "auto",
    "resolution": "2K"
  },
  "callback_url": "https://client.example.com/webhooks/seeapi"
})
});

const result = await response.json();
ResponseHTTP 202
{
  "generation": {
    "id": "task_xxx",
    "model": "kling-image-4-0",
    "endpoint": "text-to-image",
    "provider": "seeapi",
    "status": "processing",
    "estimated_credits": 15.231,
    "consumed_credits": 0,
    "refunded_credits": 0,
    "created_at": "2026-08-18T10:00:00Z",
    "updated_at": "2026-08-18T10:00:00Z"
  },
  "idempotent": false
}
PreviousGrok Imagine · Image to ImageNextKling Image 4.0 · Image Edit
Request
const response = await fetch("https://api.seeapi.com/v1/generations", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Idempotency-Key": "order-20260818-001",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
  "model": "kling-image-4-0",
  "endpoint": "text-to-image",
  "provider": "seeapi",
  "input": {
    "prompt": "A cinematic city at night",
    "mode": "default",
    "num_output_images": 1,
    "aspect_ratio": "auto",
    "resolution": "2K"
  },
  "callback_url": "https://client.example.com/webhooks/seeapi"
})
});

const result = await response.json();
ResponseHTTP 202
{
  "generation": {
    "id": "task_xxx",
    "model": "kling-image-4-0",
    "endpoint": "text-to-image",
    "provider": "seeapi",
    "status": "processing",
    "estimated_credits": 15.231,
    "consumed_credits": 0,
    "refunded_credits": 0,
    "created_at": "2026-08-18T10:00:00Z",
    "updated_at": "2026-08-18T10:00:00Z"
  },
  "idempotent": false
}