More modelsRecraft aiRecraft 20b svg
Generate image with recraft-ai/recraft-20b-svg
Generates an image using the recraft-ai/recraft-20b-svg model.
AuthorizationBearer <token>
API key is required to authorize requests. Obtain a key from your AtlasCloud dashboard.
In: header
modelstring
model name
style?string
Style of the generated image.
Value in
"vector_illustration" | "vector_illustration/cartoon" | "vector_illustration/doodle_line_art" | "vector_illustration/engraving" | "vector_illustration/flat_2" | "vector_illustration/kawaii" | "vector_illustration/line_art" | "vector_illustration/line_circuit" | "vector_illustration/linocut" | "vector_illustration/seamless" | "icon" | "icon/broken_line" | "icon/colored_outline" | "icon/colored_shapes" | "icon/colored_shapes_gradient" | "icon/doodle_fill" | "icon/doodle_offset_fill" | "icon/offset_fill" | "icon/outline" | "icon/outline_gradient" | "icon/uneven_fill"
promptstring
The positive prompt for image generation.
aspect_ratio?string
The aspect ratio of the generated image.
Value in
"1:1" | "16:9" | "9:16" | "4:3" | "3:4"
enable_base64_output?boolean
If enabled, the output will be encoded into a BASE64 string instead of a URL. This property is only available through the API.
Default
false
Response Body
curl -X POST "https://api.atlascloud.ai/api/v1/model/generateImage" \ -H "Content-Type: application/json" \ -d '{ "model": "recraft-ai/recraft-20b-svg", "prompt": "A serene landscape with mountains reflected in a crystal clear lake at sunset" }'
{
"id": "string",
"urls": {},
"model": "string",
"status": "string",
"outputs": [
"string"
],
"created_at": "2019-08-24T14:15:22Z",
"has_nsfw_contents": [
true
]
}