imya — 올인원 AI 이미지·영상·음악 생성기imya
템플릿API블로그요금제
로그인
imya — 올인원 AI 이미지·영상·음악 생성기imya

올인원 AI 이미지·영상·음악 생성기. 모든 창작 결과물을 위한 단 하나의 워크스페이스.

AI 이미지 모델

  • 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 영상 모델

  • Kling 3.0
  • Google Omni
  • Seedance 2.0
  • Sora 2
  • Kling 3.0 Motion Control
  • Kling 3.0 Turbo
  • Grok Imagine Video 1.5

사진 보정

  • 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

초상화 및 아바타

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

스타일 변환

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

창의적인 사진

  • 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

크리에이티브 도구

  • 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

제품

  • AI 이미지 도구
  • AI 모델
  • 요금제

회사

  • 회사 소개
  • 개인정보 처리방침
  • 서비스 약관
  • 문의하기

© 2026 imya.ai · 모든 권리 보유

☀️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 GPT Image 2 online
On this page
OverviewQuickstartAuthenticationCreate generationRetrieve taskRequest parametersResponsesCredit billingTask statusErrors
Image generationDeveloper Preview

GPT Image 2 API

Generate production-ready images from prompts or reference images through one predictable async API. imya handles model routing, task state, credits, and generated assets.

REST API · v1 · Async tasks

Developer Preview: the public contract is ready for review. Production traffic stays disabled until the /v1 endpoint and billing path pass end-to-end validation.
GPT Image 2 API workflow
One imya API key connects your app to model routing, async task processing, and generated assets.

Make your first request

The API is asynchronous: create a task, keep the returned task ID, then retrieve the task until a result is ready.

  1. 1

    Create an API key

    Generate a key from your imya account settings.

  2. 2

    Create a task

    Send the model ID, prompt, and output options.

  3. 3

    Retrieve the result

    Poll the task or receive a callback when it finishes.

Authentication

Send your imya API key as a Bearer token on every request. Keep it on your server and never expose it in browser code.

HTTP
Authorization: Bearer YOUR_IMYA_API_KEY
Content-Type: application/json

Create an image generation

Creates an asynchronous GPT Image 2 task and reserves the estimated credits.

POST/v1/images/generations
Request
curl https://imya.ai/v1/images/generations \
  -H "Authorization: Bearer YOUR_IMYA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2",
    "prompt": "A luxury perfume product photo on warm marble, soft studio light",
    "size": "1:1",
    "quality": "medium",
    "n": 1
  }'

Retrieve a task

Returns the latest task state, final credit usage, generated assets, or a structured error.

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

Request parameters

FieldTypeRequiredDescription
modelstringYesUse gpt-image-2.
promptstringYesText prompt for the image.
sizestringNo1:1, 3:2, 2:3, 4:3, 3:4, 16:9, or 9:16.
qualitystringNomedium or high.
nnumberNoNumber of images. Default is 1.
image_urlsstring[]NoReference images for image-to-image.
callback_urlstringNoOptional HTTPS webhook URL.

Responses

Accepted response
{
  "id": "task_01jz_example",
  "status": "pending",
  "model": "gpt-image-2",
  "credits_reserved": 13
}
Completed response
{
  "id": "task_01jz_example",
  "status": "succeeded",
  "model": "gpt-image-2",
  "credits_used": 13,
  "data": [
    {
      "url": "https://cdn.imya.ai/generated/example.png",
      "width": 1024,
      "height": 1024
    }
  ]
}

Credit billing

Credits belong to the user who owns the API key. The reserved estimate is returned when a task is created; the completed task reports the final amount used. Model, output count, quality, and membership discount determine the final charge.

Task status

pending

The task was accepted and is waiting to start.

processing

The model is generating the requested output.

succeeded

Generation finished and data contains the assets.

failed

Generation failed. Read the structured error object.

Errors

401

Missing or invalid API key.

402

The account does not have enough credits.

422

The model, prompt, size, or quality is invalid.

429

The API key reached its rate or concurrency limit.

500

The generation provider or imya service returned an error.

Want to test the model before integrating?

Open the hosted GPT Image 2 generator to compare prompts and output settings without writing code.

Try GPT Image 2 online

On this page

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