---
name: mediaio-ai-gender-swap
description: Transform photos and images into Studio Ghibli-style artwork using AI via Media.io OpenAPI. Applies the iconic hand-drawn, painterly aesthetic of Ghibli films. AI gender swap, gender change AI, male to female AI.
metadata: {"openclaw": {"homepage": "https://platform.media.io/docs/", "requires": {"bins": ["curl"], "env": ["MEDIAIO_API_KEY"]}, "primaryEnv": "MEDIAIO_API_KEY"}}
This skill calls Media.io OpenAPI to run image gender swap using model code effects_image_gender_swap_female.
The API is asynchronous:
task_id.
| Variable | Required | Description |
|---|---|---|
| MEDIAIO_API_KEY | Yes | Media.io OpenAPI key, used in header X-API-KEY. |
Content-Type: application/json
X-API-KEY: $MEDIAIO_API_KEY
POST
https://openapi.media.io/user/credits
{}
POST
https://openapi.media.io/generation/effects/effects_image_gender_swap_female
{
"data": {
"image": "https://example.com/input.jpg"
}
}
data.image (string URL)
POST
https://openapi.media.io/generation/result/{task_id}
{}
task_id (string, required)
{
"code": 0,
"msg": "",
"data": {},
"trace_id": "..."
}
data.task_id is returned.
data.status can be one of the following values:
waiting: queued
processing: running
completed: completed successfully
failed: failed
timeout: timed out
data.reason: provides additional context (e.g., success or error message)
completed:
data.result is an array of output objects with generated image URLs
val (internal path), preview (public HTTPS URL), and status (completion status)
user/credits to verify balance.
effects_image_gender_swap_female with data.image.
task_id.
generation/result/{task_id} every 3 to 5 seconds.
completed or failed.
data.result when completed.
curl --request POST \
--url https://openapi.media.io/user/credits \
--header 'Content-Type: application/json' \
--header "X-API-KEY: $MEDIAIO_API_KEY" \
--data '{}'
curl --request POST \
--url https://openapi.media.io/generation/effects/effects_image_gender_swap_female \
--header 'Content-Type: application/json' \
--header "X-API-KEY: $MEDIAIO_API_KEY" \
--data '{
"data": {
"image": "https://example.com/input.jpg"
}
}'
curl --request POST \
--url https://openapi.media.io/generation/result/<task_id> \
--header 'Content-Type: application/json' \
--header "X-API-KEY: $MEDIAIO_API_KEY" \
--data '{}'
{
"code": 0,
"msg": "",
"data": {
"task_id": "effect-86f0f82a-36dc-4a7c-928a-721a18ef482f",
"status": "completed",
"reason": "success",
"result": [
{
"val": "aicloudtmp/550160908/3/202603/1/combo_tm_alg-20260317165022-802800-60eb3-dwt.png",
"preview": "https://url_to_generated_image.png",
"status": "completed"
}
]
},
"trace_id": "a18315ba568b5c34407808d12cbc8457"
}
Response fields when status is completed:
data.task_id: unique task identifier
data.status: completed indicates successful completion
data.reason: success indicates no error occurred
data.result: array of output objects, each containing:
val: internal file path of the generated image
preview: publicly accessible HTTPS URL for the generated image with expiration and signature
status: completed for each result item
code != 0 as failure.
374004: not authenticated. Apply for an APP KEY at https://developer.media.io/.
490000: params error
490505: insufficient credits. Recharge before invoking generation APIs.
trace_id in logs for troubleshooting.
task_id.
共 1 个版本