Skip to main content
Generate high-quality AI images and videos with a single HTTP request. This API uses the same generation engine as SeedHorse Studio and is available for developers to call programmatically.

Capability Overview

Image Generation (Imagen Nano Banana Pro/2)
  • Text-to-Image — Generate images by inputting text prompts
  • Image-Text-to-Image — Generate images with reference images + text prompts
Video Generation (Seedance 2.0)
  • Image-Text-to-Video — Generate videos with reference images + text prompts
  • Image-Video-Text-to-Video — Generate videos with reference images + reference videos + text prompts
  • Image-Audio-Text-to-Video — Generate videos with reference images + reference audio + text prompts
  • Full-Modality-to-Video — Generate videos with reference images + reference videos + reference audio + text prompts

Available Models

Base URL

All requests are sent to:
The API path prefix is /api/v1.

Authentication

Each request must carry a Bearer Token in the Authorization request header:

API Documentation

Submit Generation Task

Submit a generation task and return a task ID immediately; the generation process runs asynchronously.

Request Headers

Request Body Parameters

Successful Response


Query Task Status

Query the current status and generation results of a specified task.

Request Headers

Successful Response

Response Field Description

It is recommended to poll every 5–10 seconds until taskStatus becomes 2 (Completed) or 3 (Failed).

Quick Start

1. Submit Task

2. Poll Status

3. Get Results

When taskStatus is 2, the results array contains the URLs of the generated files. Please download and save them to your own storage as soon as possible.

Request Examples

Image Generation

Text-to-Image (txt)

Image-Text-to-Image (img_txt)

Video Generation

Image-Text-to-Video (img_txt)

Image-Video-Text-to-Video (img_vid_txt)

Image-Audio-Text-to-Video (img_aud_txt)

Full-Modality-to-Video (img_vid_aud_txt)


Error Codes

Unified response format:

System Errors (1xxxx)

Authentication/Authorization (2xxxx)

Parameter Validation (3xxxx)

Resource Not Found (4xxxx)

Business Rules (5xxxx)

Credit Billing (6xxxx)