Text to icon

AI Icon generation

Create stunning previews icons in different styles and formats (png, svg) from text prompts using our advanced AI models.

post/v1/ai/text-to-icon/preview

Request

  • Base URL: https://api.magnific.com
  • URL: https://api.magnific.com/v1/ai/text-to-icon/preview
  • Auth: API key in header x-magnific-api-key

Request body

promptstring required

The prompt to generate the icon

webhook_urlstring uri required

The webhook URL to receive the result

style'solid' | 'outline' | 'color' | 'flat' | 'sticker'

The style to use for the icon

num_inference_stepsinteger

The number of inference steps to use for the generation

guidance_scalenumber

The guidance scale to use for the generation

Example request

{
  "prompt": "A cute cat icon",
  "webhook_url": "https://example.com/webhook",
  "style": "solid",
  "num_inference_steps": 10,
  "guidance_scale": 7
}

Response

Success - The request has succeeded and the Text to Icon process has started.

Example response

{
  "data": {
    "generated": [
      "https://openapi-generator.tech",
      "https://openapi-generator.tech"
    ],
    "task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "status": "CREATED"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.