- Getting Started
- Reference
- Webhook
- AI Editor SDK
Image to Image (AI Art Effects)
POST
/v1/aiart/img2img
Image to Image Styles#
Request
Header Params
Authorization
string
required
Example:
Bearer <your api key>
Body Params application/json
content
string
required
templateId
string
required
negativePrompt
string
optional
userImageUrl
string
required
format
string
optional
strength
number
optional
Example
{
"content": "",
"templateId": "ca39d44f-e8c8-4a3e-9d09-c3f96cb2fe60",
"negativePrompt": "",
"userImageUrl": "https://pub-static.fotor.com/assets/goart-effects/examples/mini-figure-after.jpg",
"strength": 0.5,
"format": "jpg"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-b.fotor.com/v1/aiart/img2img' \
--header 'Authorization: Bearer <your api key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"content": "",
"templateId": "ca39d44f-e8c8-4a3e-9d09-c3f96cb2fe60",
"negativePrompt": "",
"userImageUrl": "https://pub-static.fotor.com/assets/goart-effects/examples/mini-figure-after.jpg",
"strength": 0.5,
"format": "jpg"
}'
Responses
🟢200success
application/json
Body
code
string
required
Example:
000
msg
string
required
Example:
success
data
object
required
taskId
string
required
Example:
e0dc194703174b6eafeacb4ee8e02850
Example
{
"code": "000",
"msg": "success",
"data": {
"taskId": "e0dc194703174b6eafeacb4ee8e02850"
}
}
Modified at 2025-03-14 02:44:44