创建任务 recraft-ai/recraft-v3-svg
POST https://aiapi.winfull.top/replicate/v1/models/recraft-ai/recraft-v3-svg/predictions 官方文档:https://replicate.com/recraft-ai/recraft-v3-svg
请求参数
Authorization 在 Header 添加参数 Authorization ,其值为在 Bearer 之后拼接 Token 示例: Authorization: Bearer ******************** Header 参数 生成代码 Body 参数application/json 生成代码 示例
{
"input": {
"size": "1024x1024",
"style": "any",
"prompt": "a portrait of a cute red panda using a laptop, the poster has the title \"Red panda is Recraft v3\", against a red background",
"aspect_ratio": "Not set"
}
}请求示例代码
Shell JavaScript Java Swift Go PHP Python HTTP C C# Objective-C Ruby OCaml Dart R 请求示例请求示例 Shell JavaScript Java Swift cURLcURL-WindowsHttpiewgetPowerShell
curl --location --request POST 'https://aiapi.winfull.top/replicate/v1/models/recraft-ai/recraft-v3-svg/predictions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"input": {
"size": "1024x1024",
"style": "any",
"prompt": "a portrait of a cute red panda using a laptop, the poster has the title \"Red panda is Recraft v3\", against a red background",
"aspect_ratio": "Not set"
}
}'返回响应
🟢200成功 application/json生成代码 Body 生成代码 示例
{
"id": "21r1gkwrzxrme0crb42tx4qrem",
"model": "recraft-ai/recraft-v3-svg",
"version": "hidden",
"input": {
"aspect_ratio": "Not set",
"prompt": "a portrait of a cute red panda using a laptop, the poster has the title \"Red panda is Recraft v3\", against a red background",
"size": "1024x1024",
"style": "any"
},
"logs": "",
"output": null,
"data_removed": false,
"error": null,
"status": "starting",
"created_at": "2025-07-30T01:49:55.839Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/21r1gkwrzxrme0crb42tx4qrem/cancel",
"get": "https://api.replicate.com/v1/predictions/21r1gkwrzxrme0crb42tx4qrem",
"stream": "https://stream.replicate.com/v1/files/bcwr-7u7q63im74v2xjin5o7xj5prlfisac3m7ni22gh22jfejdfwi22q",
"web": "https://replicate.com/p/21r1gkwrzxrme0crb42tx4qrem"
}
}修改于 2025-08-01 07:40:39
