from openai import OpenAI client = OpenAI(base_url="https://api.naga.ac/v1", api_key="YOUR_API_KEY") resp = client.images.generate( model="recraft-v4.1-flash", prompt="A white siamese cat", size="1024x1024", n=1, response_format="url", ) print(resp.data)
Recraft V4.1 Flash generates raster images from text prompts, including photography, illustrations, and mixed-media compositions, with controls for image size, color palette, and background color.