# Giky API Full Developer Documentation This file combines the Giky API index and every public developer reference into one AI-readable document. ## Documentation Index # One AI API for Video, Image & Music Models — Giky API > Official developer reference for Giky API at https://gikyapi.com. API base: https://gikyapi.com. > Use the live catalog as the source of truth for published model IDs, operations, parameters, availability, and prices. Video, image, and music models are usable only after they appear there. Giky API uses one asynchronous task workflow across supported models: submit a task, save its ID, then poll until it succeeds or fails. Calls can incur charges. Keep API keys on your server and never guess a model ID or parameter. ## Quick Start ```bash export AI_API_BASE_URL="https://gikyapi.com" export AI_API_KEY="YOUR_API_KEY" export REQUEST_ID="YOUR_STABLE_REQUEST_ID" curl --fail-with-body -X POST "$AI_API_BASE_URL/v1/tasks" \ -H "Authorization: Bearer $AI_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $REQUEST_ID" \ -d '{"model":"seedream-5-flash","operation":"text-to-image","input":{"prompt":"A blue cup on a white table","resolution":"2K"}}' ``` HTTP 202 means the task was recorded, not completed. Save the returned `id`, wait at least five seconds between checks, and query it with the same API key: ```bash curl --fail-with-body "$AI_API_BASE_URL/v1/tasks/TASK_ID" \ -H "Authorization: Bearer $AI_API_KEY" ``` Task states are `queued`, `submitting`, `running`, `succeeded`, `failed`, and `needs_review`. Read output URLs only after `succeeded`. A timeout or HTTP 5xx does not prove submission failed: replay the identical body with the same idempotency key instead of creating a second paid task. ## Core API - [Giky API Documentation](https://gikyapi.com/docs-text/overview.md): Connect your application or AI coding tool to supported models through the REST task API or hosted MCP server. The current catalog covers image, video, music and audio capabilities as they become available. Start with model discovery, then add task tracking and billing controls. - [Giky API Quickstart: Create Your First Generation](https://gikyapi.com/docs-text/quickstart.md): Create a key, check your balance, submit an image task and retrieve the generated file. The example uses the Seedream 5 Flash configuration verified through our website. - [Authentication & API keys](https://gikyapi.com/docs-text/authentication.md): Send a Bearer key from your server. Keep your account login and application credentials separate. - [POST /v1/tasks](https://gikyapi.com/docs-text/create-task.md): Create one asynchronous image or video generation task. Send the exact public model ID, operation and supported input. - [Query tasks & retrieve results](https://gikyapi.com/docs-text/task-status.md): Poll with the same API key. Querying status never creates another generation. ## Integration, Reliability & Billing - [Giky API Python Quickstart](https://gikyapi.com/docs-text/python.md): A complete standard-library example for Python 3. Set AI_API_KEY in the environment and run from your backend. - [Giky API JavaScript Quickstart](https://gikyapi.com/docs-text/javascript.md): Use built-in fetch from a Node.js server. No browser-side key or unofficial SDK is required. - [Giky API Client Libraries](https://gikyapi.com/docs-text/client-libraries.md): Use the public OpenAPI contract to generate a typed client, or start with the maintained JavaScript and Python request examples. The task API uses ordinary HTTPS and JSON, so a package is optional. - [Webhooks & delivery](https://gikyapi.com/docs-text/webhooks.md): Receive signed task notifications at an endpoint you configure in your dashboard, or poll for results through the API. - [Errors, limits & safe retries](https://gikyapi.com/docs-text/errors.md): Separate HTTP rejection, uncertain submission and a completed task failure. They need different recovery actions. - [Pricing, balance & settlement](https://gikyapi.com/docs-text/billing.md): Generation uses your prepaid USD balance and the model’s published configuration price. Recharge checkout and generation billing are separate systems. - [Giky API MCP Server](https://gikyapi.com/docs-text/mcp.md): Connect an AI coding tool to the hosted Giky API MCP server. Discover models without a key, then use your own API key for task operations. - [Giky API Agent Integration Guide](https://gikyapi.com/docs-text/agents.md): Connect your coding assistant through the hosted MCP server, or give it the API contract when you want it to build an ordinary HTTP integration. ## Model Catalog & Categories - [Model IDs, parameters & prices](https://gikyapi.com/docs-text/models.md): Use an exact version and a priced operation. Similar model names do not imply identical parameters. - [Image generation API](https://gikyapi.com/docs-text/images.md): Compare image generation and editing models, check supported resolutions and inputs, then submit through the shared task API. - [Video generation API](https://gikyapi.com/docs-text/videos.md): Compare text-to-video and image-to-video models, check duration, resolution and audio support, then submit through the shared task API. ## Image Models - [GPT Image 2 API Documentation](https://gikyapi.com/docs-text/model-gpt-image-2.md): Generate images with GPT Image 2. Submit a request, save the task ID, then query for the finished image. - [GPT Image 2.5 Flare API Documentation](https://gikyapi.com/docs-text/model-gpt-image-2-5-flare.md): Generate images with GPT Image 2.5 Flare. Submit a request, save the task ID, then query for the finished image. - [GPT Image 2.5 Sunburst API Documentation](https://gikyapi.com/docs-text/model-gpt-image-2-5-sunburst.md): Generate images with GPT Image 2.5 Sunburst. Submit a request, save the task ID, then query for the finished image. - [Nano Banana API Documentation](https://gikyapi.com/docs-text/model-nano-banana.md): Generate images with Nano Banana. Submit a request, save the task ID, then query for the finished image. - [Nano Banana 2.1 API Documentation](https://gikyapi.com/docs-text/model-nano-banana-2-1.md): Generate images with Nano Banana 2.1. Submit a request, save the task ID, then query for the finished image. - [Nano Banana Pro API Documentation](https://gikyapi.com/docs-text/model-nano-banana-pro.md): Generate images with Nano Banana Pro. Submit a request, save the task ID, then query for the finished image. - [Qwen Image (original) API Documentation](https://gikyapi.com/docs-text/model-qwen-image.md): Generate images with Qwen Image (original). Submit a request, save the task ID, then query for the finished image. - [Seedream 5 Flash API Documentation](https://gikyapi.com/docs-text/model-seedream-5-flash.md): Generate images with Seedream 5 Flash. Submit a request, save the task ID, then query for the finished image. - [Seedream 5 Lite API Documentation](https://gikyapi.com/docs-text/model-seedream-5-lite.md): Generate images with Seedream 5 Lite. Submit a request, save the task ID, then query for the finished image. - [Seedream 5 Pro API Documentation](https://gikyapi.com/docs-text/model-seedream-5-pro.md): Generate images with Seedream 5 Pro. Submit a request, save the task ID, then query for the finished image. ## Video Models - [Grok Video 2.0 API Documentation](https://gikyapi.com/docs-text/model-grok-video-2-0.md): Generate videos with Grok Video 2.0. Submit a request, save the task ID, then query for the finished video. - [Kling 4.0 API Documentation](https://gikyapi.com/docs-text/model-kling-4-0.md): Generate videos with Kling 4.0. Submit a request, save the task ID, then query for the finished video. - [MiniMax H3 API Documentation](https://gikyapi.com/docs-text/model-minimax-h3.md): Generate videos with MiniMax H3. Submit a request, save the task ID, then query for the finished video. - [Seedance 2.0 API Documentation](https://gikyapi.com/docs-text/model-seedance-2-0.md): Generate videos with Seedance 2.0. Submit a request, save the task ID, then query for the finished video. - [Seedance 2.5 API Documentation](https://gikyapi.com/docs-text/model-seedance-2-5.md): Generate videos with Seedance 2.5. Submit a request, save the task ID, then query for the finished video. - [Veo 3.1 Standard API Documentation](https://gikyapi.com/docs-text/model-veo-3-1-standard.md): Generate videos with Veo 3.1 Standard. Submit a request, save the task ID, then query for the finished video. - [Wan 3.0 API Documentation](https://gikyapi.com/docs-text/model-wan-3-0.md): Generate videos with Wan 3.0. Submit a request, save the task ID, then query for the finished video. ## Capability Selection Guides - [Text to Image API](https://gikyapi.com/capabilities/text-to-image-api/): Compare text to image API models, output resolutions, controls and published generation prices. Integrate image generation through one task API. - [Image to Image API](https://gikyapi.com/capabilities/image-to-image-api/): Compare image to image API models for editing and transformation. Review reference limits, output settings and current configuration pricing. - [Text to Video API](https://gikyapi.com/capabilities/text-to-video-api/): Compare text to video API models, clip durations, resolutions, audio controls and published per-second pricing through one developer workflow. - [Image to Video API](https://gikyapi.com/capabilities/image-to-video-api/): Compare image to video API models including Kling, Seedance and Wan. Review duration, resolution, audio controls and published prices. ## Product Use-Case Guides - [Build an AI Video App with Multiple Model APIs](https://gikyapi.com/use-cases/ai-video-app/): Build an AI video generation app with text-to-video and image-to-video APIs, asynchronous tasks, model selection and configuration pricing. - [Build an AI Image App with Generation and Editing APIs](https://gikyapi.com/use-cases/ai-image-app/): Build an AI image app with text-to-image and image-to-image endpoints, model comparison, input validation and configuration pricing. - [Build an AI SaaS Product with Multi-Model APIs](https://gikyapi.com/use-cases/ai-saas/): Design an AI SaaS product with model routing, prepaid usage, task history and image or video generation through one API workflow. - [Create E-commerce Product Images and Videos with AI APIs](https://gikyapi.com/use-cases/ecommerce/): Build e-commerce creative workflows with image generation, reference-guided editing and image-to-video APIs using published model controls and pricing. - [Build AI Advertising Creative Workflows](https://gikyapi.com/use-cases/advertising/): Automate advertising creative variations with image and video APIs, explicit model routing, configuration pricing and review workflows. - [Connect AI Agents to Image and Video APIs](https://gikyapi.com/use-cases/ai-agent/): Give AI agents explicit tools for model discovery, generation task submission, status checks and image or video result retrieval. - [Build AI Image and Video Generation Plugins](https://gikyapi.com/use-cases/ai-plugin/): Add image and video generation to editors, IDEs and workflow tools with explicit endpoint schemas, task APIs and model selection. - [Automate Short Video Generation with AI APIs](https://gikyapi.com/use-cases/short-video/): Automate short-video generation from prompts or images with model selection, duration pricing, asynchronous tasks and publishing review. ## Machine-Readable Resources - [Full developer documentation](https://gikyapi.com/llms-full.txt): Combined developer reference for assistants that need the complete API documentation in one file. - [OpenAPI contract](https://gikyapi.com/openapi.json): Request and response schemas for the public task API. - [Live public catalog](https://gikyapi.com/api/catalog): Current model IDs, operations, parameters, prices, and generation availability. Hosted MCP is available at https://gikyapi.com/mcp. Model discovery is public; account task tools use the caller's Giky API key from the connection Authorization header. No official SDK is currently published. Provider routing is private and must not be inferred from public model names. --- # Giky API Documentation Connect your application or AI coding tool to supported models through the REST task API or hosted MCP server. The current catalog covers image, video, music and audio capabilities as they become available. Start with model discovery, then add task tracking and billing controls. ## Quick start Use the website to try a priced configuration, or call the REST API from your server. The API is asynchronous: submit once, save the task ID, then query until a result is ready. - [Run the quickstart](https://gikyapi.com/docs/quickstart/) - [Create an API key](https://gikyapi.com/dashboard/keys/) - [Browse model references](https://gikyapi.com/docs/models/) ## API origin Use this origin plus the endpoint path. There is no separate API domain required. Set AI_API_BASE_URL in your application so you can update it when your deployment domain changes. ``` https://gikyapi.com ``` ## Authentication Use a server-side API key. Keep the same Idempotency-Key and request body when retrying an uncertain submission. ``` Authorization: Bearer YOUR_API_KEY Content-Type: application/json Idempotency-Key: YOUR_STABLE_REQUEST_ID ``` ## Endpoint reference These are public customer endpoints. A signed-in browser session is not a replacement for a Bearer API key. | Method | Path | Purpose | | --- | --- | --- | | GET | /api/catalog | Public model parameters, USD prices and availability; no key | | POST | /v1/tasks | Create one generation task; requires Idempotency-Key | | GET | /v1/tasks/{id} | Query status and retrieve output URLs | | GET | /v1/tasks | List tasks belonging to the current key | | POST | /v1/tasks/{id}/cancel | Cancel a task only before upstream submission | | GET | /v1/tasks/{id}/events | Inspect callback delivery records | ## Integration resources Download the API contract and generate a typed client for ordinary HTTP tooling, or connect a compatible AI client to the hosted MCP server. Official npm and PyPI packages are not currently published; file upload and a drop-in OpenAI Images endpoint are also outside the current public contract. - [Download OpenAPI JSON](https://gikyapi.com/openapi.json) - [Client libraries and OpenAPI generation](https://gikyapi.com/docs/client-libraries/) - [Python example](https://gikyapi.com/docs/python/) - [JavaScript example](https://gikyapi.com/docs/javascript/) - [Connect through MCP](https://gikyapi.com/docs/mcp/) - [AI-readable documentation index](https://gikyapi.com/llms.txt) --- # Giky API Quickstart: Create Your First Generation Create a key, check your balance, submit an image task and retrieve the generated file. The example uses the Seedream 5 Flash configuration verified through our website. ## 1. Create a key and check funds Register and sign in. In API Keys, create a named key with a spending limit above the request price, and allow seedream-5-flash if you restrict models. An API key does not add balance. Check Balance & billing before submitting. - [Create account](https://gikyapi.com/register/) - [API keys](https://gikyapi.com/dashboard/keys/) - [Balance & billing](https://gikyapi.com/dashboard/billing/) ## 2. Confirm the current configuration Open the model page to check live availability and the current USD price. This example generates one 2K image. Do not substitute another resolution, add image inputs or batch parameters without checking that model’s contract. - [Seedream 5 Flash: price and parameters](https://gikyapi.com/models/seedream-5-flash/) ## 3. Submit once Run this in a terminal on your server with your own key. The request can incur a generation charge. Keep REQUEST_ID and the identical body if the connection fails before you receive a response. ``` export AI_API_BASE_URL="https://gikyapi.com" export AI_API_KEY="YOUR_API_KEY" # Generate once, then preserve this value for retries of this same request. export REQUEST_ID="$(python3 -c 'import uuid; print(uuid.uuid4())')" curl --fail-with-body --max-time 35 "$AI_API_BASE_URL/v1/tasks" \ -H "Authorization: Bearer $AI_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $REQUEST_ID" \ --data '{ "model": "seedream-5-flash", "operation": "text-to-image", "input": { "prompt": "A blue ceramic cup beside an orange, soft morning light", "resolution": "2K", "aspect_ratio": "1:1" } }' ``` ## 4. Save the task ID HTTP 202 means the request was recorded, not that generation succeeded. The response includes id, status, outputs, error_code and timestamps. IDs below are illustrative; use your returned ID. ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "queued", "outputs": [], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## 5. Query and save your file Set TASK_ID to the returned ID. Query every five seconds or more using the same API key. When status is succeeded, outputs contains HTTPS file URLs. Download important files to storage you control; permanent hosting is not guaranteed. ``` export TASK_ID="YOUR_RETURNED_TASK_ID" curl --fail-with-body "$AI_API_BASE_URL/v1/tasks/$TASK_ID" -H "Authorization: Bearer $AI_API_KEY" ``` ## 6. Check the charge Open Consumption history and compare the entry with the selected price. A failed task and a refund are separate records; allow settlement to complete. For an unclear outcome, retain the task ID instead of generating again. - [Consumption history](https://gikyapi.com/dashboard/usage/) - [Python submit-and-poll example](https://gikyapi.com/docs/python/) - [JavaScript submit-and-poll example](https://gikyapi.com/docs/javascript/) --- # Authentication & API keys Send a Bearer key from your server. Keep your account login and application credentials separate. ## Required headers Every /v1/tasks request requires Authorization. POST requests also require application/json. A create request additionally needs an Idempotency-Key. ``` Authorization: Bearer YOUR_API_KEY Content-Type: application/json Idempotency-Key: YOUR_STABLE_REQUEST_ID ``` ## Key limits and ownership Create a separate key for each application. Set an expiry and a spending limit in USD; use exact public model IDs for restrictions. Account funds and key limits are both required. Tasks are scoped to the submitting key: another key, even on the same account, cannot retrieve that task through this API. ## Server-side calls Do not ship keys in JavaScript bundles or mobile applications. Call from your backend. Cross-origin browser API requests are not supported. IP-restricted keys are currently rejected by the task API; do not enable an IP restriction for this integration. ## Rotate without losing work Wait for active tasks to finish and save their outputs before revoking a key. Revocation stops authentication for future status queries. If a key is compromised, revoke promptly and keep affected task IDs for support. - [Manage your API keys](https://gikyapi.com/dashboard/keys/) --- # POST /v1/tasks Create one asynchronous image or video generation task. Send the exact public model ID, operation and supported input. ## Request fields Maximum JSON request body: 64 KiB. Base64 uploads, multipart bodies and batches are not supported by this endpoint. | Field/header | Required | Meaning | | --- | --- | --- | | Authorization | Yes | Bearer API key | | Idempotency-Key | Yes | 8–128 letters, digits, dots, underscores, colons or hyphens | | model | Yes | Exact catalog slug | | operation | Yes | For example text-to-image or text-to-video | | input | Yes | Object matching the selected operation schema | | callback | No | Use a saved endpoint_id, or omit when polling | ## Example request This is a single 2K image request. Consult the live model page before submitting. ``` export AI_API_BASE_URL="https://gikyapi.com" export AI_API_KEY="YOUR_API_KEY" # Generate once, then preserve this value for retries of this same request. export REQUEST_ID="$(python3 -c 'import uuid; print(uuid.uuid4())')" curl --fail-with-body --max-time 35 "$AI_API_BASE_URL/v1/tasks" \ -H "Authorization: Bearer $AI_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $REQUEST_ID" \ --data '{ "model": "seedream-5-flash", "operation": "text-to-image", "input": { "prompt": "A blue ceramic cup beside an orange, soft morning light", "resolution": "2K", "aspect_ratio": "1:1" } }' ``` ## Idempotency and uncertain responses Persist the key and body before sending. A replay of an identical request with the same API key and idempotency key returns the existing task. Do not change the body while reusing the key. A timeout or HTTP 5xx does not prove that no task was created: replay the original request, not a new one. ## Response HTTP 202 returns the task object. Generation runs asynchronously and can still fail after acceptance. Store id immediately; use GET /v1/tasks/{id} to read outputs. The public response does not expose provider routing. --- # Query tasks & retrieve results Poll with the same API key. Querying status never creates another generation. ## Retrieve a task Replace TASK_ID with a returned UUID. Poll every five seconds or more. Use a bounded polling window, then save the ID and resume later for a long video. ``` curl --fail-with-body 'https://gikyapi.com/v1/tasks/TASK_ID' -H 'Authorization: Bearer YOUR_API_KEY' ``` ## Task states Use status rather than assuming a fixed generation time. | Status | Meaning | What your application should do | | --- | --- | --- | | queued | Recorded, waiting for processing | Continue polling | | submitting | Submission in progress | Continue polling; do not resubmit | | running | Task accepted and being tracked | Continue polling | | succeeded | Output URLs available | Read outputs and save files | | failed | Task failed or cancelled before submission | Inspect usage/refund and error_code | | needs_review | Outcome uncertain; reconciliation required | Stop automatic resubmission; keep task ID | ## Successful response outputs is an array of HTTPS strings. There is no promised percentage progress, fixed completion time, or file-expiry timestamp in this response. ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "succeeded", "outputs": [ "https://media.example/result.png" ], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:01:00Z" } ``` ## List and paginate GET /v1/tasks?limit=20 returns data and next_cursor. limit ranges from 1 to 100. Pass next_cursor as before on the next call. Only the current key’s tasks are listed. ``` curl 'https://gikyapi.com/v1/tasks?limit=20' -H 'Authorization: Bearer YOUR_API_KEY' ``` ## Cancel before submission POST /v1/tasks/{id}/cancel with JSON {}. This only cancels a task that has not been submitted. HTTP 409 means cancellation is no longer available. Cancellation returns status failed with error_code cancelled_before_submit; it does not stop a running upstream generation. --- # Giky API Python Quickstart A complete standard-library example for Python 3. Set AI_API_KEY in the environment and run from your backend. ## Run the example This creates one paid image task. The loop waits up to about ten minutes; a timeout does not cancel a task. Persist IDs outside the process in a production application. ``` import json, os, time, uuid from urllib.request import Request, urlopen base = os.environ.get("AI_API_BASE_URL", "https://gikyapi.com").rstrip("/") key = os.environ["AI_API_KEY"] request_id = str(uuid.uuid4()) payload = {"model":"seedream-5-flash","operation":"text-to-image","input":{"prompt":"A blue ceramic cup beside an orange, soft morning light","resolution":"2K","aspect_ratio":"1:1"}} headers = {"User-Agent": "AI-API-Python/1.0", "Authorization": "Bearer " + key, "Content-Type": "application/json", "Idempotency-Key": request_id} # Persist request_id + payload before sending. On an uncertain submit response, # resend that exact pair; do not generate a different request_id. print("Request ID:", request_id) req = Request(base + "/v1/tasks", data=json.dumps(payload).encode(), headers=headers) with urlopen(req, timeout=35) as response: task = json.load(response) print("Task ID:", task["id"]) for _ in range(120): time.sleep(5) req = Request(base + "/v1/tasks/" + task["id"], headers={"User-Agent": "AI-API-Python/1.0", "Authorization": "Bearer " + key}) with urlopen(req, timeout=30) as response: task = json.load(response) if task["status"] == "succeeded": print(json.dumps(task["outputs"])) break if task["status"] in ("failed", "needs_review"): raise RuntimeError("Inspect task " + task["id"] + ": " + task["status"]) else: print("Still pending. Keep this task ID and query later:", task["id"]) ``` ## Handle network errors The example deliberately stops on HTTP/network errors. Retry a temporary GET with backoff. For an uncertain POST, reuse the saved request_id and identical payload. Never wrap the whole script in an automatic retry that creates a new UUID. --- # Giky API JavaScript Quickstart Use built-in fetch from a Node.js server. No browser-side key or unofficial SDK is required. ## Run the example Set AI_API_KEY, save as generate.mjs and run node generate.mjs. This submits a paid request. Persist requestId and payload before sending in your production application. ``` // Node.js 22+. Save as generate.mjs; no SDK dependency required. import { randomUUID } from 'node:crypto'; const base = (process.env.AI_API_BASE_URL || 'https://gikyapi.com').replace(/\/$/, ''); const key = process.env.AI_API_KEY; if (!key) throw new Error('Set AI_API_KEY on your server'); const requestId = randomUUID(); const payload = { "model": "seedream-5-flash", "operation": "text-to-image", "input": { "prompt": "A blue ceramic cup beside an orange, soft morning light", "resolution": "2K", "aspect_ratio": "1:1" } }; console.log('Request ID:', requestId); // Persist with payload before submitting. async function read(path, options = {}) { const response = await fetch(base + path, { ...options, signal: AbortSignal.timeout(35000), headers: { Authorization: 'Bearer ' + key, ...options.headers } }); const data = await response.json(); if (!response.ok) throw new Error(JSON.stringify(data)); return data; } let task = await read('/v1/tasks', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Idempotency-Key': requestId }, body: JSON.stringify(payload) }); console.log('Task ID:', task.id); for (let attempt = 0; attempt < 120; attempt++) { await new Promise(resolve => setTimeout(resolve, 5000)); task = await read('/v1/tasks/' + task.id); if (task.status === 'succeeded') { console.log(task.outputs); break; } if (['failed', 'needs_review'].includes(task.status)) { throw new Error('Inspect task ' + task.id + ': ' + task.status); } } // If still running, save task.id and query it later. Never submit again just to poll. ``` ## Recovery The request timeout and the generation lifetime are different. A timeout is not a refund or cancellation. Reuse the same idempotency key for uncertain submission recovery; resume polling a known task without submitting it again. --- # Webhooks & delivery Receive signed task notifications at an endpoint you configure in your dashboard, or poll for results through the API. ## Current availability Open Dashboard → Webhooks, add a public HTTPS endpoint and save the signing secret on your server. Include callback: {endpoint_id: "YOUR_ENDPOINT_ID"} in a task request. Endpoint IDs belong to your account. Removing an endpoint stops future delivery attempts. Polling remains available without configuration. ## Contract for approved integrations Use callback: {endpoint_id} for endpoints saved in your dashboard. Existing administrator-approved integrations can still use callback: {url, secret}. URLs must be public HTTPS without credentials or fragments. Events contain id, type, task_id, status and outputs; task.succeeded and task.failed are completion events. ## Verify delivery X-Webhook-Id is the event ID. X-Webhook-Timestamp contains Unix seconds. X-Webhook-Signature is the hex HMAC-SHA256 of timestamp + "." + the exact raw body, using your callback secret. Compare in constant time, reject timestamps outside a five-minute window, and deduplicate event IDs. Never reserialize JSON before checking its signature. ## Acknowledge and reconcile Return 2xx promptly after durable receipt. Delivery can be repeated, retried up to eight attempts, and can fail independently of generation. GET /v1/tasks/{id}/events lists delivery records. Query the task if notifications are missing; do not regenerate because a webhook failed. --- # Errors, limits & safe retries Separate HTTP rejection, uncertain submission and a completed task failure. They need different recovery actions. ## HTTP errors Errors use an error object with code; origin responses also include request_id. Keep that ID, task ID and timestamp for support. Never send your API key with a support request. | HTTP/code | Meaning | Action | | --- | --- | --- | | 400 invalid_idempotency_key / invalid_or_unpriced_model_configuration | Input does not match a priced contract | Fix parameters using model docs | | 401 invalid_api_key / invalid_or_restricted_api_key | Missing, expired, disabled or restricted key | Check key settings and limits | | 403 invalid_origin | Cross-origin browser request | Call from your backend | | 404 task_not_found | No task visible to this key | Use the submitting key and exact task ID | | 409 idempotency_conflict | Same request key reused with different input | Recover the original request; use a new key only for intentionally new work | | 409 model_configuration_changed / price_configuration_changed | Saved configuration changed | Refresh catalog and review price | | 409 model_temporarily_unavailable | No eligible execution route | Wait; do not assume another model is equivalent | | 413 body_too_large | JSON exceeds 64 KiB | Reduce request size | | 415 json_required / encoding_not_supported | Invalid body encoding | Send uncompressed application/json | | 429 rate_limited | Request limit exceeded | Wait at least 60 seconds, then back off | | 502 / 503 service_unavailable | Temporary or uncertain service result | GET: retry; POST: preserve key/body | ## Rate limits The task service currently applies 60 requests per minute per API key across submit/query/list operations, and a shared platform limit. Polling consumes requests too. These limits are not a concurrency guarantee and may change. Use exponential backoff with jitter for transient reads. ## Asynchronous failure An accepted request may later fail because of funds, model restrictions or execution errors. Customer errors are intentionally sanitized; task_processing_error is not a reliable retry instruction. Check task and usage records. needs_review is never a signal to automatically duplicate the request. --- # Pricing, balance & settlement Generation uses your prepaid USD balance and the model’s published configuration price. Recharge checkout and generation billing are separate systems. ## What determines the price Read prices from the live catalog or model page. A per-second rate multiplied by the selected clip duration gives the clip price; a per-image rate gives the price of one image. Prices are stored configuration, not a fixed markup rule in your client. Do not cache an amount indefinitely. ## Reservation → settlement → refund The account service reserves funds while submitting a native generation task. Successful work settles against that reservation. An explicit failed task releases or refunds its reservation; an uncertain outcome remains under reconciliation. A client timeout alone cannot trigger a refund. ## Account funds and API key limits The account balance pays for work. A key spending limit only restricts how much that key can use; creating a key never adds money. Review both before submitting. Current balance, consumption and recharge history are available in the signed-in console. - [Balance & billing](https://gikyapi.com/dashboard/billing/) - [Consumption history](https://gikyapi.com/dashboard/usage/) ## Add balance with Dodo Payments Open Balance & billing, choose a one-time balance pack, and complete the secure Dodo checkout. Applicable taxes are shown before payment. Your account is credited after payment confirmation, not merely because the browser returns to the site. Check Payment orders if confirmation is delayed; do not pay again for the same order. There is no subscription or automatic renewal. Registration and API key creation do not add funds. ## Payment refunds Payment refunds are separate from failed-generation adjustments. Contact the payment support link on your Dodo receipt with the order ID. A confirmed refund removes the corresponding purchased API balance. Check Payment orders for refund status and Consumption history for account adjustments. No API key or password is needed for a payment enquiry. --- # Giky API MCP Server Connect an AI coding tool to the hosted Giky API MCP server. Discover models without a key, then use your own API key for task operations. ## Remote MCP endpoint Use the Streamable HTTP endpoint below. It supports current stateless MCP clients and the legacy initialization flow used by older clients. ``` https://gikyapi.com/mcp ``` ## Authentication Model discovery is public. Task listing, status, creation and cancellation require your Giky API key in the MCP connection's Authorization header. Keep the key in the client's secret or environment configuration; never paste it into a prompt or pass it as a tool argument. ``` Authorization: Bearer YOUR_API_KEY ``` ## Available tools Choose the smallest tool that matches the job. `create_task` can spend account balance and requires an explicit confirmation flag plus a stable idempotency key. | Tool | Key required | Purpose | | --- | --- | --- | | list_models | No | Search model IDs, operations, minimum published prices and availability | | get_model | No | Read exact parameters and prices for one model | | list_tasks | Yes | List tasks owned by the configured key | | get_task | Yes | Read task status and output URLs | | create_task | Yes | Create a potentially billable generation task after confirmation | | cancel_task | Yes | Cancel a task before upstream submission when possible | ## VS Code configuration Add the hosted endpoint to your user MCP configuration. Replace the placeholder through a private environment variable or the client's secret-input support; do not commit a real key. ``` { "mcpServers": { "gikyApi": { "type": "http", "url": "https://gikyapi.com/mcp", "headers": { "Authorization": "Bearer ${input:gikyApiKey}" } } }, "inputs": [ { "id": "gikyApiKey", "type": "promptString", "description": "Giky API key", "password": true } ] } ``` ## Safe generation workflow Call `get_model` immediately before a paid request, verify `generationAvailable`, match the input schema to one published price, and show that selection to the user. Call `create_task` only after explicit approval. Preserve its idempotency key and exact request body when retrying an uncertain response; once a task ID exists, use `get_task` instead of submitting again. - [Create an API key](https://gikyapi.com/dashboard/keys/) - [Billing and limits](https://gikyapi.com/docs/billing/) - [Errors and retries](https://gikyapi.com/docs/errors/) --- # Giky API Agent Integration Guide Connect your coding assistant through the hosted MCP server, or give it the API contract when you want it to build an ordinary HTTP integration. ## Connect through MCP Use the hosted Streamable HTTP endpoint to let compatible clients discover models and manage tasks. Model discovery is public. Configure your API key privately in the client for account-scoped tools; never include it in a prompt. - [MCP setup and tools](https://gikyapi.com/docs/mcp/) ## Give your assistant the documentation Use the prompt below when you want your coding assistant to write a direct REST integration instead of using MCP. It does not install a skill or configure an OpenAI-compatible endpoint. ``` Implement a server-side image generation integration using https://gikyapi.com/openapi.json and https://gikyapi.com/llms.txt. Read https://gikyapi.com/api/catalog and choose an available, priced configuration. Use AI_API_KEY from the server environment. Never put it in browser code or logs. Persist a unique Idempotency-Key and the exact request body before submitting. Submit POST /v1/tasks, then poll GET /v1/tasks/{id} with the same key. Handle errors without submitting duplicate paid work. Start with mocked HTTP tests. Ask me before making any paid request. ``` ## Configure credentials privately Set AI_API_KEY in your server environment or secret manager. Do not paste a production API key into the prompt. Give a test key a small spending limit and restrict models when appropriate. - [API key settings](https://gikyapi.com/dashboard/keys/) ## Review before running Check the model, parameters and price. Confirm the code saves task IDs, preserves request identity after timeouts, and downloads successful outputs. Use the working examples as references. - [Python example](https://gikyapi.com/docs/python/) - [JavaScript example](https://gikyapi.com/docs/javascript/) - [Errors and retries](https://gikyapi.com/docs/errors/) --- # Model IDs, parameters & prices Use an exact version and a priced operation. Similar model names do not imply identical parameters. ## Read the live catalog No authentication is required. The response has currency and models. Each model includes slug, name, kind, parameters, prices and generationAvailable. Validate availability before submitting; the server rechecks it at submission. ``` curl --fail-with-body 'https://gikyapi.com/api/catalog' ``` ## Match one priced configuration A price specifies operation, resolution, duration, unit, amount and revision. For per-second video pricing, multiply amount by duration; for a single image, use amount. A missing price is not free access. Unsupported extra fields and unpriced combinations are rejected. ## Model API references Each guide below includes the current parameter contract and a request example for a published configuration. Confirm live price and availability on the linked model page. - [GPT Image 2](https://gikyapi.com/docs/model-gpt-image-2/) - [GPT Image 2.5 Flare](https://gikyapi.com/docs/model-gpt-image-2-5-flare/) - [GPT Image 2.5 Sunburst](https://gikyapi.com/docs/model-gpt-image-2-5-sunburst/) - [Grok Video 2.0](https://gikyapi.com/docs/model-grok-video-2-0/) - [Kling 4.0](https://gikyapi.com/docs/model-kling-4-0/) - [MiniMax H3](https://gikyapi.com/docs/model-minimax-h3/) - [Nano Banana](https://gikyapi.com/docs/model-nano-banana/) - [Nano Banana 2.1](https://gikyapi.com/docs/model-nano-banana-2-1/) - [Nano Banana Pro](https://gikyapi.com/docs/model-nano-banana-pro/) - [Qwen Image (original)](https://gikyapi.com/docs/model-qwen-image/) - [Seedance 2.0](https://gikyapi.com/docs/model-seedance-2-0/) - [Seedance 2.5](https://gikyapi.com/docs/model-seedance-2-5/) - [Seedream 5 Flash](https://gikyapi.com/docs/model-seedream-5-flash/) - [Seedream 5 Lite](https://gikyapi.com/docs/model-seedream-5-lite/) - [Seedream 5 Pro](https://gikyapi.com/docs/model-seedream-5-pro/) - [Veo 3.1 Standard](https://gikyapi.com/docs/model-veo-3-1-standard/) - [Wan 3.0](https://gikyapi.com/docs/model-wan-3-0/) --- # Image generation API Compare image generation and editing models, check supported resolutions and inputs, then submit through the shared task API. ## Choose your model Open a reference below for exact model IDs, parameters and request examples. Check the live model page before submitting; a documentation entry is not a guarantee of availability. - [GPT Image 2](https://gikyapi.com/docs/model-gpt-image-2/) - [GPT Image 2.5 Flare](https://gikyapi.com/docs/model-gpt-image-2-5-flare/) - [GPT Image 2.5 Sunburst](https://gikyapi.com/docs/model-gpt-image-2-5-sunburst/) - [Nano Banana](https://gikyapi.com/docs/model-nano-banana/) - [Nano Banana 2.1](https://gikyapi.com/docs/model-nano-banana-2-1/) - [Nano Banana Pro](https://gikyapi.com/docs/model-nano-banana-pro/) - [Qwen Image (original)](https://gikyapi.com/docs/model-qwen-image/) - [Seedream 5 Flash](https://gikyapi.com/docs/model-seedream-5-flash/) - [Seedream 5 Lite](https://gikyapi.com/docs/model-seedream-5-lite/) - [Seedream 5 Pro](https://gikyapi.com/docs/model-seedream-5-pro/) ## Generate and retrieve POST /v1/tasks records a task. Save its id, then GET /v1/tasks/{id} with the same API key. Wait for succeeded and download the URLs in outputs. Poll every five seconds or more. - [Create a task](https://gikyapi.com/docs/create-task/) - [Query status and outputs](https://gikyapi.com/docs/task-status/) ## Understand the cost Check resolution and the per-image price. Do not assume image editing or multiple outputs are supported by a text-to-image configuration. - [Current prices](https://gikyapi.com/pricing/) - [Balance and settlement](https://gikyapi.com/docs/billing/) --- # Video generation API Compare text-to-video and image-to-video models, check duration, resolution and audio support, then submit through the shared task API. ## Choose your model Open a reference below for exact model IDs, parameters and request examples. Check the live model page before submitting; a documentation entry is not a guarantee of availability. - [Grok Video 2.0](https://gikyapi.com/docs/model-grok-video-2-0/) - [Kling 4.0](https://gikyapi.com/docs/model-kling-4-0/) - [MiniMax H3](https://gikyapi.com/docs/model-minimax-h3/) - [Seedance 2.0](https://gikyapi.com/docs/model-seedance-2-0/) - [Seedance 2.5](https://gikyapi.com/docs/model-seedance-2-5/) - [Veo 3.1 Standard](https://gikyapi.com/docs/model-veo-3-1-standard/) - [Wan 3.0](https://gikyapi.com/docs/model-wan-3-0/) ## Generate and retrieve POST /v1/tasks records a task. Save its id, then GET /v1/tasks/{id} with the same API key. Wait for succeeded and download the URLs in outputs. Poll every five seconds or more. - [Create a task](https://gikyapi.com/docs/create-task/) - [Query status and outputs](https://gikyapi.com/docs/task-status/) ## Understand the cost Check resolution, clip duration and the billing unit. A per-second rate must be multiplied by duration. Audio and image inputs are supported only when the published configuration explicitly allows them. - [Current prices](https://gikyapi.com/pricing/) - [Balance and settlement](https://gikyapi.com/docs/billing/) --- # Giky API Client Libraries Use the public OpenAPI contract to generate a typed client, or start with the maintained JavaScript and Python request examples. The task API uses ordinary HTTPS and JSON, so a package is optional. ## Current package status Giky API does not currently publish an official npm or PyPI package. Third-party packages are not official unless they are linked from this documentation. The examples below generate local client code from the public contract instead of asking you to trust an unverified package name. - [JavaScript example](https://gikyapi.com/docs/javascript/) - [Python example](https://gikyapi.com/docs/python/) - [MCP server for compatible agents](https://gikyapi.com/docs/mcp/) ## Generate a TypeScript client Import the generated client on your server, set the base URL to `https://gikyapi.com`, and provide the API key through the generated authentication configuration. Keep the key out of browser code. ``` npx @openapitools/openapi-generator-cli generate \ -i https://gikyapi.com/openapi.json \ -g typescript-fetch \ -o ./generated/giky-api ``` ## Generate a Python client Install the generated package from its output directory and configure the Bearer token before creating a task. ``` npx @openapitools/openapi-generator-cli generate \ -i https://gikyapi.com/openapi.json \ -g python \ -o ./generated/giky-api-python ``` ## Production checklist Apply the same request identity, authentication and recovery rules whether you use generated code or a direct HTTP client. | Requirement | What to implement | | --- | --- | | Authentication | Send the API key only from a trusted server environment. | | Duplicate protection | Add a unique `Idempotency-Key` to every task creation attempt. | | Task completion | Poll the task endpoint or validate signed webhook deliveries. | | Error handling | Retry only documented transient errors and preserve the original request ID. | | Cost control | Read the selected configuration price before submitting work. | ## Compatibility boundaries The public contract is not a drop-in OpenAI Images endpoint. Generation inputs currently use JSON and reachable media URLs rather than multipart file uploads. Use the documented task schema instead of changing only an OpenAI SDK base URL. --- # GPT Image 2.5 Flare API Documentation Generate images with GPT Image 2.5 Flare. Submit a request, save the task ID, then query for the finished image. ## Overview Model ID: gpt-image-2-5-flare. Text to Image · Image to Image. Check the current price and availability before your first request. `POST /v1/tasks` — Create a task `GET /v1/tasks/{id}` — Get the result - [Model pricing & playground](https://gikyapi.com/models/gpt-image-2-5-flare/) ## Authentication Use Authorization: Bearer YOUR_API_KEY. For task creation, also send Content-Type: application/json and a unique Idempotency-Key. The example below includes all three headers. ## Request examples Choose an operation and language. Replace YOUR_API_KEY and use a unique Idempotency-Key for each new generation; preserve it when retrying the same request. ### Text to Image ```json { "model": "gpt-image-2-5-flare", "operation": "text-to-image", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "quality": "max", "resolution": "4K" } } ``` ### Image to Image ```json { "model": "gpt-image-2-5-flare", "operation": "image-to-image", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "quality": "max", "image_urls": [ "https://example.com/reference.png" ], "resolution": "4K" } } ``` ## Request parameters The request body contains model, operation and input. Model-specific fields belong inside input; their accepted values are listed below. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | model | string | Yes | gpt-image-2-5-flare | | operation | string | Yes | text-to-image / image-to-image | | input | object | Yes | Parameters for your selected operation. | | callback | object | No | Use an endpoint_id saved in your account’s Webhooks settings. Omit this field when polling. | ## Text to Image input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Maximum 20000 characters. | | quality | string | Yes | quality. Accepted: low, medium, high, xhigh, max. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 1K, 2K, 4K. | | aspect_ratio | string | No | Aspect ratio of the generated output. Accepted: 1:1, 1:2, 2:1, 1:3, 3:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 9:21, 21:9. | | output_format | string | No | File format of the generated image. Accepted: png, jpeg, webp. | ## Image to Image input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Maximum 20000 characters. | | quality | string | Yes | quality. Accepted: low, medium, high, xhigh, max. | | image_urls | array | Yes | Public HTTPS URLs of reference images. Each URL must be accessible without signing in. Maximum 16 items. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 1K, 2K, 4K. | | aspect_ratio | string | No | Aspect ratio of the generated output. Accepted: 1:1, 1:2, 2:1, 1:3, 3:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 9:21, 21:9. | | output_format | string | No | File format of the generated image. Accepted: png, jpeg, webp. | ## Create response HTTP 202 means the task was accepted. Save id and use it to query the result. The response below is illustrative; generation has not finished at this stage. ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "queued", "outputs": [], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Query the result Replace TASK_ID with the returned id. Use the same API key and poll every five seconds or more. When status is succeeded, read the file URLs from outputs. `GET /v1/tasks/{id}` — Retrieve a task ``` curl --fail-with-body 'https://gikyapi.com/v1/tasks/TASK_ID' -H 'Authorization: Bearer YOUR_API_KEY' ``` ## Response parameters Creation and status queries return the same task structure. | Field | Type | Description | | --- | --- | --- | | id | string | Task ID used in subsequent status queries. | | status | string | queued / submitting / running / succeeded / failed / needs_review | | outputs | string[] | Generated file URLs when the task succeeds. Save files to your own storage. | | error_code | string | null | Failure code when available; null if there is no error. | | created_at | string | Time the task was created. | | updated_at | string | Time of the last task update. | ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "succeeded", "outputs": [ "https://example.com/result.png" ], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Webhooks (optional) Add an endpoint in Dashboard → Webhooks and save the signing secret on your server. Include its ID in the task request. You can also poll task status without configuring a callback. | Parameter | Type | Required with callback | Description | | --- | --- | --- | --- | | callback.endpoint_id | string | Yes | ID of a callback endpoint owned by your account. | ``` { "callback": { "endpoint_id": "YOUR_ENDPOINT_ID" } } ``` - [Configure callback endpoints](https://gikyapi.com/dashboard/webhooks/) - [Signature verification & delivery retries](https://gikyapi.com/docs/webhooks/) ## Webhook parameters Completion events use task.succeeded or task.failed. Verify the signature before processing and deduplicate by event id. A missing callback does not mean the task failed; query its status. | Field | Type | Description | | --- | --- | --- | | id | string | Unique event ID; use it to deduplicate deliveries. | | type | string | task.succeeded or task.failed | | task_id | string | The generation task ID. | | status | string | Task status at the time of the event. | | outputs | string[] | Generated file URLs for a successful task. | ## Errors & retries If a submission times out, retry with the same Idempotency-Key and identical body. If you already have a task ID, query that task instead of creating another one. | Status | What to do | | --- | --- | | 400 | Check required fields, accepted values and the priced configuration. | | 401 | Check your API key, expiry and restrictions. | | 409 | Check the error code: refresh changed configurations or resolve a reused request key. | | 429 | Wait at least 60 seconds before retrying. | | failed | Read error_code and check the consumption record. | | needs_review | Keep the task ID and stop automatic resubmission. | - [All error codes](https://gikyapi.com/docs/errors/) - [Billing & refunds](https://gikyapi.com/docs/billing/) --- # GPT Image 2.5 Sunburst API Documentation Generate images with GPT Image 2.5 Sunburst. Submit a request, save the task ID, then query for the finished image. ## Overview Model ID: gpt-image-2-5-sunburst. Text to Image · Image to Image. Check the current price and availability before your first request. `POST /v1/tasks` — Create a task `GET /v1/tasks/{id}` — Get the result - [Model pricing & playground](https://gikyapi.com/models/gpt-image-2-5-sunburst/) ## Authentication Use Authorization: Bearer YOUR_API_KEY. For task creation, also send Content-Type: application/json and a unique Idempotency-Key. The example below includes all three headers. ## Request examples Choose an operation and language. Replace YOUR_API_KEY and use a unique Idempotency-Key for each new generation; preserve it when retrying the same request. ### Text to Image ```json { "model": "gpt-image-2-5-sunburst", "operation": "text-to-image", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "quality": "max", "resolution": "4K" } } ``` ### Image to Image ```json { "model": "gpt-image-2-5-sunburst", "operation": "image-to-image", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "quality": "max", "image_urls": [ "https://example.com/reference.png" ], "resolution": "4K" } } ``` ## Request parameters The request body contains model, operation and input. Model-specific fields belong inside input; their accepted values are listed below. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | model | string | Yes | gpt-image-2-5-sunburst | | operation | string | Yes | text-to-image / image-to-image | | input | object | Yes | Parameters for your selected operation. | | callback | object | No | Use an endpoint_id saved in your account’s Webhooks settings. Omit this field when polling. | ## Text to Image input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Maximum 20000 characters. | | quality | string | Yes | quality. Accepted: low, medium, high, xhigh, max. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 1K, 2K, 4K. | | aspect_ratio | string | No | Aspect ratio of the generated output. Accepted: 1:1, 1:2, 2:1, 1:3, 3:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 9:21, 21:9. | | output_format | string | No | File format of the generated image. Accepted: png, jpeg, webp. | ## Image to Image input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Maximum 20000 characters. | | quality | string | Yes | quality. Accepted: low, medium, high, xhigh, max. | | image_urls | array | Yes | Public HTTPS URLs of reference images. Each URL must be accessible without signing in. Maximum 16 items. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 1K, 2K, 4K. | | aspect_ratio | string | No | Aspect ratio of the generated output. Accepted: 1:1, 1:2, 2:1, 1:3, 3:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 9:21, 21:9. | | output_format | string | No | File format of the generated image. Accepted: png, jpeg, webp. | ## Create response HTTP 202 means the task was accepted. Save id and use it to query the result. The response below is illustrative; generation has not finished at this stage. ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "queued", "outputs": [], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Query the result Replace TASK_ID with the returned id. Use the same API key and poll every five seconds or more. When status is succeeded, read the file URLs from outputs. `GET /v1/tasks/{id}` — Retrieve a task ``` curl --fail-with-body 'https://gikyapi.com/v1/tasks/TASK_ID' -H 'Authorization: Bearer YOUR_API_KEY' ``` ## Response parameters Creation and status queries return the same task structure. | Field | Type | Description | | --- | --- | --- | | id | string | Task ID used in subsequent status queries. | | status | string | queued / submitting / running / succeeded / failed / needs_review | | outputs | string[] | Generated file URLs when the task succeeds. Save files to your own storage. | | error_code | string | null | Failure code when available; null if there is no error. | | created_at | string | Time the task was created. | | updated_at | string | Time of the last task update. | ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "succeeded", "outputs": [ "https://example.com/result.png" ], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Webhooks (optional) Add an endpoint in Dashboard → Webhooks and save the signing secret on your server. Include its ID in the task request. You can also poll task status without configuring a callback. | Parameter | Type | Required with callback | Description | | --- | --- | --- | --- | | callback.endpoint_id | string | Yes | ID of a callback endpoint owned by your account. | ``` { "callback": { "endpoint_id": "YOUR_ENDPOINT_ID" } } ``` - [Configure callback endpoints](https://gikyapi.com/dashboard/webhooks/) - [Signature verification & delivery retries](https://gikyapi.com/docs/webhooks/) ## Webhook parameters Completion events use task.succeeded or task.failed. Verify the signature before processing and deduplicate by event id. A missing callback does not mean the task failed; query its status. | Field | Type | Description | | --- | --- | --- | | id | string | Unique event ID; use it to deduplicate deliveries. | | type | string | task.succeeded or task.failed | | task_id | string | The generation task ID. | | status | string | Task status at the time of the event. | | outputs | string[] | Generated file URLs for a successful task. | ## Errors & retries If a submission times out, retry with the same Idempotency-Key and identical body. If you already have a task ID, query that task instead of creating another one. | Status | What to do | | --- | --- | | 400 | Check required fields, accepted values and the priced configuration. | | 401 | Check your API key, expiry and restrictions. | | 409 | Check the error code: refresh changed configurations or resolve a reused request key. | | 429 | Wait at least 60 seconds before retrying. | | failed | Read error_code and check the consumption record. | | needs_review | Keep the task ID and stop automatic resubmission. | - [All error codes](https://gikyapi.com/docs/errors/) - [Billing & refunds](https://gikyapi.com/docs/billing/) --- # GPT Image 2 API Documentation Generate images with GPT Image 2. Submit a request, save the task ID, then query for the finished image. ## Overview Model ID: gpt-image-2. Text to Image · Image to Image. Check the current price and availability before your first request. `POST /v1/tasks` — Create a task `GET /v1/tasks/{id}` — Get the result - [Model pricing & playground](https://gikyapi.com/models/gpt-image-2/) ## Authentication Use Authorization: Bearer YOUR_API_KEY. For task creation, also send Content-Type: application/json and a unique Idempotency-Key. The example below includes all three headers. ## Request examples Choose an operation and language. Replace YOUR_API_KEY and use a unique Idempotency-Key for each new generation; preserve it when retrying the same request. ### Text to Image ```json { "model": "gpt-image-2", "operation": "text-to-image", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "quality": "high", "resolution": "4K" } } ``` ### Image to Image ```json { "model": "gpt-image-2", "operation": "image-to-image", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "quality": "high", "image_urls": [ "https://example.com/reference.png" ], "resolution": "4K" } } ``` ## Request parameters The request body contains model, operation and input. Model-specific fields belong inside input; their accepted values are listed below. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | model | string | Yes | gpt-image-2 | | operation | string | Yes | text-to-image / image-to-image | | input | object | Yes | Parameters for your selected operation. | | callback | object | No | Use an endpoint_id saved in your account’s Webhooks settings. Omit this field when polling. | ## Text to Image input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Maximum 20000 characters. | | quality | string | Yes | quality. Accepted: low, medium, high. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 1K, 2K, 4K. | | aspect_ratio | string | No | Aspect ratio of the generated output. Accepted: 1:1, 1:2, 2:1, 1:3, 3:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 9:21, 21:9. | | output_format | string | No | File format of the generated image. Accepted: png, jpeg, webp. | ## Image to Image input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Maximum 20000 characters. | | quality | string | Yes | quality. Accepted: low, medium, high. | | image_urls | array | Yes | Public HTTPS URLs of reference images. Each URL must be accessible without signing in. Maximum 16 items. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 1K, 2K, 4K. | | aspect_ratio | string | No | Aspect ratio of the generated output. Accepted: 1:1, 1:2, 2:1, 1:3, 3:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 9:21, 21:9. | | output_format | string | No | File format of the generated image. Accepted: png, jpeg, webp. | ## Create response HTTP 202 means the task was accepted. Save id and use it to query the result. The response below is illustrative; generation has not finished at this stage. ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "queued", "outputs": [], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Query the result Replace TASK_ID with the returned id. Use the same API key and poll every five seconds or more. When status is succeeded, read the file URLs from outputs. `GET /v1/tasks/{id}` — Retrieve a task ``` curl --fail-with-body 'https://gikyapi.com/v1/tasks/TASK_ID' -H 'Authorization: Bearer YOUR_API_KEY' ``` ## Response parameters Creation and status queries return the same task structure. | Field | Type | Description | | --- | --- | --- | | id | string | Task ID used in subsequent status queries. | | status | string | queued / submitting / running / succeeded / failed / needs_review | | outputs | string[] | Generated file URLs when the task succeeds. Save files to your own storage. | | error_code | string | null | Failure code when available; null if there is no error. | | created_at | string | Time the task was created. | | updated_at | string | Time of the last task update. | ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "succeeded", "outputs": [ "https://example.com/result.png" ], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Webhooks (optional) Add an endpoint in Dashboard → Webhooks and save the signing secret on your server. Include its ID in the task request. You can also poll task status without configuring a callback. | Parameter | Type | Required with callback | Description | | --- | --- | --- | --- | | callback.endpoint_id | string | Yes | ID of a callback endpoint owned by your account. | ``` { "callback": { "endpoint_id": "YOUR_ENDPOINT_ID" } } ``` - [Configure callback endpoints](https://gikyapi.com/dashboard/webhooks/) - [Signature verification & delivery retries](https://gikyapi.com/docs/webhooks/) ## Webhook parameters Completion events use task.succeeded or task.failed. Verify the signature before processing and deduplicate by event id. A missing callback does not mean the task failed; query its status. | Field | Type | Description | | --- | --- | --- | | id | string | Unique event ID; use it to deduplicate deliveries. | | type | string | task.succeeded or task.failed | | task_id | string | The generation task ID. | | status | string | Task status at the time of the event. | | outputs | string[] | Generated file URLs for a successful task. | ## Errors & retries If a submission times out, retry with the same Idempotency-Key and identical body. If you already have a task ID, query that task instead of creating another one. | Status | What to do | | --- | --- | | 400 | Check required fields, accepted values and the priced configuration. | | 401 | Check your API key, expiry and restrictions. | | 409 | Check the error code: refresh changed configurations or resolve a reused request key. | | 429 | Wait at least 60 seconds before retrying. | | failed | Read error_code and check the consumption record. | | needs_review | Keep the task ID and stop automatic resubmission. | - [All error codes](https://gikyapi.com/docs/errors/) - [Billing & refunds](https://gikyapi.com/docs/billing/) --- # Grok Video 2.0 API Documentation Generate videos with Grok Video 2.0. Submit a request, save the task ID, then query for the finished video. ## Overview Model ID: grok-video-2-0. Text to Video. Check the current price and availability before your first request. `POST /v1/tasks` — Create a task `GET /v1/tasks/{id}` — Get the result - [Model pricing & playground](https://gikyapi.com/models/grok-video-2-0/) ## Authentication Use Authorization: Bearer YOUR_API_KEY. For task creation, also send Content-Type: application/json and a unique Idempotency-Key. The example below includes all three headers. ## Request examples A priced configuration is not available for this model yet. Check the model page for availability before integrating. ## Request parameters The request body contains model, operation and input. Model-specific fields belong inside input; their accepted values are listed below. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | model | string | Yes | grok-video-2-0 | | operation | string | Yes | text-to-video | | input | object | Yes | Parameters for your selected operation. | | callback | object | No | Use an endpoint_id saved in your account’s Webhooks settings. Omit this field when polling. | ## Text to Video input No published price for this operation yet. The fields below describe its schema; check availability before calling. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Minimum 2 characters. Maximum 1000 characters. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 720p. | | duration_seconds | number | Yes | Length of the generated video, in seconds. Accepted: 5. | ## Create response HTTP 202 means the task was accepted. Save id and use it to query the result. The response below is illustrative; generation has not finished at this stage. ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "queued", "outputs": [], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Query the result Replace TASK_ID with the returned id. Use the same API key and poll every five seconds or more. When status is succeeded, read the file URLs from outputs. `GET /v1/tasks/{id}` — Retrieve a task ``` curl --fail-with-body 'https://gikyapi.com/v1/tasks/TASK_ID' -H 'Authorization: Bearer YOUR_API_KEY' ``` ## Response parameters Creation and status queries return the same task structure. | Field | Type | Description | | --- | --- | --- | | id | string | Task ID used in subsequent status queries. | | status | string | queued / submitting / running / succeeded / failed / needs_review | | outputs | string[] | Generated file URLs when the task succeeds. Save files to your own storage. | | error_code | string | null | Failure code when available; null if there is no error. | | created_at | string | Time the task was created. | | updated_at | string | Time of the last task update. | ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "succeeded", "outputs": [ "https://example.com/result.mp4" ], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Webhooks (optional) Add an endpoint in Dashboard → Webhooks and save the signing secret on your server. Include its ID in the task request. You can also poll task status without configuring a callback. | Parameter | Type | Required with callback | Description | | --- | --- | --- | --- | | callback.endpoint_id | string | Yes | ID of a callback endpoint owned by your account. | ``` { "callback": { "endpoint_id": "YOUR_ENDPOINT_ID" } } ``` - [Configure callback endpoints](https://gikyapi.com/dashboard/webhooks/) - [Signature verification & delivery retries](https://gikyapi.com/docs/webhooks/) ## Webhook parameters Completion events use task.succeeded or task.failed. Verify the signature before processing and deduplicate by event id. A missing callback does not mean the task failed; query its status. | Field | Type | Description | | --- | --- | --- | | id | string | Unique event ID; use it to deduplicate deliveries. | | type | string | task.succeeded or task.failed | | task_id | string | The generation task ID. | | status | string | Task status at the time of the event. | | outputs | string[] | Generated file URLs for a successful task. | ## Errors & retries If a submission times out, retry with the same Idempotency-Key and identical body. If you already have a task ID, query that task instead of creating another one. | Status | What to do | | --- | --- | | 400 | Check required fields, accepted values and the priced configuration. | | 401 | Check your API key, expiry and restrictions. | | 409 | Check the error code: refresh changed configurations or resolve a reused request key. | | 429 | Wait at least 60 seconds before retrying. | | failed | Read error_code and check the consumption record. | | needs_review | Keep the task ID and stop automatic resubmission. | - [All error codes](https://gikyapi.com/docs/errors/) - [Billing & refunds](https://gikyapi.com/docs/billing/) --- # Kling 4.0 API Documentation Generate videos with Kling 4.0. Submit a request, save the task ID, then query for the finished video. ## Overview Model ID: kling-4-0. Text to Video · Image to Video. Check the current price and availability before your first request. `POST /v1/tasks` — Create a task `GET /v1/tasks/{id}` — Get the result - [Model pricing & playground](https://gikyapi.com/models/kling-4-0/) ## Authentication Use Authorization: Bearer YOUR_API_KEY. For task creation, also send Content-Type: application/json and a unique Idempotency-Key. The example below includes all three headers. ## Request examples Choose an operation and language. Replace YOUR_API_KEY and use a unique Idempotency-Key for each new generation; preserve it when retrying the same request. ### Text to Video ```json { "model": "kling-4-0", "operation": "text-to-video", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "resolution": "1080p", "duration_seconds": 3 } } ``` ### Image to Video ```json { "model": "kling-4-0", "operation": "image-to-video", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "image_urls": [ "https://example.com/reference.png" ], "resolution": "1080p", "duration_seconds": 3 } } ``` ## Request parameters The request body contains model, operation and input. Model-specific fields belong inside input; their accepted values are listed below. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | model | string | Yes | kling-4-0 | | operation | string | Yes | text-to-video / image-to-video | | input | object | Yes | Parameters for your selected operation. | | callback | object | No | Use an endpoint_id saved in your account’s Webhooks settings. Omit this field when polling. | ## Text to Video input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Minimum 2 characters. Maximum 1000 characters. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 720p, 1080p. | | aspect_ratio | string | No | Aspect ratio of the generated output. Accepted: 16:9, 9:16, 1:1, 21:9. | | duration_seconds | integer | Yes | Length of the generated video, in seconds. Accepted: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30. | ## Image to Video input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Minimum 2 characters. Maximum 1000 characters. | | image_urls | array | Yes | Public HTTPS URLs of reference images. Each URL must be accessible without signing in. Maximum 1 items. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 720p, 1080p. | | aspect_ratio | string | No | Aspect ratio of the generated output. Accepted: 16:9, 9:16, 1:1, 21:9. | | keyframe_urls | array | No | keyframe urls. Maximum 8 items. | | last_image_urls | array | No | last image urls. Maximum 1 items. | | duration_seconds | integer | Yes | Length of the generated video, in seconds. Accepted: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30. | ## Create response HTTP 202 means the task was accepted. Save id and use it to query the result. The response below is illustrative; generation has not finished at this stage. ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "queued", "outputs": [], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Query the result Replace TASK_ID with the returned id. Use the same API key and poll every five seconds or more. When status is succeeded, read the file URLs from outputs. `GET /v1/tasks/{id}` — Retrieve a task ``` curl --fail-with-body 'https://gikyapi.com/v1/tasks/TASK_ID' -H 'Authorization: Bearer YOUR_API_KEY' ``` ## Response parameters Creation and status queries return the same task structure. | Field | Type | Description | | --- | --- | --- | | id | string | Task ID used in subsequent status queries. | | status | string | queued / submitting / running / succeeded / failed / needs_review | | outputs | string[] | Generated file URLs when the task succeeds. Save files to your own storage. | | error_code | string | null | Failure code when available; null if there is no error. | | created_at | string | Time the task was created. | | updated_at | string | Time of the last task update. | ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "succeeded", "outputs": [ "https://example.com/result.mp4" ], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Webhooks (optional) Add an endpoint in Dashboard → Webhooks and save the signing secret on your server. Include its ID in the task request. You can also poll task status without configuring a callback. | Parameter | Type | Required with callback | Description | | --- | --- | --- | --- | | callback.endpoint_id | string | Yes | ID of a callback endpoint owned by your account. | ``` { "callback": { "endpoint_id": "YOUR_ENDPOINT_ID" } } ``` - [Configure callback endpoints](https://gikyapi.com/dashboard/webhooks/) - [Signature verification & delivery retries](https://gikyapi.com/docs/webhooks/) ## Webhook parameters Completion events use task.succeeded or task.failed. Verify the signature before processing and deduplicate by event id. A missing callback does not mean the task failed; query its status. | Field | Type | Description | | --- | --- | --- | | id | string | Unique event ID; use it to deduplicate deliveries. | | type | string | task.succeeded or task.failed | | task_id | string | The generation task ID. | | status | string | Task status at the time of the event. | | outputs | string[] | Generated file URLs for a successful task. | ## Errors & retries If a submission times out, retry with the same Idempotency-Key and identical body. If you already have a task ID, query that task instead of creating another one. | Status | What to do | | --- | --- | | 400 | Check required fields, accepted values and the priced configuration. | | 401 | Check your API key, expiry and restrictions. | | 409 | Check the error code: refresh changed configurations or resolve a reused request key. | | 429 | Wait at least 60 seconds before retrying. | | failed | Read error_code and check the consumption record. | | needs_review | Keep the task ID and stop automatic resubmission. | - [All error codes](https://gikyapi.com/docs/errors/) - [Billing & refunds](https://gikyapi.com/docs/billing/) --- # MiniMax H3 API Documentation Generate videos with MiniMax H3. Submit a request, save the task ID, then query for the finished video. ## Overview Model ID: minimax-h3. Text to Video · Image to Video. Check the current price and availability before your first request. `POST /v1/tasks` — Create a task `GET /v1/tasks/{id}` — Get the result - [Model pricing & playground](https://gikyapi.com/models/minimax-h3/) ## Authentication Use Authorization: Bearer YOUR_API_KEY. For task creation, also send Content-Type: application/json and a unique Idempotency-Key. The example below includes all three headers. ## Request examples Choose an operation and language. Replace YOUR_API_KEY and use a unique Idempotency-Key for each new generation; preserve it when retrying the same request. ### Text to Video ```json { "model": "minimax-h3", "operation": "text-to-video", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "resolution": "2K", "aspect_ratio": "21:9", "duration_seconds": 4 } } ``` ### Image to Video ```json { "model": "minimax-h3", "operation": "image-to-video", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "image_urls": [ "https://example.com/reference.png" ], "resolution": "2K", "duration_seconds": 4 } } ``` ## Request parameters The request body contains model, operation and input. Model-specific fields belong inside input; their accepted values are listed below. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | model | string | Yes | minimax-h3 | | operation | string | Yes | text-to-video / image-to-video | | input | object | Yes | Parameters for your selected operation. | | callback | object | No | Use an endpoint_id saved in your account’s Webhooks settings. Omit this field when polling. | ## Text to Video input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Minimum 1 characters. Maximum 7000 characters. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 768p, 2K. | | aspect_ratio | string | Yes | Aspect ratio of the generated output. Accepted: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16. | | duration_seconds | integer | Yes | Length of the generated video, in seconds. Accepted: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15. | ## Image to Video input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Minimum 1 characters. Maximum 7000 characters. | | image_urls | array | Yes | Public HTTPS URLs of reference images. Each URL must be accessible without signing in. Maximum 1 items. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 768p, 2K. | | last_image_urls | array | No | last image urls. Maximum 1 items. | | duration_seconds | integer | Yes | Length of the generated video, in seconds. Accepted: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15. | ## Create response HTTP 202 means the task was accepted. Save id and use it to query the result. The response below is illustrative; generation has not finished at this stage. ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "queued", "outputs": [], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Query the result Replace TASK_ID with the returned id. Use the same API key and poll every five seconds or more. When status is succeeded, read the file URLs from outputs. `GET /v1/tasks/{id}` — Retrieve a task ``` curl --fail-with-body 'https://gikyapi.com/v1/tasks/TASK_ID' -H 'Authorization: Bearer YOUR_API_KEY' ``` ## Response parameters Creation and status queries return the same task structure. | Field | Type | Description | | --- | --- | --- | | id | string | Task ID used in subsequent status queries. | | status | string | queued / submitting / running / succeeded / failed / needs_review | | outputs | string[] | Generated file URLs when the task succeeds. Save files to your own storage. | | error_code | string | null | Failure code when available; null if there is no error. | | created_at | string | Time the task was created. | | updated_at | string | Time of the last task update. | ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "succeeded", "outputs": [ "https://example.com/result.mp4" ], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Webhooks (optional) Add an endpoint in Dashboard → Webhooks and save the signing secret on your server. Include its ID in the task request. You can also poll task status without configuring a callback. | Parameter | Type | Required with callback | Description | | --- | --- | --- | --- | | callback.endpoint_id | string | Yes | ID of a callback endpoint owned by your account. | ``` { "callback": { "endpoint_id": "YOUR_ENDPOINT_ID" } } ``` - [Configure callback endpoints](https://gikyapi.com/dashboard/webhooks/) - [Signature verification & delivery retries](https://gikyapi.com/docs/webhooks/) ## Webhook parameters Completion events use task.succeeded or task.failed. Verify the signature before processing and deduplicate by event id. A missing callback does not mean the task failed; query its status. | Field | Type | Description | | --- | --- | --- | | id | string | Unique event ID; use it to deduplicate deliveries. | | type | string | task.succeeded or task.failed | | task_id | string | The generation task ID. | | status | string | Task status at the time of the event. | | outputs | string[] | Generated file URLs for a successful task. | ## Errors & retries If a submission times out, retry with the same Idempotency-Key and identical body. If you already have a task ID, query that task instead of creating another one. | Status | What to do | | --- | --- | | 400 | Check required fields, accepted values and the priced configuration. | | 401 | Check your API key, expiry and restrictions. | | 409 | Check the error code: refresh changed configurations or resolve a reused request key. | | 429 | Wait at least 60 seconds before retrying. | | failed | Read error_code and check the consumption record. | | needs_review | Keep the task ID and stop automatic resubmission. | - [All error codes](https://gikyapi.com/docs/errors/) - [Billing & refunds](https://gikyapi.com/docs/billing/) --- # Nano Banana 2.1 API Documentation Generate images with Nano Banana 2.1. Submit a request, save the task ID, then query for the finished image. ## Overview Model ID: nano-banana-2-1. Text to Image · Image to Image. Check the current price and availability before your first request. `POST /v1/tasks` — Create a task `GET /v1/tasks/{id}` — Get the result - [Model pricing & playground](https://gikyapi.com/models/nano-banana-2-1/) ## Authentication Use Authorization: Bearer YOUR_API_KEY. For task creation, also send Content-Type: application/json and a unique Idempotency-Key. The example below includes all three headers. ## Request examples Choose an operation and language. Replace YOUR_API_KEY and use a unique Idempotency-Key for each new generation; preserve it when retrying the same request. ### Text to Image ```json { "model": "nano-banana-2-1", "operation": "text-to-image", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "resolution": "4K" } } ``` ### Image to Image ```json { "model": "nano-banana-2-1", "operation": "image-to-image", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "image_urls": [ "https://example.com/reference.png" ], "resolution": "4K" } } ``` ## Request parameters The request body contains model, operation and input. Model-specific fields belong inside input; their accepted values are listed below. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | model | string | Yes | nano-banana-2-1 | | operation | string | Yes | text-to-image / image-to-image | | input | object | Yes | Parameters for your selected operation. | | callback | object | No | Use an endpoint_id saved in your account’s Webhooks settings. Omit this field when polling. | ## Text to Image input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Maximum 20000 characters. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 1K, 2K, 4K. | | aspect_ratio | string | No | Aspect ratio of the generated output. Accepted: 1:1, 2:3, 3:2, 1:4, 4:1, 3:4, 4:3, 4:5, 5:4, 1:8, 8:1, 9:16, 16:9, 21:9, auto. | | output_format | string | No | File format of the generated image. Accepted: png, jpg. | ## Image to Image input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Maximum 20000 characters. | | image_urls | array | Yes | Public HTTPS URLs of reference images. Each URL must be accessible without signing in. Maximum 10 items. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 1K, 2K, 4K. | | aspect_ratio | string | No | Aspect ratio of the generated output. Accepted: 1:1, 2:3, 3:2, 1:4, 4:1, 3:4, 4:3, 4:5, 5:4, 1:8, 8:1, 9:16, 16:9, 21:9, auto. | | output_format | string | No | File format of the generated image. Accepted: png, jpg. | ## Create response HTTP 202 means the task was accepted. Save id and use it to query the result. The response below is illustrative; generation has not finished at this stage. ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "queued", "outputs": [], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Query the result Replace TASK_ID with the returned id. Use the same API key and poll every five seconds or more. When status is succeeded, read the file URLs from outputs. `GET /v1/tasks/{id}` — Retrieve a task ``` curl --fail-with-body 'https://gikyapi.com/v1/tasks/TASK_ID' -H 'Authorization: Bearer YOUR_API_KEY' ``` ## Response parameters Creation and status queries return the same task structure. | Field | Type | Description | | --- | --- | --- | | id | string | Task ID used in subsequent status queries. | | status | string | queued / submitting / running / succeeded / failed / needs_review | | outputs | string[] | Generated file URLs when the task succeeds. Save files to your own storage. | | error_code | string | null | Failure code when available; null if there is no error. | | created_at | string | Time the task was created. | | updated_at | string | Time of the last task update. | ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "succeeded", "outputs": [ "https://example.com/result.png" ], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Webhooks (optional) Add an endpoint in Dashboard → Webhooks and save the signing secret on your server. Include its ID in the task request. You can also poll task status without configuring a callback. | Parameter | Type | Required with callback | Description | | --- | --- | --- | --- | | callback.endpoint_id | string | Yes | ID of a callback endpoint owned by your account. | ``` { "callback": { "endpoint_id": "YOUR_ENDPOINT_ID" } } ``` - [Configure callback endpoints](https://gikyapi.com/dashboard/webhooks/) - [Signature verification & delivery retries](https://gikyapi.com/docs/webhooks/) ## Webhook parameters Completion events use task.succeeded or task.failed. Verify the signature before processing and deduplicate by event id. A missing callback does not mean the task failed; query its status. | Field | Type | Description | | --- | --- | --- | | id | string | Unique event ID; use it to deduplicate deliveries. | | type | string | task.succeeded or task.failed | | task_id | string | The generation task ID. | | status | string | Task status at the time of the event. | | outputs | string[] | Generated file URLs for a successful task. | ## Errors & retries If a submission times out, retry with the same Idempotency-Key and identical body. If you already have a task ID, query that task instead of creating another one. | Status | What to do | | --- | --- | | 400 | Check required fields, accepted values and the priced configuration. | | 401 | Check your API key, expiry and restrictions. | | 409 | Check the error code: refresh changed configurations or resolve a reused request key. | | 429 | Wait at least 60 seconds before retrying. | | failed | Read error_code and check the consumption record. | | needs_review | Keep the task ID and stop automatic resubmission. | - [All error codes](https://gikyapi.com/docs/errors/) - [Billing & refunds](https://gikyapi.com/docs/billing/) --- # Nano Banana Pro API Documentation Generate images with Nano Banana Pro. Submit a request, save the task ID, then query for the finished image. ## Overview Model ID: nano-banana-pro. Text to Image · Image to Image. Check the current price and availability before your first request. `POST /v1/tasks` — Create a task `GET /v1/tasks/{id}` — Get the result - [Model pricing & playground](https://gikyapi.com/models/nano-banana-pro/) ## Authentication Use Authorization: Bearer YOUR_API_KEY. For task creation, also send Content-Type: application/json and a unique Idempotency-Key. The example below includes all three headers. ## Request examples Choose an operation and language. Replace YOUR_API_KEY and use a unique Idempotency-Key for each new generation; preserve it when retrying the same request. ### Text to Image ```json { "model": "nano-banana-pro", "operation": "text-to-image", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "resolution": "4K" } } ``` ### Image to Image ```json { "model": "nano-banana-pro", "operation": "image-to-image", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "image_urls": [ "https://example.com/reference.png" ], "resolution": "4K" } } ``` ## Request parameters The request body contains model, operation and input. Model-specific fields belong inside input; their accepted values are listed below. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | model | string | Yes | nano-banana-pro | | operation | string | Yes | text-to-image / image-to-image | | input | object | Yes | Parameters for your selected operation. | | callback | object | No | Use an endpoint_id saved in your account’s Webhooks settings. Omit this field when polling. | ## Text to Image input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Maximum 20000 characters. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 1K, 2K, 4K. | | aspect_ratio | string | No | Aspect ratio of the generated output. Accepted: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9, auto. | | output_format | string | No | File format of the generated image. Accepted: png, jpg. | ## Image to Image input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Maximum 20000 characters. | | image_urls | array | Yes | Public HTTPS URLs of reference images. Each URL must be accessible without signing in. Maximum 8 items. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 1K, 2K, 4K. | | aspect_ratio | string | No | Aspect ratio of the generated output. Accepted: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9, auto. | | output_format | string | No | File format of the generated image. Accepted: png, jpg. | ## Create response HTTP 202 means the task was accepted. Save id and use it to query the result. The response below is illustrative; generation has not finished at this stage. ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "queued", "outputs": [], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Query the result Replace TASK_ID with the returned id. Use the same API key and poll every five seconds or more. When status is succeeded, read the file URLs from outputs. `GET /v1/tasks/{id}` — Retrieve a task ``` curl --fail-with-body 'https://gikyapi.com/v1/tasks/TASK_ID' -H 'Authorization: Bearer YOUR_API_KEY' ``` ## Response parameters Creation and status queries return the same task structure. | Field | Type | Description | | --- | --- | --- | | id | string | Task ID used in subsequent status queries. | | status | string | queued / submitting / running / succeeded / failed / needs_review | | outputs | string[] | Generated file URLs when the task succeeds. Save files to your own storage. | | error_code | string | null | Failure code when available; null if there is no error. | | created_at | string | Time the task was created. | | updated_at | string | Time of the last task update. | ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "succeeded", "outputs": [ "https://example.com/result.png" ], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Webhooks (optional) Add an endpoint in Dashboard → Webhooks and save the signing secret on your server. Include its ID in the task request. You can also poll task status without configuring a callback. | Parameter | Type | Required with callback | Description | | --- | --- | --- | --- | | callback.endpoint_id | string | Yes | ID of a callback endpoint owned by your account. | ``` { "callback": { "endpoint_id": "YOUR_ENDPOINT_ID" } } ``` - [Configure callback endpoints](https://gikyapi.com/dashboard/webhooks/) - [Signature verification & delivery retries](https://gikyapi.com/docs/webhooks/) ## Webhook parameters Completion events use task.succeeded or task.failed. Verify the signature before processing and deduplicate by event id. A missing callback does not mean the task failed; query its status. | Field | Type | Description | | --- | --- | --- | | id | string | Unique event ID; use it to deduplicate deliveries. | | type | string | task.succeeded or task.failed | | task_id | string | The generation task ID. | | status | string | Task status at the time of the event. | | outputs | string[] | Generated file URLs for a successful task. | ## Errors & retries If a submission times out, retry with the same Idempotency-Key and identical body. If you already have a task ID, query that task instead of creating another one. | Status | What to do | | --- | --- | | 400 | Check required fields, accepted values and the priced configuration. | | 401 | Check your API key, expiry and restrictions. | | 409 | Check the error code: refresh changed configurations or resolve a reused request key. | | 429 | Wait at least 60 seconds before retrying. | | failed | Read error_code and check the consumption record. | | needs_review | Keep the task ID and stop automatic resubmission. | - [All error codes](https://gikyapi.com/docs/errors/) - [Billing & refunds](https://gikyapi.com/docs/billing/) --- # Nano Banana API Documentation Generate images with Nano Banana. Submit a request, save the task ID, then query for the finished image. ## Overview Model ID: nano-banana. Text to Image · Image to Image. Check the current price and availability before your first request. `POST /v1/tasks` — Create a task `GET /v1/tasks/{id}` — Get the result - [Model pricing & playground](https://gikyapi.com/models/nano-banana/) ## Authentication Use Authorization: Bearer YOUR_API_KEY. For task creation, also send Content-Type: application/json and a unique Idempotency-Key. The example below includes all three headers. ## Request examples Choose an operation and language. Replace YOUR_API_KEY and use a unique Idempotency-Key for each new generation; preserve it when retrying the same request. ### Text to Image ```json { "model": "nano-banana", "operation": "text-to-image", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light" } } ``` ### Image to Image ```json { "model": "nano-banana", "operation": "image-to-image", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "image_urls": [ "https://example.com/reference.png" ] } } ``` ## Request parameters The request body contains model, operation and input. Model-specific fields belong inside input; their accepted values are listed below. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | model | string | Yes | nano-banana | | operation | string | Yes | text-to-image / image-to-image | | input | object | Yes | Parameters for your selected operation. | | callback | object | No | Use an endpoint_id saved in your account’s Webhooks settings. Omit this field when polling. | ## Text to Image input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Maximum 20000 characters. | | aspect_ratio | string | No | Aspect ratio of the generated output. Accepted: 1:1, 9:16, 16:9, 3:4, 4:3, 3:2, 2:3, 5:4, 4:5, 21:9, auto. | | output_format | string | No | File format of the generated image. Accepted: png, jpeg. | ## Image to Image input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Maximum 20000 characters. | | image_urls | array | Yes | Public HTTPS URLs of reference images. Each URL must be accessible without signing in. Maximum 10 items. | | aspect_ratio | string | No | Aspect ratio of the generated output. Accepted: 1:1, 9:16, 16:9, 3:4, 4:3, 3:2, 2:3, 5:4, 4:5, 21:9, auto. | | output_format | string | No | File format of the generated image. Accepted: png, jpeg. | ## Create response HTTP 202 means the task was accepted. Save id and use it to query the result. The response below is illustrative; generation has not finished at this stage. ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "queued", "outputs": [], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Query the result Replace TASK_ID with the returned id. Use the same API key and poll every five seconds or more. When status is succeeded, read the file URLs from outputs. `GET /v1/tasks/{id}` — Retrieve a task ``` curl --fail-with-body 'https://gikyapi.com/v1/tasks/TASK_ID' -H 'Authorization: Bearer YOUR_API_KEY' ``` ## Response parameters Creation and status queries return the same task structure. | Field | Type | Description | | --- | --- | --- | | id | string | Task ID used in subsequent status queries. | | status | string | queued / submitting / running / succeeded / failed / needs_review | | outputs | string[] | Generated file URLs when the task succeeds. Save files to your own storage. | | error_code | string | null | Failure code when available; null if there is no error. | | created_at | string | Time the task was created. | | updated_at | string | Time of the last task update. | ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "succeeded", "outputs": [ "https://example.com/result.png" ], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Webhooks (optional) Add an endpoint in Dashboard → Webhooks and save the signing secret on your server. Include its ID in the task request. You can also poll task status without configuring a callback. | Parameter | Type | Required with callback | Description | | --- | --- | --- | --- | | callback.endpoint_id | string | Yes | ID of a callback endpoint owned by your account. | ``` { "callback": { "endpoint_id": "YOUR_ENDPOINT_ID" } } ``` - [Configure callback endpoints](https://gikyapi.com/dashboard/webhooks/) - [Signature verification & delivery retries](https://gikyapi.com/docs/webhooks/) ## Webhook parameters Completion events use task.succeeded or task.failed. Verify the signature before processing and deduplicate by event id. A missing callback does not mean the task failed; query its status. | Field | Type | Description | | --- | --- | --- | | id | string | Unique event ID; use it to deduplicate deliveries. | | type | string | task.succeeded or task.failed | | task_id | string | The generation task ID. | | status | string | Task status at the time of the event. | | outputs | string[] | Generated file URLs for a successful task. | ## Errors & retries If a submission times out, retry with the same Idempotency-Key and identical body. If you already have a task ID, query that task instead of creating another one. | Status | What to do | | --- | --- | | 400 | Check required fields, accepted values and the priced configuration. | | 401 | Check your API key, expiry and restrictions. | | 409 | Check the error code: refresh changed configurations or resolve a reused request key. | | 429 | Wait at least 60 seconds before retrying. | | failed | Read error_code and check the consumption record. | | needs_review | Keep the task ID and stop automatic resubmission. | - [All error codes](https://gikyapi.com/docs/errors/) - [Billing & refunds](https://gikyapi.com/docs/billing/) --- # Qwen Image (original) API Documentation Generate images with Qwen Image (original). Submit a request, save the task ID, then query for the finished image. ## Overview Model ID: qwen-image. Text to Image. Check the current price and availability before your first request. `POST /v1/tasks` — Create a task `GET /v1/tasks/{id}` — Get the result - [Model pricing & playground](https://gikyapi.com/models/qwen-image/) ## Authentication Use Authorization: Bearer YOUR_API_KEY. For task creation, also send Content-Type: application/json and a unique Idempotency-Key. The example below includes all three headers. ## Request examples Choose an operation and language. Replace YOUR_API_KEY and use a unique Idempotency-Key for each new generation; preserve it when retrying the same request. ### Text to Image ```json { "model": "qwen-image", "operation": "text-to-image", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "resolution": "1024*1536" } } ``` ## Request parameters The request body contains model, operation and input. Model-specific fields belong inside input; their accepted values are listed below. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | model | string | Yes | qwen-image | | operation | string | Yes | text-to-image | | input | object | Yes | Parameters for your selected operation. | | callback | object | No | Use an endpoint_id saved in your account’s Webhooks settings. Omit this field when polling. | ## Text to Image input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | seed | integer | No | Random seed used by the model. | | prompt | string | Yes | Describe the scene, style or edit you want to make. Maximum 20000 characters. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 1024*1024, 1536*1024, 1024*1536. | | output_format | string | No | File format of the generated image. Accepted: jpeg, png, webp. | ## Create response HTTP 202 means the task was accepted. Save id and use it to query the result. The response below is illustrative; generation has not finished at this stage. ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "queued", "outputs": [], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Query the result Replace TASK_ID with the returned id. Use the same API key and poll every five seconds or more. When status is succeeded, read the file URLs from outputs. `GET /v1/tasks/{id}` — Retrieve a task ``` curl --fail-with-body 'https://gikyapi.com/v1/tasks/TASK_ID' -H 'Authorization: Bearer YOUR_API_KEY' ``` ## Response parameters Creation and status queries return the same task structure. | Field | Type | Description | | --- | --- | --- | | id | string | Task ID used in subsequent status queries. | | status | string | queued / submitting / running / succeeded / failed / needs_review | | outputs | string[] | Generated file URLs when the task succeeds. Save files to your own storage. | | error_code | string | null | Failure code when available; null if there is no error. | | created_at | string | Time the task was created. | | updated_at | string | Time of the last task update. | ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "succeeded", "outputs": [ "https://example.com/result.png" ], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Webhooks (optional) Add an endpoint in Dashboard → Webhooks and save the signing secret on your server. Include its ID in the task request. You can also poll task status without configuring a callback. | Parameter | Type | Required with callback | Description | | --- | --- | --- | --- | | callback.endpoint_id | string | Yes | ID of a callback endpoint owned by your account. | ``` { "callback": { "endpoint_id": "YOUR_ENDPOINT_ID" } } ``` - [Configure callback endpoints](https://gikyapi.com/dashboard/webhooks/) - [Signature verification & delivery retries](https://gikyapi.com/docs/webhooks/) ## Webhook parameters Completion events use task.succeeded or task.failed. Verify the signature before processing and deduplicate by event id. A missing callback does not mean the task failed; query its status. | Field | Type | Description | | --- | --- | --- | | id | string | Unique event ID; use it to deduplicate deliveries. | | type | string | task.succeeded or task.failed | | task_id | string | The generation task ID. | | status | string | Task status at the time of the event. | | outputs | string[] | Generated file URLs for a successful task. | ## Errors & retries If a submission times out, retry with the same Idempotency-Key and identical body. If you already have a task ID, query that task instead of creating another one. | Status | What to do | | --- | --- | | 400 | Check required fields, accepted values and the priced configuration. | | 401 | Check your API key, expiry and restrictions. | | 409 | Check the error code: refresh changed configurations or resolve a reused request key. | | 429 | Wait at least 60 seconds before retrying. | | failed | Read error_code and check the consumption record. | | needs_review | Keep the task ID and stop automatic resubmission. | - [All error codes](https://gikyapi.com/docs/errors/) - [Billing & refunds](https://gikyapi.com/docs/billing/) --- # Seedance 2.0 API Documentation Generate videos with Seedance 2.0. Submit a request, save the task ID, then query for the finished video. ## Overview Model ID: seedance-2-0. Text to Video · Image to Video. Check the current price and availability before your first request. `POST /v1/tasks` — Create a task `GET /v1/tasks/{id}` — Get the result - [Model pricing & playground](https://gikyapi.com/models/seedance-2-0/) ## Authentication Use Authorization: Bearer YOUR_API_KEY. For task creation, also send Content-Type: application/json and a unique Idempotency-Key. The example below includes all three headers. ## Request examples Choose an operation and language. Replace YOUR_API_KEY and use a unique Idempotency-Key for each new generation; preserve it when retrying the same request. ### Text to Video ```json { "model": "seedance-2-0", "operation": "text-to-video", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "resolution": "4k", "duration_seconds": 4 } } ``` ### Image to Video ```json { "model": "seedance-2-0", "operation": "image-to-video", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "image_urls": [ "https://example.com/reference.png" ], "resolution": "4k", "duration_seconds": 4 } } ``` ## Request parameters The request body contains model, operation and input. Model-specific fields belong inside input; their accepted values are listed below. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | model | string | Yes | seedance-2-0 | | operation | string | Yes | text-to-video / image-to-video | | input | object | Yes | Parameters for your selected operation. | | callback | object | No | Use an endpoint_id saved in your account’s Webhooks settings. Omit this field when polling. | ## Text to Video input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Minimum 3 characters. Maximum 20000 characters. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 480p, 720p, 1080p, 4k. | | aspect_ratio | string | No | Aspect ratio of the generated output. Accepted: 1:1, 4:3, 3:4, 16:9, 9:16, 21:9, adaptive. | | generate_audio | boolean | No | Whether to include generated audio. | | duration_seconds | integer | Yes | Length of the generated video, in seconds. Accepted: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15. | ## Image to Video input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Minimum 3 characters. Maximum 20000 characters. | | image_urls | array | Yes | Public HTTPS URLs of reference images. Each URL must be accessible without signing in. Maximum 1 items. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 480p, 720p, 1080p, 4k. | | aspect_ratio | string | No | Aspect ratio of the generated output. Accepted: 1:1, 4:3, 3:4, 16:9, 9:16, 21:9, adaptive. | | generate_audio | boolean | No | Whether to include generated audio. | | last_image_urls | array | No | last image urls. Maximum 1 items. | | duration_seconds | integer | Yes | Length of the generated video, in seconds. Accepted: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15. | ## Create response HTTP 202 means the task was accepted. Save id and use it to query the result. The response below is illustrative; generation has not finished at this stage. ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "queued", "outputs": [], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Query the result Replace TASK_ID with the returned id. Use the same API key and poll every five seconds or more. When status is succeeded, read the file URLs from outputs. `GET /v1/tasks/{id}` — Retrieve a task ``` curl --fail-with-body 'https://gikyapi.com/v1/tasks/TASK_ID' -H 'Authorization: Bearer YOUR_API_KEY' ``` ## Response parameters Creation and status queries return the same task structure. | Field | Type | Description | | --- | --- | --- | | id | string | Task ID used in subsequent status queries. | | status | string | queued / submitting / running / succeeded / failed / needs_review | | outputs | string[] | Generated file URLs when the task succeeds. Save files to your own storage. | | error_code | string | null | Failure code when available; null if there is no error. | | created_at | string | Time the task was created. | | updated_at | string | Time of the last task update. | ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "succeeded", "outputs": [ "https://example.com/result.mp4" ], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Webhooks (optional) Add an endpoint in Dashboard → Webhooks and save the signing secret on your server. Include its ID in the task request. You can also poll task status without configuring a callback. | Parameter | Type | Required with callback | Description | | --- | --- | --- | --- | | callback.endpoint_id | string | Yes | ID of a callback endpoint owned by your account. | ``` { "callback": { "endpoint_id": "YOUR_ENDPOINT_ID" } } ``` - [Configure callback endpoints](https://gikyapi.com/dashboard/webhooks/) - [Signature verification & delivery retries](https://gikyapi.com/docs/webhooks/) ## Webhook parameters Completion events use task.succeeded or task.failed. Verify the signature before processing and deduplicate by event id. A missing callback does not mean the task failed; query its status. | Field | Type | Description | | --- | --- | --- | | id | string | Unique event ID; use it to deduplicate deliveries. | | type | string | task.succeeded or task.failed | | task_id | string | The generation task ID. | | status | string | Task status at the time of the event. | | outputs | string[] | Generated file URLs for a successful task. | ## Errors & retries If a submission times out, retry with the same Idempotency-Key and identical body. If you already have a task ID, query that task instead of creating another one. | Status | What to do | | --- | --- | | 400 | Check required fields, accepted values and the priced configuration. | | 401 | Check your API key, expiry and restrictions. | | 409 | Check the error code: refresh changed configurations or resolve a reused request key. | | 429 | Wait at least 60 seconds before retrying. | | failed | Read error_code and check the consumption record. | | needs_review | Keep the task ID and stop automatic resubmission. | - [All error codes](https://gikyapi.com/docs/errors/) - [Billing & refunds](https://gikyapi.com/docs/billing/) --- # Seedance 2.5 API Documentation Generate videos with Seedance 2.5. Submit a request, save the task ID, then query for the finished video. ## Overview Model ID: seedance-2-5. Text to Video · Image to Video. Check the current price and availability before your first request. `POST /v1/tasks` — Create a task `GET /v1/tasks/{id}` — Get the result - [Model pricing & playground](https://gikyapi.com/models/seedance-2-5/) ## Authentication Use Authorization: Bearer YOUR_API_KEY. For task creation, also send Content-Type: application/json and a unique Idempotency-Key. The example below includes all three headers. ## Request examples Choose an operation and language. Replace YOUR_API_KEY and use a unique Idempotency-Key for each new generation; preserve it when retrying the same request. ### Text to Video ```json { "model": "seedance-2-5", "operation": "text-to-video", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "resolution": "1080p", "duration_seconds": 4 } } ``` ### Image to Video ```json { "model": "seedance-2-5", "operation": "image-to-video", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "image_urls": [ "https://example.com/reference.png" ], "resolution": "1080p", "duration_seconds": 4 } } ``` ## Request parameters The request body contains model, operation and input. Model-specific fields belong inside input; their accepted values are listed below. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | model | string | Yes | seedance-2-5 | | operation | string | Yes | text-to-video / image-to-video | | input | object | Yes | Parameters for your selected operation. | | callback | object | No | Use an endpoint_id saved in your account’s Webhooks settings. Omit this field when polling. | ## Text to Video input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Maximum 20480 characters. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 480p, 720p, 1080p. | | aspect_ratio | string | No | Aspect ratio of the generated output. Accepted: 1:1, 4:3, 3:4, 16:9, 9:16, 21:9, adaptive. | | generate_audio | boolean | No | Whether to include generated audio. | | duration_seconds | integer | Yes | Length of the generated video, in seconds. Accepted: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30. | ## Image to Video input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Maximum 20480 characters. | | image_urls | array | Yes | Public HTTPS URLs of reference images. Each URL must be accessible without signing in. Maximum 1 items. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 480p, 720p, 1080p. | | aspect_ratio | string | No | Aspect ratio of the generated output. Accepted: 1:1, 4:3, 3:4, 16:9, 9:16, 21:9, adaptive. | | generate_audio | boolean | No | Whether to include generated audio. | | last_image_urls | array | No | last image urls. Maximum 1 items. | | duration_seconds | integer | Yes | Length of the generated video, in seconds. Accepted: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30. | ## Create response HTTP 202 means the task was accepted. Save id and use it to query the result. The response below is illustrative; generation has not finished at this stage. ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "queued", "outputs": [], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Query the result Replace TASK_ID with the returned id. Use the same API key and poll every five seconds or more. When status is succeeded, read the file URLs from outputs. `GET /v1/tasks/{id}` — Retrieve a task ``` curl --fail-with-body 'https://gikyapi.com/v1/tasks/TASK_ID' -H 'Authorization: Bearer YOUR_API_KEY' ``` ## Response parameters Creation and status queries return the same task structure. | Field | Type | Description | | --- | --- | --- | | id | string | Task ID used in subsequent status queries. | | status | string | queued / submitting / running / succeeded / failed / needs_review | | outputs | string[] | Generated file URLs when the task succeeds. Save files to your own storage. | | error_code | string | null | Failure code when available; null if there is no error. | | created_at | string | Time the task was created. | | updated_at | string | Time of the last task update. | ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "succeeded", "outputs": [ "https://example.com/result.mp4" ], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Webhooks (optional) Add an endpoint in Dashboard → Webhooks and save the signing secret on your server. Include its ID in the task request. You can also poll task status without configuring a callback. | Parameter | Type | Required with callback | Description | | --- | --- | --- | --- | | callback.endpoint_id | string | Yes | ID of a callback endpoint owned by your account. | ``` { "callback": { "endpoint_id": "YOUR_ENDPOINT_ID" } } ``` - [Configure callback endpoints](https://gikyapi.com/dashboard/webhooks/) - [Signature verification & delivery retries](https://gikyapi.com/docs/webhooks/) ## Webhook parameters Completion events use task.succeeded or task.failed. Verify the signature before processing and deduplicate by event id. A missing callback does not mean the task failed; query its status. | Field | Type | Description | | --- | --- | --- | | id | string | Unique event ID; use it to deduplicate deliveries. | | type | string | task.succeeded or task.failed | | task_id | string | The generation task ID. | | status | string | Task status at the time of the event. | | outputs | string[] | Generated file URLs for a successful task. | ## Errors & retries If a submission times out, retry with the same Idempotency-Key and identical body. If you already have a task ID, query that task instead of creating another one. | Status | What to do | | --- | --- | | 400 | Check required fields, accepted values and the priced configuration. | | 401 | Check your API key, expiry and restrictions. | | 409 | Check the error code: refresh changed configurations or resolve a reused request key. | | 429 | Wait at least 60 seconds before retrying. | | failed | Read error_code and check the consumption record. | | needs_review | Keep the task ID and stop automatic resubmission. | - [All error codes](https://gikyapi.com/docs/errors/) - [Billing & refunds](https://gikyapi.com/docs/billing/) --- # Seedream 5 Flash API Documentation Generate images with Seedream 5 Flash. Submit a request, save the task ID, then query for the finished image. ## Overview Model ID: seedream-5-flash. Text to Image · Image to Image. Check the current price and availability before your first request. `POST /v1/tasks` — Create a task `GET /v1/tasks/{id}` — Get the result - [Model pricing & playground](https://gikyapi.com/models/seedream-5-flash/) ## Authentication Use Authorization: Bearer YOUR_API_KEY. For task creation, also send Content-Type: application/json and a unique Idempotency-Key. The example below includes all three headers. ## Request examples Choose an operation and language. Replace YOUR_API_KEY and use a unique Idempotency-Key for each new generation; preserve it when retrying the same request. ### Text to Image ```json { "model": "seedream-5-flash", "operation": "text-to-image", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "resolution": "2K", "aspect_ratio": "1:1" } } ``` ### Image to Image ```json { "model": "seedream-5-flash", "operation": "image-to-image", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "image_urls": [ "https://example.com/reference.png" ], "resolution": "2K", "aspect_ratio": "1:1" } } ``` ## Request parameters The request body contains model, operation and input. Model-specific fields belong inside input; their accepted values are listed below. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | model | string | Yes | seedream-5-flash | | operation | string | Yes | text-to-image / image-to-image | | input | object | Yes | Parameters for your selected operation. | | callback | object | No | Use an endpoint_id saved in your account’s Webhooks settings. Omit this field when polling. | ## Text to Image input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Minimum 4 characters. Maximum 5000 characters. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 1K, 1.5K, 2K. | | aspect_ratio | string | Yes | Aspect ratio of the generated output. Accepted: 1:1, 4:3, 3:4, 16:9, 9:16, 2:3, 3:2, 21:9. | | output_format | string | No | File format of the generated image. Accepted: png, jpeg. | ## Image to Image input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Minimum 4 characters. Maximum 5000 characters. | | image_urls | array | Yes | Public HTTPS URLs of reference images. Each URL must be accessible without signing in. Maximum 10 items. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 1K, 1.5K, 2K. | | aspect_ratio | string | Yes | Aspect ratio of the generated output. Accepted: 1:1, 4:3, 3:4, 16:9, 9:16, 2:3, 3:2, 21:9. | | output_format | string | No | File format of the generated image. Accepted: png, jpeg. | ## Create response HTTP 202 means the task was accepted. Save id and use it to query the result. The response below is illustrative; generation has not finished at this stage. ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "queued", "outputs": [], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Query the result Replace TASK_ID with the returned id. Use the same API key and poll every five seconds or more. When status is succeeded, read the file URLs from outputs. `GET /v1/tasks/{id}` — Retrieve a task ``` curl --fail-with-body 'https://gikyapi.com/v1/tasks/TASK_ID' -H 'Authorization: Bearer YOUR_API_KEY' ``` ## Response parameters Creation and status queries return the same task structure. | Field | Type | Description | | --- | --- | --- | | id | string | Task ID used in subsequent status queries. | | status | string | queued / submitting / running / succeeded / failed / needs_review | | outputs | string[] | Generated file URLs when the task succeeds. Save files to your own storage. | | error_code | string | null | Failure code when available; null if there is no error. | | created_at | string | Time the task was created. | | updated_at | string | Time of the last task update. | ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "succeeded", "outputs": [ "https://example.com/result.png" ], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Webhooks (optional) Add an endpoint in Dashboard → Webhooks and save the signing secret on your server. Include its ID in the task request. You can also poll task status without configuring a callback. | Parameter | Type | Required with callback | Description | | --- | --- | --- | --- | | callback.endpoint_id | string | Yes | ID of a callback endpoint owned by your account. | ``` { "callback": { "endpoint_id": "YOUR_ENDPOINT_ID" } } ``` - [Configure callback endpoints](https://gikyapi.com/dashboard/webhooks/) - [Signature verification & delivery retries](https://gikyapi.com/docs/webhooks/) ## Webhook parameters Completion events use task.succeeded or task.failed. Verify the signature before processing and deduplicate by event id. A missing callback does not mean the task failed; query its status. | Field | Type | Description | | --- | --- | --- | | id | string | Unique event ID; use it to deduplicate deliveries. | | type | string | task.succeeded or task.failed | | task_id | string | The generation task ID. | | status | string | Task status at the time of the event. | | outputs | string[] | Generated file URLs for a successful task. | ## Errors & retries If a submission times out, retry with the same Idempotency-Key and identical body. If you already have a task ID, query that task instead of creating another one. | Status | What to do | | --- | --- | | 400 | Check required fields, accepted values and the priced configuration. | | 401 | Check your API key, expiry and restrictions. | | 409 | Check the error code: refresh changed configurations or resolve a reused request key. | | 429 | Wait at least 60 seconds before retrying. | | failed | Read error_code and check the consumption record. | | needs_review | Keep the task ID and stop automatic resubmission. | - [All error codes](https://gikyapi.com/docs/errors/) - [Billing & refunds](https://gikyapi.com/docs/billing/) --- # Seedream 5 Lite API Documentation Generate images with Seedream 5 Lite. Submit a request, save the task ID, then query for the finished image. ## Overview Model ID: seedream-5-lite. Text to Image · Image to Image. Check the current price and availability before your first request. `POST /v1/tasks` — Create a task `GET /v1/tasks/{id}` — Get the result - [Model pricing & playground](https://gikyapi.com/models/seedream-5-lite/) ## Authentication Use Authorization: Bearer YOUR_API_KEY. For task creation, also send Content-Type: application/json and a unique Idempotency-Key. The example below includes all three headers. ## Request examples Choose an operation and language. Replace YOUR_API_KEY and use a unique Idempotency-Key for each new generation; preserve it when retrying the same request. ### Text to Image ```json { "model": "seedream-5-lite", "operation": "text-to-image", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "resolution": "4K", "aspect_ratio": "1:1" } } ``` ### Image to Image ```json { "model": "seedream-5-lite", "operation": "image-to-image", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "image_urls": [ "https://example.com/reference.png" ], "resolution": "4K", "aspect_ratio": "1:1" } } ``` ## Request parameters The request body contains model, operation and input. Model-specific fields belong inside input; their accepted values are listed below. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | model | string | Yes | seedream-5-lite | | operation | string | Yes | text-to-image / image-to-image | | input | object | Yes | Parameters for your selected operation. | | callback | object | No | Use an endpoint_id saved in your account’s Webhooks settings. Omit this field when polling. | ## Text to Image input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Minimum 4 characters. Maximum 2995 characters. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 2K, 3K, 4K. | | aspect_ratio | string | Yes | Aspect ratio of the generated output. Accepted: 1:1, 4:3, 3:4, 16:9, 9:16, 2:3, 3:2, 21:9. | | output_format | string | No | File format of the generated image. Accepted: png, jpeg. | ## Image to Image input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Minimum 4 characters. Maximum 2995 characters. | | image_urls | array | Yes | Public HTTPS URLs of reference images. Each URL must be accessible without signing in. Maximum 14 items. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 2K, 3K, 4K. | | aspect_ratio | string | Yes | Aspect ratio of the generated output. Accepted: 1:1, 4:3, 3:4, 16:9, 9:16, 2:3, 3:2, 21:9. | | output_format | string | No | File format of the generated image. Accepted: png, jpeg. | ## Create response HTTP 202 means the task was accepted. Save id and use it to query the result. The response below is illustrative; generation has not finished at this stage. ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "queued", "outputs": [], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Query the result Replace TASK_ID with the returned id. Use the same API key and poll every five seconds or more. When status is succeeded, read the file URLs from outputs. `GET /v1/tasks/{id}` — Retrieve a task ``` curl --fail-with-body 'https://gikyapi.com/v1/tasks/TASK_ID' -H 'Authorization: Bearer YOUR_API_KEY' ``` ## Response parameters Creation and status queries return the same task structure. | Field | Type | Description | | --- | --- | --- | | id | string | Task ID used in subsequent status queries. | | status | string | queued / submitting / running / succeeded / failed / needs_review | | outputs | string[] | Generated file URLs when the task succeeds. Save files to your own storage. | | error_code | string | null | Failure code when available; null if there is no error. | | created_at | string | Time the task was created. | | updated_at | string | Time of the last task update. | ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "succeeded", "outputs": [ "https://example.com/result.png" ], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Webhooks (optional) Add an endpoint in Dashboard → Webhooks and save the signing secret on your server. Include its ID in the task request. You can also poll task status without configuring a callback. | Parameter | Type | Required with callback | Description | | --- | --- | --- | --- | | callback.endpoint_id | string | Yes | ID of a callback endpoint owned by your account. | ``` { "callback": { "endpoint_id": "YOUR_ENDPOINT_ID" } } ``` - [Configure callback endpoints](https://gikyapi.com/dashboard/webhooks/) - [Signature verification & delivery retries](https://gikyapi.com/docs/webhooks/) ## Webhook parameters Completion events use task.succeeded or task.failed. Verify the signature before processing and deduplicate by event id. A missing callback does not mean the task failed; query its status. | Field | Type | Description | | --- | --- | --- | | id | string | Unique event ID; use it to deduplicate deliveries. | | type | string | task.succeeded or task.failed | | task_id | string | The generation task ID. | | status | string | Task status at the time of the event. | | outputs | string[] | Generated file URLs for a successful task. | ## Errors & retries If a submission times out, retry with the same Idempotency-Key and identical body. If you already have a task ID, query that task instead of creating another one. | Status | What to do | | --- | --- | | 400 | Check required fields, accepted values and the priced configuration. | | 401 | Check your API key, expiry and restrictions. | | 409 | Check the error code: refresh changed configurations or resolve a reused request key. | | 429 | Wait at least 60 seconds before retrying. | | failed | Read error_code and check the consumption record. | | needs_review | Keep the task ID and stop automatic resubmission. | - [All error codes](https://gikyapi.com/docs/errors/) - [Billing & refunds](https://gikyapi.com/docs/billing/) --- # Seedream 5 Pro API Documentation Generate images with Seedream 5 Pro. Submit a request, save the task ID, then query for the finished image. ## Overview Model ID: seedream-5-pro. Text to Image · Image to Image. Check the current price and availability before your first request. `POST /v1/tasks` — Create a task `GET /v1/tasks/{id}` — Get the result - [Model pricing & playground](https://gikyapi.com/models/seedream-5-pro/) ## Authentication Use Authorization: Bearer YOUR_API_KEY. For task creation, also send Content-Type: application/json and a unique Idempotency-Key. The example below includes all three headers. ## Request examples Choose an operation and language. Replace YOUR_API_KEY and use a unique Idempotency-Key for each new generation; preserve it when retrying the same request. ### Text to Image ```json { "model": "seedream-5-pro", "operation": "text-to-image", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "resolution": "2K", "aspect_ratio": "1:1" } } ``` ### Image to Image ```json { "model": "seedream-5-pro", "operation": "image-to-image", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "image_urls": [ "https://example.com/reference.png" ], "resolution": "2K", "aspect_ratio": "1:1" } } ``` ## Request parameters The request body contains model, operation and input. Model-specific fields belong inside input; their accepted values are listed below. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | model | string | Yes | seedream-5-pro | | operation | string | Yes | text-to-image / image-to-image | | input | object | Yes | Parameters for your selected operation. | | callback | object | No | Use an endpoint_id saved in your account’s Webhooks settings. Omit this field when polling. | ## Text to Image input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Minimum 4 characters. Maximum 5000 characters. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 1K, 2K. | | aspect_ratio | string | Yes | Aspect ratio of the generated output. Accepted: 1:1, 4:3, 3:4, 16:9, 9:16, 2:3, 3:2, 21:9. | | output_format | string | No | File format of the generated image. Accepted: png, jpeg. | ## Image to Image input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Minimum 4 characters. Maximum 5000 characters. | | image_urls | array | Yes | Public HTTPS URLs of reference images. Each URL must be accessible without signing in. Maximum 10 items. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 1K, 2K. | | aspect_ratio | string | Yes | Aspect ratio of the generated output. Accepted: 1:1, 4:3, 3:4, 16:9, 9:16, 2:3, 3:2, 21:9. | | output_format | string | No | File format of the generated image. Accepted: png, jpeg. | ## Create response HTTP 202 means the task was accepted. Save id and use it to query the result. The response below is illustrative; generation has not finished at this stage. ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "queued", "outputs": [], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Query the result Replace TASK_ID with the returned id. Use the same API key and poll every five seconds or more. When status is succeeded, read the file URLs from outputs. `GET /v1/tasks/{id}` — Retrieve a task ``` curl --fail-with-body 'https://gikyapi.com/v1/tasks/TASK_ID' -H 'Authorization: Bearer YOUR_API_KEY' ``` ## Response parameters Creation and status queries return the same task structure. | Field | Type | Description | | --- | --- | --- | | id | string | Task ID used in subsequent status queries. | | status | string | queued / submitting / running / succeeded / failed / needs_review | | outputs | string[] | Generated file URLs when the task succeeds. Save files to your own storage. | | error_code | string | null | Failure code when available; null if there is no error. | | created_at | string | Time the task was created. | | updated_at | string | Time of the last task update. | ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "succeeded", "outputs": [ "https://example.com/result.png" ], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Webhooks (optional) Add an endpoint in Dashboard → Webhooks and save the signing secret on your server. Include its ID in the task request. You can also poll task status without configuring a callback. | Parameter | Type | Required with callback | Description | | --- | --- | --- | --- | | callback.endpoint_id | string | Yes | ID of a callback endpoint owned by your account. | ``` { "callback": { "endpoint_id": "YOUR_ENDPOINT_ID" } } ``` - [Configure callback endpoints](https://gikyapi.com/dashboard/webhooks/) - [Signature verification & delivery retries](https://gikyapi.com/docs/webhooks/) ## Webhook parameters Completion events use task.succeeded or task.failed. Verify the signature before processing and deduplicate by event id. A missing callback does not mean the task failed; query its status. | Field | Type | Description | | --- | --- | --- | | id | string | Unique event ID; use it to deduplicate deliveries. | | type | string | task.succeeded or task.failed | | task_id | string | The generation task ID. | | status | string | Task status at the time of the event. | | outputs | string[] | Generated file URLs for a successful task. | ## Errors & retries If a submission times out, retry with the same Idempotency-Key and identical body. If you already have a task ID, query that task instead of creating another one. | Status | What to do | | --- | --- | | 400 | Check required fields, accepted values and the priced configuration. | | 401 | Check your API key, expiry and restrictions. | | 409 | Check the error code: refresh changed configurations or resolve a reused request key. | | 429 | Wait at least 60 seconds before retrying. | | failed | Read error_code and check the consumption record. | | needs_review | Keep the task ID and stop automatic resubmission. | - [All error codes](https://gikyapi.com/docs/errors/) - [Billing & refunds](https://gikyapi.com/docs/billing/) --- # Veo 3.1 Standard API Documentation Generate videos with Veo 3.1 Standard. Submit a request, save the task ID, then query for the finished video. ## Overview Model ID: veo-3-1-standard. Text to Video · Image to Video. Check the current price and availability before your first request. `POST /v1/tasks` — Create a task `GET /v1/tasks/{id}` — Get the result - [Model pricing & playground](https://gikyapi.com/models/veo-3-1-standard/) ## Authentication Use Authorization: Bearer YOUR_API_KEY. For task creation, also send Content-Type: application/json and a unique Idempotency-Key. The example below includes all three headers. ## Request examples Choose an operation and language. Replace YOUR_API_KEY and use a unique Idempotency-Key for each new generation; preserve it when retrying the same request. ### Text to Video ```json { "model": "veo-3-1-standard", "operation": "text-to-video", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "resolution": "4k", "generate_audio": true, "duration_seconds": 4 } } ``` ### Image to Video ```json { "model": "veo-3-1-standard", "operation": "image-to-video", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "image_urls": [ "https://example.com/reference.png" ], "resolution": "4k", "generate_audio": true, "duration_seconds": 4 } } ``` ## Request parameters The request body contains model, operation and input. Model-specific fields belong inside input; their accepted values are listed below. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | model | string | Yes | veo-3-1-standard | | operation | string | Yes | text-to-video / image-to-video | | input | object | Yes | Parameters for your selected operation. | | callback | object | No | Use an endpoint_id saved in your account’s Webhooks settings. Omit this field when polling. | ## Text to Video input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | seed | integer | No | Random seed used by the model. | | prompt | string | Yes | Describe the scene, style or edit you want to make. Maximum 20000 characters. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 720p, 1080p, 4k. | | aspect_ratio | string | No | Aspect ratio of the generated output. Accepted: 16:9, 9:16. | | generate_audio | boolean | Yes | Whether to include generated audio. | | negative_prompt | string | No | Describe elements you want to exclude. Maximum 20000 characters. | | duration_seconds | integer | Yes | Length of the generated video, in seconds. Accepted: 4, 6, 8. | ## Image to Video input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | seed | integer | No | Random seed used by the model. | | prompt | string | Yes | Describe the scene, style or edit you want to make. Maximum 20000 characters. | | image_urls | array | Yes | Public HTTPS URLs of reference images. Each URL must be accessible without signing in. Maximum 1 items. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 720p, 1080p, 4k. | | aspect_ratio | string | No | Aspect ratio of the generated output. Accepted: 16:9, 9:16. | | generate_audio | boolean | Yes | Whether to include generated audio. | | last_image_urls | array | No | last image urls. Maximum 1 items. | | negative_prompt | string | No | Describe elements you want to exclude. Maximum 20000 characters. | | duration_seconds | integer | Yes | Length of the generated video, in seconds. Accepted: 4, 6, 8. | ## Create response HTTP 202 means the task was accepted. Save id and use it to query the result. The response below is illustrative; generation has not finished at this stage. ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "queued", "outputs": [], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Query the result Replace TASK_ID with the returned id. Use the same API key and poll every five seconds or more. When status is succeeded, read the file URLs from outputs. `GET /v1/tasks/{id}` — Retrieve a task ``` curl --fail-with-body 'https://gikyapi.com/v1/tasks/TASK_ID' -H 'Authorization: Bearer YOUR_API_KEY' ``` ## Response parameters Creation and status queries return the same task structure. | Field | Type | Description | | --- | --- | --- | | id | string | Task ID used in subsequent status queries. | | status | string | queued / submitting / running / succeeded / failed / needs_review | | outputs | string[] | Generated file URLs when the task succeeds. Save files to your own storage. | | error_code | string | null | Failure code when available; null if there is no error. | | created_at | string | Time the task was created. | | updated_at | string | Time of the last task update. | ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "succeeded", "outputs": [ "https://example.com/result.mp4" ], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Webhooks (optional) Add an endpoint in Dashboard → Webhooks and save the signing secret on your server. Include its ID in the task request. You can also poll task status without configuring a callback. | Parameter | Type | Required with callback | Description | | --- | --- | --- | --- | | callback.endpoint_id | string | Yes | ID of a callback endpoint owned by your account. | ``` { "callback": { "endpoint_id": "YOUR_ENDPOINT_ID" } } ``` - [Configure callback endpoints](https://gikyapi.com/dashboard/webhooks/) - [Signature verification & delivery retries](https://gikyapi.com/docs/webhooks/) ## Webhook parameters Completion events use task.succeeded or task.failed. Verify the signature before processing and deduplicate by event id. A missing callback does not mean the task failed; query its status. | Field | Type | Description | | --- | --- | --- | | id | string | Unique event ID; use it to deduplicate deliveries. | | type | string | task.succeeded or task.failed | | task_id | string | The generation task ID. | | status | string | Task status at the time of the event. | | outputs | string[] | Generated file URLs for a successful task. | ## Errors & retries If a submission times out, retry with the same Idempotency-Key and identical body. If you already have a task ID, query that task instead of creating another one. | Status | What to do | | --- | --- | | 400 | Check required fields, accepted values and the priced configuration. | | 401 | Check your API key, expiry and restrictions. | | 409 | Check the error code: refresh changed configurations or resolve a reused request key. | | 429 | Wait at least 60 seconds before retrying. | | failed | Read error_code and check the consumption record. | | needs_review | Keep the task ID and stop automatic resubmission. | - [All error codes](https://gikyapi.com/docs/errors/) - [Billing & refunds](https://gikyapi.com/docs/billing/) --- # Wan 3.0 API Documentation Generate videos with Wan 3.0. Submit a request, save the task ID, then query for the finished video. ## Overview Model ID: wan-3-0. Text to Video · Image to Video. Check the current price and availability before your first request. `POST /v1/tasks` — Create a task `GET /v1/tasks/{id}` — Get the result - [Model pricing & playground](https://gikyapi.com/models/wan-3-0/) ## Authentication Use Authorization: Bearer YOUR_API_KEY. For task creation, also send Content-Type: application/json and a unique Idempotency-Key. The example below includes all three headers. ## Request examples Choose an operation and language. Replace YOUR_API_KEY and use a unique Idempotency-Key for each new generation; preserve it when retrying the same request. ### Text to Video ```json { "model": "wan-3-0", "operation": "text-to-video", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "resolution": "1080p", "duration_seconds": 2 } } ``` ### Image to Video ```json { "model": "wan-3-0", "operation": "image-to-video", "input": { "prompt": "A blue ceramic cup on a white table, soft morning light", "image_urls": [ "https://example.com/reference.png" ], "resolution": "1080p", "duration_seconds": 2 } } ``` ## Request parameters The request body contains model, operation and input. Model-specific fields belong inside input; their accepted values are listed below. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | model | string | Yes | wan-3-0 | | operation | string | Yes | text-to-video / image-to-video | | input | object | Yes | Parameters for your selected operation. | | callback | object | No | Use an endpoint_id saved in your account’s Webhooks settings. Omit this field when polling. | ## Text to Video input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Maximum 20000 characters. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 480p, 720p, 1080p. | | aspect_ratio | string | No | Aspect ratio of the generated output. Accepted: adaptive, 16:9, 4:3, 1:1, 3:4, 9:16. | | generate_audio | boolean | No | Whether to include generated audio. | | duration_seconds | integer | Yes | Length of the generated video, in seconds. Accepted: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30. | ## Image to Video input Fields inside input. Optional fields may be omitted; send only the fields listed here. | Parameter | Type | Required | Description / accepted values | | --- | --- | --- | --- | | prompt | string | Yes | Describe the scene, style or edit you want to make. Maximum 20000 characters. | | image_urls | array | Yes | Public HTTPS URLs of reference images. Each URL must be accessible without signing in. Maximum 1 items. | | resolution | string | Yes | Output resolution. Choose a resolution listed in the model pricing. Accepted: 480p, 720p, 1080p. | | aspect_ratio | string | No | Aspect ratio of the generated output. Accepted: adaptive, 16:9, 4:3, 1:1, 3:4, 9:16. | | generate_audio | boolean | No | Whether to include generated audio. | | last_image_urls | array | No | last image urls. Maximum 1 items. | | duration_seconds | integer | Yes | Length of the generated video, in seconds. Accepted: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30. | ## Create response HTTP 202 means the task was accepted. Save id and use it to query the result. The response below is illustrative; generation has not finished at this stage. ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "queued", "outputs": [], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Query the result Replace TASK_ID with the returned id. Use the same API key and poll every five seconds or more. When status is succeeded, read the file URLs from outputs. `GET /v1/tasks/{id}` — Retrieve a task ``` curl --fail-with-body 'https://gikyapi.com/v1/tasks/TASK_ID' -H 'Authorization: Bearer YOUR_API_KEY' ``` ## Response parameters Creation and status queries return the same task structure. | Field | Type | Description | | --- | --- | --- | | id | string | Task ID used in subsequent status queries. | | status | string | queued / submitting / running / succeeded / failed / needs_review | | outputs | string[] | Generated file URLs when the task succeeds. Save files to your own storage. | | error_code | string | null | Failure code when available; null if there is no error. | | created_at | string | Time the task was created. | | updated_at | string | Time of the last task update. | ``` { "id": "00000000-0000-4000-8000-000000000001", "status": "succeeded", "outputs": [ "https://example.com/result.mp4" ], "error_code": null, "created_at": "2026-11-02T00:00:00Z", "updated_at": "2026-11-02T00:00:00Z" } ``` ## Webhooks (optional) Add an endpoint in Dashboard → Webhooks and save the signing secret on your server. Include its ID in the task request. You can also poll task status without configuring a callback. | Parameter | Type | Required with callback | Description | | --- | --- | --- | --- | | callback.endpoint_id | string | Yes | ID of a callback endpoint owned by your account. | ``` { "callback": { "endpoint_id": "YOUR_ENDPOINT_ID" } } ``` - [Configure callback endpoints](https://gikyapi.com/dashboard/webhooks/) - [Signature verification & delivery retries](https://gikyapi.com/docs/webhooks/) ## Webhook parameters Completion events use task.succeeded or task.failed. Verify the signature before processing and deduplicate by event id. A missing callback does not mean the task failed; query its status. | Field | Type | Description | | --- | --- | --- | | id | string | Unique event ID; use it to deduplicate deliveries. | | type | string | task.succeeded or task.failed | | task_id | string | The generation task ID. | | status | string | Task status at the time of the event. | | outputs | string[] | Generated file URLs for a successful task. | ## Errors & retries If a submission times out, retry with the same Idempotency-Key and identical body. If you already have a task ID, query that task instead of creating another one. | Status | What to do | | --- | --- | | 400 | Check required fields, accepted values and the priced configuration. | | 401 | Check your API key, expiry and restrictions. | | 409 | Check the error code: refresh changed configurations or resolve a reused request key. | | 429 | Wait at least 60 seconds before retrying. | | failed | Read error_code and check the consumption record. | | needs_review | Keep the task ID and stop automatic resubmission. | - [All error codes](https://gikyapi.com/docs/errors/) - [Billing & refunds](https://gikyapi.com/docs/billing/)