imya — All-in-One AI Image, Video & Music Generatorimya
TemplatesAPIBlogPricing
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
  • MiniMax H3
  • Seedance 2.5
  • Flux 3SOON
  • Seedance 2.0
  • Sora 2
  • Kling 3.0 Motion Control
  • Kling 3.0 Turbo
  • Grok Imagine Video 1.5
  • PixVerse V6

Photo Enhancement

  • AI Background Remover
  • AI Background Changer
  • AI Image Upscaler
  • AI Old Photo Restoration
  • AI Object Remover
  • AI Watermark Remover
  • Gemini 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
imya developer platform

AI Model API for image and video generation.

Use imya as the API layer for image and video generation, task polling, live credit billing, and generated assets. GPT Image 2, Seedream 5.0 Pro, Hailuo 2.3, and Seedance 2.0 are documented here as Developer Preview contracts.

Open GPT Image 2 APIView Markdown reference
Imya API workflow for image and video generation, task polling, and generated assets
Developer Preview

API catalog

Each model page documents the callable endpoint, public parameters, live billing response, and task lifecycle.

Developer Preview

GPT Image 2 API

Text-to-image and reference-image workflows with resolution-aware credits and task polling.

gpt-image-2
Developer Preview

Seedream API (5.0 Pro)

Use the Seedream API with the 5.0 Pro model for text-to-image and up to ten reference images, with aspect ratio, quality, and output controls.

seedream-5-pro
Developer Preview

Hailuo 2.3 API

Text-to-video and image-to-video, including the lower-latency Fast variant.

hailuo-2.3
Developer Preview

Seedance 2.0 API

Text-to-video and image-to-video with duration, resolution, aspect ratio, and audio controls.

seedance-2.0

How developers connect

1

Create an API key in settings.

2

Send a generation request with model and prompt.

3

Poll the task endpoint until it succeeds or fails.

4

Store the returned image or video URL in your app.

What every API includes

A public developer URL that can be shared with users and LLMs.
A Markdown reference URL for Copy page / View as Markdown.
Idempotency keys for retry-safe generation requests.
Server-calculated credits_reserved for every accepted request.

AI Model API integration guide

How to choose an AI Model API

Start with the media your product must return, then choose the controls your workflow actually needs. An image API produces one still result per accepted task. A video API produces motion from text or a starting image. This clarifies validation, pricing, queues, and result handling. The four Imya model pages use the same authentication and asynchronous task pattern, so you can share infrastructure while keeping each model request strongly typed.

Choose an image API for still assets

Use an image model when the final asset is a single frame and resolution, reference-image count, or quality is the main control. This supports still-image workflows without adding a video processing pipeline.

Choose a video API for motion

Use a video model when the output must move. Decide whether the task begins with a prompt or an input image, then validate duration and resolution before submission. Plan its separate concurrency queue before launch.

Compare the four AI Model API options

Use the model-specific reference as the source of truth for request fields and the credits_reserved value returned for the exact request.

GPT Image 2 API

Choose GPT Image 2 for prompt-based image generation or workflows that need up to 16 reference images. It exposes 1K, 2K, and 4K output resolution choices. Each accepted task returns one generated image.

Read the GPT Image 2 API reference

Seedream API (5.0 Pro)

Choose Seedream 5.0 Pro for prompt-based image generation with as many as 10 reference images. The public request offers basic and high quality choices. A task returns one image, so clients should treat reference images as inputs rather than an expected output count.

Read the Seedream API reference for 5.0 Pro

Hailuo 2.3 API

Choose Hailuo 2.3 when you need text-to-video or image-to-video generation with a 6- or 10-second duration. Standard and Fast variants are exposed by the public API. Validate the selected mode, duration, and required image before creating the asynchronous task.

Read the Hailuo 2.3 API reference

Seedance 2.0 API

Choose Seedance 2.0 for text-to-video or image-to-video with 480p, 720p, or 1080p output. Duration can be an integer from 4 through 15 seconds. Validate both controls on your server so an unsupported combination never reaches your job queue.

Read the Seedance 2.0 API reference

Use one reliable asynchronous integration pattern

Every public model route is designed for server-to-server use. Keep the API key outside browser code and centralize task creation, polling, billing records, and user-facing status in your backend.

  1. 1

    Authenticate and identify one logical request

    Send the Imya API key as a Bearer token. Add a unique Idempotency-Key to each logical generation POST. If a network retry sends the same key and request body, the API returns the original task instead of creating another task or charging again.

  2. 2

    Use live billing returned by the server

    When a new task is accepted, the exact credits in credits_reserved are deducted atomically. Display or record that returned value; do not reproduce pricing rules in client code. This keeps plan adjustments and model-specific prices aligned with the actual charge.

  3. 3

    Store the returned id and poll deliberately

    Persist the returned id with your internal job record. Poll GET /v1/tasks/{id} at least five seconds apart until status is succeeded or failed. Faster requests still count toward the API-key rate limit but do not refresh upstream state. The only public status values are pending, processing, succeeded, and failed. Polling is the current integration path; webhooks, SDKs, and batch submission are not available.

  4. 4

    Handle terminal results without leaking internals

    Public errors are sanitized, so show the safe code and message instead of guessing at infrastructure details. A task still unfinished after 30 minutes fails. For an eligible failure, status remains failed: error.code is refund_pending while settlement runs, then credits_refunded confirms the one-time refund without extending the original expiration.

Production checklist for an AI Model API

Complete these controls before sending real customer traffic through a model route.

  • Keep API keys in server secrets, rotate exposed keys, and never embed them in a mobile or browser bundle.
  • Generate and persist an Idempotency-Key before the first POST so timeout retries reuse the same logical request.
  • Respect 120 authenticated requests per 60 seconds and Retry-After responses; generation and polling both count.
  • Queue no more than five image tasks or three video tasks concurrently for one account, and add backpressure before the limit.
  • Map pending, processing, succeeded, and failed states to explicit product UI instead of leaving an indefinite spinner.
  • Store image results according to the retention contract: seven days for free accounts and up to 30 days for active paid or Lifetime accounts. After deletion, handle status failed with error.code media_deleted rather than an empty success. Do not assume video URLs use the same retention window.

AI Model API questions

These answers cover the decisions shared by all four model references.

Which API should I integrate first?

Integrate the route that produces the media required by your first user flow. For still images, compare reference count, resolution, and quality controls. For video, compare text-to-video versus image-to-video, duration, resolution, and mode. Add a second model only after the first task lifecycle is reliable.

Can I safely retry a generation request?

Yes. Create one Idempotency-Key for the logical generation and reuse it with the identical body after a connection failure or timeout. The original task is returned without a second charge. A changed body should be treated as a new request with a new key.

When are credits charged and refunded?

The server calculates the live price and deducts credits atomically when it accepts a new task. The response exposes the exact amount as credits_reserved. If an eligible task fails, including at the 30-minute deadline, error.code can be refund_pending while settlement runs; credits_refunded confirms the one-time refund and the original expiration remains unchanged.

How long can my app retrieve generated images?

Stored image results are available for seven days on free accounts and up to 30 days on active paid or Lifetime accounts. Download or copy assets your product must keep before that window closes. Once removed, the response has status failed and error.code media_deleted so your UI can explain that the result expired.

Start with one model contract

Open the reference for the model closest to your first use case, copy its validated request shape, and build the complete create-poll-result path before adding another model.

Open the GPT Image 2 API reference