Run in Apifox
Price: Calculated based on the tokens used by the model Preset style list (the interface passes the value of the id): id Style English Name 1 优雅复古风格 Elegant Vintage 2 现代科技风格 Modern technological style 3 大胆现代风格 Bold Modern 4 极简主义风格 Minimalist 5 未来科技风格 Futuristic Tech 6 斯堪的纳维亚风格 Scandinavian 7 艺术装饰风格 Art Deco 8 日式极简风格 Japanese Minimalism 9 英伦摇滚风格 British Rock 10 黑金属风格 Black Metal 11 孟菲斯风格 Memphis Design 12 赛博朋克风格 Cyberpunk 13 波普艺术风格 Pop Art 14 瑞士国际主义风格的解构版 Deconstructed Swiss Style 15 蒸汽波美学 Vaporwave Aesthetics 16 新表现主义风格 Neo-Expressionism 17 超现实主义数字拼贴 Surrealist Digital Collage 18 新巴洛克数字风格 Neo-Baroque Digital
Request Body Params application/json
{
"model" : "claude-3-7-sonnet-20250219" ,
"style" : 0 ,
"custom_style" : "" ,
"content" : "2025广州马拉松宣传海报" ,
"lang" : "zh" ,
"save_format" : "png"
}
Request Code Samples
curl --location --request POST 'https://api.302.ai/302/card/generate/poster' \
--header 'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "claude-3-7-sonnet-20250219",
"style": 0,
"custom_style": "",
"content": "2025广州马拉松宣传海报",
"lang": "zh",
"save_format": "png"
}'
Responses application/json Generate Code
{
"data" : {
"content" : "string" ,
"file" : {
"format" : "string" ,
"url" : "string"
}
}
}
Modified at 2025-05-19 02:28:51