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
View API example
Copy page
View as Markdown
Get API Key

On this page

  • Overview
  • Use cases
  • Quickstart
  • Authentication
  • Create generation
  • Retrieve task
  • Request parameters
  • Responses
  • Credit billing
  • Task status
  • Errors
Try Seedream 5 online
On this page
OverviewUse casesQuickstartAuthenticationCreate generationRetrieve taskRequest parametersResponsesCredit billingTask statusErrors
Image generation and editing APIProduction Beta

Seedream 5.0 Pro API

Use the Seedream 5.0 Pro API to generate one image from a text prompt or up to ten public HTTPS reference images. Imya handles API authentication, asynchronous tasks, live credit quotes, sanitized errors, and stored results.

REST API · v1 · Async tasks

Each logical generation requires a unique Idempotency-Key. Safe retries return the original task instead of creating another generation or charging twice.

What you can build

Use one REST workflow for prompt-based creation, reference-guided variations, and automated image generation.

01

Product and campaign images

Generate product scenes, advertising concepts, and branded visuals from a text prompt.

02

Reference-guided variations

Use 1-10 reference images to guide the subject, composition, or visual direction of a new result.

03

Automated image workflows

Submit asynchronously, poll a public task ID, and receive the finished image from Imya-managed storage.

Make your first Seedream 5.0 Pro API request

Create a task, keep its public task ID, then retrieve the task until it succeeds or fails.

  1. 1

    Create an API key

    Generate a key from your Imya account settings.

  2. 2

    Choose an input

    Use a prompt alone or add 1-10 reference images.

  3. 3

    Retrieve the result

    Poll the public task ID at most every 5 seconds.

Authentication and idempotency

Send your Imya API key as a Bearer token. Every generation POST also requires a unique Idempotency-Key so network retries cannot create another task or charge.

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

Create an image generation

Omit image_urls for text-to-image. Add 1-10 public HTTPS images for reference-image generation. The server returns the live credits_reserved for this request.

POST/v1/images/generations
Text-to-image request
curl https://imya.ai/v1/images/generations \
  -H "Authorization: Bearer YOUR_IMYA_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: seedream-product-shot-001" \
  -d '{
    "model": "seedream-5-pro",
    "prompt": "A premium skincare bottle on pale stone, soft morning light",
    "aspect_ratio": "4:3",
    "quality": "basic",
    "output_format": "png",
    "n": 1
  }'
Reference-image request
curl https://imya.ai/v1/images/generations \
  -H "Authorization: Bearer YOUR_IMYA_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: seedream-edit-001" \
  -d '{
    "model": "seedream-5-pro",
    "prompt": "Keep the product shape and place it in a warm studio",
    "image_urls": ["https://cdn.example.com/input/product.png"],
    "aspect_ratio": "4:3",
    "quality": "high",
    "output_format": "jpeg",
    "n": 1
  }'

Retrieve a task

Returns the latest state, final credit usage, stored image result, or a sanitized error. Poll no faster than every 5 seconds.

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

Request parameters

FieldTypeRequiredDescription
modelstringYesUse seedream-5-pro.
promptstringYesGeneration instructions, 3 to 5,000 characters.
image_urlsstring[]No1-10 public HTTPS reference images. Omit for text-to-image.
aspect_ratiostringNo1:1, 4:3, 3:4, 16:9, 9:16, 2:3, 3:2, or 21:9. Default: 1:1.
qualitystringNobasic or high. Default: basic.
output_formatstringNopng or jpeg. Default: png.
nnumberNoMust be 1. Exactly one image is generated.

Responses

Accepted response
{
  "id": "task_0123456789abcdef0123456789abcdef",
  "status": "pending",
  "model": "seedream-5-pro",
  "credits_reserved": 44
}
Completed response
{
  "id": "task_0123456789abcdef0123456789abcdef",
  "status": "succeeded",
  "model": "seedream-5-pro",
  "credits_used": 44,
  "data": [
    {
      "url": "https://cdn.imya.ai/generated/example.png"
    }
  ]
}

A new task returns HTTP 202. An exact idempotent replay returns HTTP 200 with Idempotent-Replayed: true. Successful images are copied to Imya-managed storage before the task becomes succeeded. Failed tasks can report generation_failed, refund_pending, or media_deleted.

Live credit billing

The base cost is 35 credits for both basic and high quality. The server applies the API key owner’s current plan coefficient. The example shows a regular account at 1.25×, rounded to 44 credits. Always use credits_reserved from the response. If a task remains unfinished for 30 minutes, Imya marks it failed and refunds eligible credits once without extending their original expiration date.

View credit plans

Task status

pending

The task was accepted and is waiting to start.

processing

The model is generating the image.

succeeded

Generation finished and data contains the stored image.

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 or the request is not allowed.

409

The idempotency key was reused with a different body.

413

The request body exceeds 64 KiB.

422

A model parameter, prompt, or reference image is invalid.

429

The API key reached its rate or concurrency limit.

5xx

The request could not be completed. Check the task before creating a new request.

Ready to build?

Create an Imya API key for your first request, or test prompts, reference images, and quality settings in the hosted generator before integrating.

Get a Seedream API keyTry Seedream 5 online