Skip to main content
POST
/
v1
/
generation
/
image-to-image
Submit Image-to-Image Task
curl --request POST \
  --url https://api.weryai.com/v1/generation/image-to-image \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "WERYAI_IMAGE_2_0",
  "prompt": "Transform this image into anime style",
  "images": [
    "https://example.com/reference.jpg"
  ],
  "negative_prompt": "blurry",
  "image_number": 1,
  "aspect_ratio": "1:1",
  "use_web_search": false
}
'
{
  "status": 0,
  "desc": "success",
  "message": "success",
  "data": {
    "batch_id": 123456789,
    "task_ids": [
      "task_abc123"
    ]
  }
}

Authorizations

Authorization
string
header
required

Authenticate using Bearer token. Get your API Key from the WeryAI Console.

Example: Authorization: Bearer sk-xxxxxxxxxxxxxxxx

Body

application/json
model
string
required

Model Key. Supported models for image-to-image:

Model NameModel Key
WeryAI Image 2.0WERYAI_IMAGE_2_0
WeryAI Image 1.0WERYAI_IMAGE_1_0
Nano Banana ProCHATBOT_GEMINI_3_PRO_IMAGE_PREVIEW
Nano-bananaGEMINI_2_5_FLASH
GPT Image 1.5GPT_IMAGE_1_5
Seedream 4.5SEEDREAM_4_5
Seedream 4.0SEEDREAM
Wan2.6WAN_2_6
Wan2.5WAN_2_5
Dreamina 4.0DREAMINA_4
Dreamina 3.0DREAMINA_3
Qwen ImageQWEN
FluxFLUX
Gpt Image MiniGPT_IMAGE_1_MINI
Example:

"WERYAI_IMAGE_2_0"

prompt
string
required

Positive text prompt

Required string length: 1 - 2000
Example:

"Transform this image into anime style"

images
string<uri>[]
required

Reference image list (supports jpg, jpeg, png, webp)

Example:
["https://example.com/reference.jpg"]
aspect_ratio
string
required

Image aspect ratio

Example:

"1:1"

negative_prompt
string

Negative text prompt

Maximum string length: 1000
image_number
integer
default:1

Number of images to generate

Required range: x >= 1
resolution
string

Resolution

Whether to use web search to enhance prompts

webhook_url
string<uri>

Callback URL

caller_id
integer<int64>

Caller ID

Response

Task submitted successfully

status
integer

Business status code (0 indicates success)

Example:

0

desc
string

Status description

Example:

"success"

message
string

Multi-language message

Example:

"success"

data
object