创建任务-recraft-ai/recraft-v3-svg
OpenAPI Specification
通过 Replicate 兼容路径提交 recraft-ai/recraft-v3-svg 任务,返回任务 ID 与状态;结果查询请使用对应的查询接口。输出矢量(SVG)图像。
请求方式:POST
接口地址
text
https://api.allyang.cn/replicate/v1/models/recraft-ai/recraft-v3-svg/predictions
请求头
Content-Type(必填):请求体类型,按本页标注填写。(示例:application/json)Authorization(可选):鉴权头,使用控制台创建的令牌,格式为 Bearer + 令牌。(示例:Bearer {{YOUR_API_KEY}})
请求参数(application/json)
input(object,必填)prompt(string,必填)go_fast(boolean,可选)megapixels(string,可选)num_outputs(integer,可选)aspect_ratio(string,可选):缺省取值 1:1。output_format(string,可选)output_quality(integer,可选)num_inference_steps(integer,可选)
请求示例
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"
}
}
返回:HTTP 200 表示成功,响应体字段待补(以实测为准)。
使用提示:需要先明确模型版本或模型路径;任务完成后的产物地址存在有效期,建议及时转存。