Image Apps V2 Style Transfer

48 credits/call
ae_image_apps_v2_style_transfer

Transform an image into a chosen artistic style or match the style of a reference image.

Image
48 credits/call

Pricing

48 credits/call
ConditionCharge
Each call48 credits/call

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
request_bodyobjectYesNo parameter description.—
request_body.image_urlstringYesImage URL for style transfer—
request_body.aspect_ratioobjectNoAspect ratio model that calculates 4K resolution dimensions—
request_body.aspect_ratio.ratioenum (1:1 | 16:9 | 9:16 | 4:3 | 3:4)NoAspect ratio for 4K resolution output1:1
request_body.target_styleenum (anime_character | cartoon_3d | hand_drawn_animation | cyberpunk_future | anime_game_style | comic_book_animation | animated_series | cartoon_animation | lofi_aesthetic | cottagecore | dark_academia | y2k | vaporwave | liminal_space | weirdcore | dreamcore | synthwave | outrun | photorealistic | hyperrealistic | digital_art | concept_art | impressionist | anime | pixel_art | claymation)NoNo parameter description.impressionist
request_body.style_reference_image_urlstring | unknownNoOptional reference image URL. When provided, the style will be inferred from this image instead of the selected preset style.—

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key

Submit first, then query with the returned task_id until the task completes.

Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_image_apps_v2_style_transfer' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "request_body": {
      "image_url": "https://agentearth.ai/fileserver/file/3bb341ca-a9cb-4b6f-9bbf-187d27c36138.png",
      "target_style": "animated_series"
    }
  }
}'
Response exampleresponse.json
JSON
{
  "description": "task accepted; poll the result via query_tool with this task_id",
  "query_tool": "ae_get_result",
  "status": "created",
  "task_id": "f7ec8863-157e-4fc5-bfd4-63d99dc29276"
}