{
 "spec_version": 1,
 "model": "recraft/recraft-v4.1-flash",
 "type": "image",
 "input_modalities": [
  "text"
 ],
 "output_modalities": [
  "image"
 ],
 "context_window": null,
 "max_output_tokens": null,
 "endpoint": {
  "method": "POST",
  "path": "/v1/images/generations"
 },
 "also_on": [],
 "parameters": [
  {
   "name": "model",
   "type": "string",
   "required": true,
   "description": "This model's ID."
  },
  {
   "name": "prompt",
   "type": "string",
   "required": true,
   "description": "What to draw."
  },
  {
   "name": "size",
   "type": "string",
   "enum": [
    "1:1",
    "4:3",
    "3:4",
    "16:9",
    "9:16"
   ],
   "description": "Aspect ratio. Width x height such as `1024x1024` is accepted too and mapped to its ratio."
  },
  {
   "name": "n",
   "type": "integer",
   "minimum": 1,
   "maximum": 6,
   "default": 1,
   "description": "How many images."
  }
 ],
 "response": {
  "fields": [
   {
    "name": "created",
    "type": "integer",
    "description": "Unix time."
   },
   {
    "name": "data[].url",
    "type": "string",
    "description": "The image. Download it within 24 hours."
   }
  ],
  "example": {
   "created": 1792000000,
   "data": [
    {
     "url": "https://..."
    }
   ]
  }
 },
 "examples": [
  {
   "title": "Basic",
   "request": {
    "model": "recraft/recraft-v4.1-flash",
    "prompt": "A lighthouse at dawn, watercolor",
    "size": "1:1"
   }
  }
 ],
 "input_schema": {
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "required": [
   "model",
   "prompt"
  ],
  "properties": {
   "model": {
    "type": "string",
    "description": "This model's ID."
   },
   "prompt": {
    "type": "string",
    "description": "What to draw."
   },
   "size": {
    "type": "string",
    "description": "Aspect ratio. Width x height such as `1024x1024` is accepted too and mapped to its ratio.",
    "enum": [
     "1:1",
     "4:3",
     "3:4",
     "16:9",
     "9:16"
    ]
   },
   "n": {
    "type": "integer",
    "description": "How many images.",
    "default": 1,
    "minimum": 1,
    "maximum": 6
   }
  }
 }
}
