generate_illustration
Generate professional, editable SVG artwork from a text prompt: illustrations, icons, stickers and mascot scenes. The result is real vector paths with a transparent background, not an embedded bitmap. Returns a task that processes asynchronously, so call wait for task with the returned id to get the result. Pass mascot id (from list mascots) to keep a consistent character across scenes. Costs 4 credits.
Показать схему аргументов
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"prompt"
],
"properties": {
"prompt": {
"type": "string",
"maxLength": 2000,
"minLength": 3,
"description": "What to draw, in plain language"
},
"mascot_id": {
"type": "string",
"description": "Optional mascot id; the character appears consistently in the scene"
},
"aspect_ratio": {
"enum": [
"auto",
"square",
"landscape",
"portrait"
],
"type": "string",
"default": "auto"
},
"no_background": {
"type": "boolean",
"default": true,
"description": "Return only the subject on a transparent background"
}
},
"additionalProperties": false
}