imya — All-in-One AI Image, Video & Music Generatorimya
TemplatesAPIBlogPricing
Login
imya — All-in-One AI Image, Video & Music Generatorimya

All-in-One AI Image, Video & Music Generator. One workspace for every creative output.

AI Image Models

  • Z Image TurboFREE
  • GPT Image 2
  • Ideogram 4.0
  • Reve 2.0
  • Nano Banana
  • Qwen Image Edit Plus
  • Seedream 4.0
  • Nano Banana Pro Official
  • Nano Banana Pro Trial
  • Nano Banana 2
  • Seedream 4.5
  • Seedream 5

AI Video Models

  • Kling 3.0
  • Google Omni
  • Seedance 2.0
  • Sora 2
  • Kling 3.0 Motion Control
  • Kling 3.0 Turbo

Photo Enhancement

  • AI Background Remover
  • AI Background Changer
  • AI Image Upscaler
  • AI Old Photo Restoration
  • AI Object Remover
  • AI Watermark Remover
  • AI Logo Remover
  • AI Text Remover

Portrait & Avatar

  • AI Headshot Generator
  • AI Anime Avatar
  • AI Cartoon Portrait
  • AI Hair Color Changer
  • AI Hairstyle Changer
  • AI Face Swap

Style Transfer

  • AI Photo to Anime
  • AI Anime Avatar
  • AI Photo to Ghibli
  • AI Photo to Sketch
  • AI Art Style Transfer
  • AI Time Travel Photo

Photo Creative

  • AI Couple Photo
  • AI Family Photo
  • AI Wedding Photo
  • AI Father’s Day Card Maker
  • AI Christmas Cards
  • AI Valentine Card Maker
  • AI Mother’s Day Card Maker
  • AI Group Photo Mixer
  • AI ID Photo Maker
  • AI Room Designer
  • AI Virtual Try-On

Creative Tools

  • Z Image Turbo
  • Nano Banana
  • Nano Banana 2
  • Seedream 4.5
  • Seedream 5
  • GPT Image 2
  • Flux 2
  • AI Logo Generator
  • AI Logo Remover
  • AI Image Translator
  • AI Room Designer
  • AI Product Mockup

Product

  • AI Image Tools
  • AI Models
  • Pricing

Company

  • About Us
  • Privacy Policy
  • Terms of Service
  • Contact Us

© 2026 imya.ai · All rights reserved

☀️Light
All APIsAPI reference
Run with API
Copy page
View as Markdown
Get API Key

API reference

  • Overview
  • Quickstart
  • Authentication
  • Create generation
  • Retrieve task
Try Seedance 2.0 online
On this page
OverviewQuickstartAuthenticationCreate generationRetrieve taskRequest parametersResponsesCredit billingTask statusErrors
Video generationProduction Beta

Seedance 2.0 API

Create Seedance 2.0 text-to-video and image-to-video tasks through one asynchronous API. This first public version does not expose reference-to-video or video editing.

REST API · v1 · Async tasks

Production Beta is callable now. The first version intentionally supports only text-to-video and image-to-video.

Make your first request

Choose text-to-video or image-to-video, use a unique idempotency key, then poll the returned task ID.

  1. 1

    Create an API key

    Generate a key from your imya account settings.

  2. 2

    Choose a mode

    Use text-to-video or image-to-video only.

  3. 3

    Retrieve the result

    Poll the task ID until it succeeds or fails.

Authentication and idempotency

Send your API key as a Bearer token. Every generation POST also requires a unique Idempotency-Key so safe retries cannot create a second charge.

HTTP
Authorization: Bearer YOUR_IMYA_API_KEY
Content-Type: application/json
Idempotency-Key: YOUR_UNIQUE_REQUEST_KEY

Create a video generation

Creates an asynchronous Seedance task and returns the live credits_reserved value calculated for this request.

POST/v1/videos/generations
Request
# Text to video
curl https://imya.ai/v1/videos/generations \
  -H "Authorization: Bearer YOUR_IMYA_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: seedance-t2v-order-001" \
  -d '{
    "model": "seedance-2.0",
    "mode": "text-to-video",
    "prompt": "A coastal train passing cliffs at sunrise",
    "duration": 5,
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "generate_audio": true
  }'

# Image to video
curl https://imya.ai/v1/videos/generations \
  -H "Authorization: Bearer YOUR_IMYA_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: seedance-i2v-order-001" \
  -d '{
    "model": "seedance-2.0",
    "mode": "image-to-video",
    "prompt": "Wind moves the fabric as the camera arcs right",
    "image_url": "https://cdn.example.com/first-frame.jpg",
    "duration": 8,
    "resolution": "1080p",
    "aspect_ratio": "16:9",
    "generate_audio": true
  }'

Retrieve a task

Returns the latest task state, final credit usage, generated MP4, or a sanitized error. Poll no faster than every 5 seconds. Video result URLs may be temporary, so download them promptly; Production Beta does not yet guarantee 7/30-day API video retention.

GET/v1/tasks/{task_id}
Request
curl https://imya.ai/v1/tasks/task_0123456789abcdef0123456789abcdef \
  -H "Authorization: Bearer YOUR_IMYA_API_KEY"

Request parameters

FieldTypeRequiredDescription
modelstringYesUse seedance-2.0.
modestringYestext-to-video or image-to-video.
promptstringYesGeneration instructions, 3 to 20,000 characters.
image_urlstringConditionalPublic HTTPS first frame. Required only for image-to-video.
last_frame_urlstringNoOptional public HTTPS last frame for image-to-video.
durationnumberNoInteger from 4 to 15 seconds. Default is 5.
resolutionstringNo480p, 720p, or 1080p. Default is 720p.
aspect_ratiostringNo1:1, 4:3, 3:4, 16:9, 9:16, 21:9, or adaptive.
generate_audiobooleanNoGenerate audio. Default is true.
web_searchbooleanNoText-to-video only. Default is false.

Responses

Accepted response example
{
  "id": "task_0123456789abcdef0123456789abcdef",
  "status": "pending",
  "model": "seedance-2.0",
  "credits_reserved": 625
}
Completed response example
{
  "id": "task_0123456789abcdef0123456789abcdef",
  "status": "succeeded",
  "model": "seedance-2.0",
  "credits_used": 625,
  "data": [
    {
      "url": "https://media.example.com/generated/example.mp4"
    }
  ]
}

Live credit billing

The server calculates credits_reserved from mode, resolution, duration, and the API key owner’s current plan. Audio and web-search switches do not change the current Imya credit calculation. The numbers in the response examples illustrate the response shape only; always use the value returned for that request and never cache a Seedance price in your client.

Task status

pending

The task was accepted and is waiting to start.

processing

The model is generating the video.

succeeded

Generation finished and data contains the MP4.

failed

Generation failed. Read the sanitized error object.

Errors

400

Missing Idempotency-Key or malformed JSON.

401

Missing or invalid API key.

402

The account does not have enough credits.

403

The API account is disabled.

409

The idempotency key was reused with a different body.

413

The request body exceeds 64 KiB.

422

Invalid mode, prompt, image, duration, resolution, or aspect ratio.

429

Rate or concurrent-task limit reached.

5xx

The request could not be completed or submitted.

Want to test Seedance before integrating?

Open the hosted Seedance 2.0 tool to compare text-to-video and image-to-video inputs.

Try Seedance 2.0 online

On this page

  • Request parameters
  • Responses
  • Credit billing
  • Task status
  • Errors